-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Glyphs in Strings (Segoe UI Variable font) #480
Comments
Re: There doesn't seem to be a way to define a source
I have no idea why the glyph is not showing up. It's being displayed correctly at my end. To confirm if its an issue with Shell at your end you can try installing |
This option exists, but it is not currently activated. I will try to activate it in the next update |
I was wondering if this is related to your issue at all? Can you give an update whether the glyphs are being rendered properly or not after installing the fonts manually? |
I have those four fonts installed. I was only missing Marlett and Back Button Icons before. No change there. font
{
size = 14
name = "Segoe UI"
italic = 0
// good
} font
{
size = 14
name = "Shell"
italic = 0
// good
} Using any other fonts for the theme other than the above ones give missing glyphs for me. I noticed I didn't include any operating system details in the op. I'm running Windows 10 Home x64, version 22H2 (build 19045.4651). Someone can test on Win 10 and see if it's normal or not for them too. |
I finally got around to sorting this out. Turns out I was using the wrong font name. It's "Segoe UI Variable", and that's the name that shows up in Windows, too. No missing glyph. Although… Each variant of the variable font family Segoe UI Variable does work under Windows 11 for nss with no issue. (Small, Text, Display) I took the font file directly from the Windows 11 iso and installed on my system, so... idk |
You can already choose either the Segoe UI Fluent, Segoe MDL2 or NSS glyphs in each individual image property1 - e.g.
image.fluent(\u____)
orimage.glyph(0x____, #ffffff, 12, "Segoe MDL2 Assets")
.Additionally, you can put an icon in a string by just putting
\u____
.For example, how one is used in terminal.nss for a tooltip, or how they can be used in a title,2 There doesn't seem to be a way to define a source (or color).
Either case, you replace the blank part in the unicode hex with that of the glyph you want to use. IDs can be found on the website3 (built-in glyphs, not Segoe font), Character Map, or by using a custom script: Icon Explorer.4
I tried changing the font for the theme, and that's where my confusion about glyphs came from. What's being used when in a string? Setting image.glyph to something in the theme didn't change this missing icon:
What's the default font? Does Segoe UI Symbol usually get used here?
Would it be possible to be able to customize this font?
example : terminal.nss:
example :
Footnotes
https://nilesoft.org/docs/functions/image ↩
Discord: glyph in string ↩
https://nilesoft.org/gallery/glyphs ↩
Icon Explorer ↩
The text was updated successfully, but these errors were encountered: