-
-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
face problem on windows #113
Comments
edit: the problem come from the ttfs. Using RobotoMono NF (from nerdfont, the windows compatible one), the face changes depending on structural info, which is the expected behavior. But using the Roboto Mono from google, it does not work. |
Thanks for the report. If you get the problem, probably others will have the same. If you find the reason and fix, please post if here. |
looking at variable 'font-weight-table', i see that 'medium' is an alias for 'normal'. In nano-faces.el, the nano-face-strong is set to 'medium' for graphic-display. Hence , nano-face-strong wheight is the same as default face . a quick&dirty fix this is to set the weight attribute to , eg, semibold instead of medium in nano-faces.el in graphic mode
|
Now, it works better using static ttf files and updating nano-faces.el with familiy attributes corresponding to the correct ttf as for example :
|
Thanks. I'm not sure to understand why Emacs failq at settings the weight from the |
I just wanted to add that this is still a problem (Windows 10, Emacs 29.2). The solution provided above by @albreche still works. |
On OSX, a patch for fixing weight has been recently merged but I don't think it will dod anything on Windows. |
Hi there,
on windows, i can't get the faces weight behaviour. Below an illustration of the problem : all fonts are medium
Note faces are correctly set (eg: header1 has face org-level-1 which inherits from nano-face-strong).
Changing the nano-face-strong weight in nano-face.el to bold produce the expected result.
I use roboto mono which defines the expected weight.
It seems the problem is a kind of interference with default fonlt as set from the gui.
Does anyone has a clue ?
Btw, awesome work here !
The text was updated successfully, but these errors were encountered: