What do you want to achieve?
Import an external font to my project
What have you tried so far?
Importing different fonts but none succeeds
Screenshot or video
Others
- SquareLine Studio version: 1.6.2
- Operating system: MacOS 27.0.1
- Target hardware: Mac mini M4
Hello Support, on 1.6.2 every time I try to create a new font from an already imported, it fails. I get an error message:
Although nothing appears on the console:
CREATE FONT: lv_font_conv-osx --bpp 4 --size 20 --font “/Volumes/Repository/NAS Drive/SquareLine Studio Projects/HomeDash-Pi5-Screen1/assets/Roboto-SemiBold.ttf” -o “/Volumes/Repository/NAS Drive/SquareLine Studio Projects/HomeDash-Pi5-Screen1/assets/ui_font_Montserratbold20.c” --format lvgl -r 0x20-0x7f --no-compress --no-prefilter
<color=#88D488> CREATE FONT: lv_font_conv-osx --bpp 4 --size 20 --font “/Volumes/Repository/NAS Drive/SquareLine Studio Projects/HomeDash-Pi5-Screen1/assets/Roboto-SemiBold.ttf” -o “/Volumes/Repository/NAS Drive/SquareLine Studio Projects/HomeDash-Pi5-Screen1/assets/ui_font_Montserratbold20.bin” --format bin -r 0x20-0x7f --no-compress --no-prefilter
<color=#55FF55> Font has created successfully
<color=#BBBBBB>EDITOR: File/directory added from outside: assets/ui_font_Montserratbold20.fcfg
Can you assist ? Thanks!
Hi, thanks for the report.
The font converter bundled with SquareLine Studio 1.6.2 is Intel-based, so it requires Rosetta on Apple Silicon Macs. macOS 27 still supports Rosetta, but it may not be installed on your Mac.
Could you open Terminal and run the following command, then share the complete output? If SquareLine Studio is installed elsewhere, please adjust the path.
"/Applications/SquareLine_Studio.app/Contents/lvgl/lv_font_conv-osx" --help
This checks whether the converter can start independently of your font and project.
If the output indicates that Rosetta is missing or reports “Bad CPU type in executable,” please install Rosetta using:
softwareupdate --install-rosetta
Then restart SquareLine Studio and try creating the font again.
If the converter displays its help successfully, please also try the same font in a new project stored on your Mac’s internal drive. Your current project is under /Volumes/Repository/..., so this will help check whether access to the mounted volume is involved.
The “Font has created successfully” message is misleading here: we identified an issue where it can appear even after conversion fails. Sorry for the confusion.
Hello Support, thanks for helping me out on this.
nikos@Mac-Mini-M4 HomeLab-Pi5 % “/Applications/SquareLine_Studio.app/Contents/lvgl/lv_font_conv-osx” --help
usage: lv_font_conv.js [-h] [-v] --size PIXELS [-o ] --bpp {1,2,3,4,8} [–lcd | --lcd-v] [–use-color-info]
–format {dump,bin,lvgl} --font [-r RANGE] [–symbols SYMBOLS] [–autohint-off]
[–autohint-strong] [–force-fast-kern-format] [–no-compress] [–no-prefilter] [–no-kerning]
[–lv-include ] [–lv-font-name LV_FONT_NAME] [–full-info] [–lv-fallback LV_FALLBACK]
optional arguments:
-h, --help show this help message and exit
-v, --version show program’s version number and exit
–size PIXELS Output font size, pixels.
-o , --output
Output path.
–bpp {1,2,3,4,8} Bits per pixel, for antialiasing.
–lcd Enable subpixel rendering (horizontal pixel layout).
–lcd-v Enable subpixel rendering (vertical pixel layout).
–use-color-info Try to use glyph color info from font to create grayscale icons. Since gray tones are emulated
via transparency, result will be good on contrast background only.
–format {dump,bin,lvgl}
Output format.
–font Source font path. Can be used multiple times to merge glyphs from different fonts.
-r RANGE, --range RANGE
Range of glyphs to copy. Can be used multiple times, belongs to previously declared “–font”.
Examples:
-r 0x1F450
-r 0x20-0x7F
-r 32-127
-r 32-127,0x1F450
-r ‘0x1F450=>0xF005’
-r ‘0x1F450-0x1F470=>0xF005’
–symbols SYMBOLS List of characters to copy, belongs to previously declared “–font”. Examples:
–symbols ,.0123456789
–symbols abcdefghigklmnopqrstuvwxyz
–autohint-off Disable autohinting for previously declared “–font”
–autohint-strong Use more strong autohinting for previously declared “–font” (will break kerning)
–force-fast-kern-format
Always use kern classes instead of pairs (might be larger but faster).
–no-compress Disable built-in RLE compression.
–no-prefilter Disable bitmap lines filter (XOR), used to improve compression ratio.
–no-kerning Drop kerning info to reduce size (not recommended).
–lv-include Set alternate “lvgl.h” path (for --format lvgl).
–lv-font-name LV_FONT_NAME
Variable name of the lvgl font structure. Defaults to the output’s basename.
–full-info Don’t shorten “font_info.json” (include pixels data).
–lv-fallback LV_FALLBACK
Variable name of the lvgl font structure to use as fallback for this font. Defaults to NULL.
This is what I get, plus:
Truly, I don’t think the path has anything to do with it, as I have converted many fonts in the past and all went good.
Any further suggestions? Thanks!
Update: Re-installing Rosetta fixed the issue! The command returned the parameters, even though Rosetta wasn’t installed. Problem solved 
1 Like