Change the font size freely, without loading / creating new font
Only compile alphabet/numbers and used “character/icon” to final bitmap
Mention some use cases:
Can be used for buttons, menu, status bar, UI, etc…
Everywhere that has text
Lightweight devices? Save a lot of storage spaces
Do you see alternative options and workaround to achieve it?
Tried to import the Font Awesome 6.0 Pro TTF file, not working
1.1. Processing icon images one by one, working
but this method is unresponsive, has no flexibility, and is quite complex to modify
Can’t find a way to do it
Tried to manually create a TTF file with only the “character” the project needs
Inputting the Unicode code U+XXXX or \uXXXX to the text field, showing nothing or text instead of the icon
Console showing “character’s bitmap not found”
Probably bitmap compile range/symbols config problem?
For the image icon method
If the display resolution or the object color/size changes, image recreation is required since the aspect ratio, DPI, or color is not matching, this is very time-consuming if there are many icons and devices with different themes or hardware configurations
font is font, and size is size, please consider splitting it into two input fields in IDE
it’s a bad idea to convert every font character and every font size to the bitmap file, it consumes a lot of spaces
Using FontForge to separate icons, save spaces
But complex and time-consuming
To solve this we can use the the same font that you have selected for the widget in the Text input field of SquareLine too. That is, if you select an Arial font, the text in the Text field will be written with Arial as well. In case of FontAwesome, it’s FontAwesome. So if you copy past it a symbol there, it will be shown correctly.
Basically it’d make the font manager not required, right? You can select a font on the widget, and set a size for it there. On export SLS collects to used fonts and sizes and exports what is used. Did you mean something like this?
At first look, we can add an “Auto-pick characters” checkbox to the Font manager. If it’s enabled, the Range and Symbols fields are inactive, the SLS will search the used characters on export. It’s a little bit more complicated than it looks, but seems doable.
The situation I am facing right now is that I had to use multiple fonts and multiple font sizes from 10px to something like 60px or more
To do this, I had to convert them one by one
Import the font
Change the font name
Change the font size
Convert font TTF to bitmap by font manager (lv_font_conv-win.exe)
Use the converted font in UI
Sounds easy right?
But when there are 10 fonts with 26 different sizes each
(10 fonts * 26 sizes(10px to 60px even number only))
I had to do the conversion 260 times
And it creates 780 files in the asset folder (bin,C,fcfg file (each project))
which is very painful to manage if you have 10 projects and each 780 converted font file
What I want is simple
Font conversion size selected in a range instead of one size
(As shown in the example image
Add an odd or even only option to reduce the total file number
(Because the size selected in a range may create a lot of files)
Save the converted font in a shared folder instead of each project folder
(Example: C\SquareLine Studio\fonts\ (FontAwesome(font name)) \ (FontAwesome_20(name+size))
Only show created font name, not sizes in the “CREATED FONTS” menu
(If showing all 260 font variants in the menu, it will be super long and hard to manage)
Add a separated font size input dropdown/field as all the other program does
Sort the font by A-Z not the font conversion order (by time)
I think size range is not flexible enough but we can make it possible to set a comma separated list of sizes in the converter. Fonts created this way would be shown as one entry in the font manager.
It’d be also possible. Let’s say you select “MySpecialFont” and from an other dropdown you can also select the size (e.g. 12, 14, 16). But is you type 18 as size SLS can ask “There is no 25 px high variant for this font yet. Shall we create it now?”
I think it wouldn’t work well as it’s not sure “MySpecialFont” has the same range and symbols across projects.