Font Convertor - Range Syntax for Glyph Position

@ kisvegabor

I’m using the Offline version of lv_font_conv.

The --range parameter looks like it only accepts the Unicode ID for a glyph.

Is there way to specify that the range option use the glyph position in the font file?

Background:

I was trying to extract two glyphs from the Wingdings 3.ttf font file using this command:

lv_font_conv --font .../Wingdings\ 3.ttf -r '0xF07E' -r '0xF080' --size 48 --format lvgl --bpp 4 --no-compress -o .../lv_font_test_48.c

but kept getting the error Font ".../Wingdings 3.ttf" doesn't have any characters included in range 0xf07e-0xf07e.

Opening the font file in the macOS Font Book app shows 211 glyphs in the file. Selecting the info for the glyphs of interest shows the information for the glyphs as:

triangleup, 97, U+F07E
triangledown, 98, U+F080

The glyphs I wanted are the 98th and 99th (dec) glyphs in the file, but there is no range notation that will pick those out?

Using Font Forge with the same file showed the U+ values as
U+007E and U+00C4 respectively.

Substituting those in the above command line resulted in the same error.

My solution was to use Font Forge to convert the .ttf file to a .woff file.

Then using the .woff file as the input for the command line, with values of 0x7E and 0xC4 it worked.

Is there a way/notation using --range to pull the glyphs directly from the .ttf file ?