[CLI] css font-family utilities for ease of use and clarity #9
Replies: 4 comments
This comment was marked as disruptive content.
This comment was marked as disruptive content.
-
I agree with @NathanaelA since custom fonts are in $ ns fonts
Found Custom Fonts:
-------------------
barlow-bold.ttf -> font-family: Barlow, barlow-bold;
fontawesome.ttf -> font-family: FontAwesome, fontawesome; Though, I guess listing system fonts could also be useful, perhaps with a flag to reduce noise? |
Beta Was this translation helpful? Give feedback.
-
I like a flag to list all if desired but default would print custom fonts in fonts folder only as long as mentions that’s the output it’s printing by default clearly and mention the flag which can be added to list all maybe / Although listing all is usually runtime related since iOS and Android only upon running can output the full list to my knowledge. |
Beta Was this translation helpful? Give feedback.
-
Active RFC: #21 |
Beta Was this translation helpful? Give feedback.
-
A sore spot for quite a long time is trying to get the font-family combination correct for iOS/Android.
For a custom font such as
barlow-bold.ttf
the css needs to be:Getting this correct is sometimes incredibly frustrating for custom fonts.
Proposal: Potentially add a convenient cli command which prints out exactly what css is needed for any given font:
Benefit: Save ton of time debugging why custom fonts aren't working.
Beta Was this translation helpful? Give feedback.
All reactions