Closed fvanroie closed 3 years ago
Fixed, thanks for reporting.
Check for gap size between sparse items was indeed missing. It should generate 2 small sparse lists now for this case.
Released 1.5.1
thanks!
@embeddedt or @kisvegabor can the online converter be updated too please? It seems this issue is still present there.
@puzrint I've updated npm a few weeks ago and now npm run build
fails. I don't know if it's an error on my end or not. I've run npm update
too.
For npm run build
I got:
Do you have any idea?
That error seems to be an issue with Parcel.
type="module"
should be added in the script
tag. I don't know how the online tool integrates, so not sure if this helps...
@kisvegabor I've just tried to build https://github.com/lvgl/lv_font_conv/commit/36ead11bd93085bdb149abfe6ccaba66e90bc8da and it seemed to work properly for me. NPM 7.17.0, Ubuntu 18.04, Node v14.15.5.
Parcel 1.x is supposed to be unmaintained so there shouldn't have been any breaking updates from their end.
npm@7.21.0 Node.js v16.8.0 Linux Mint 19
It seems thre some problem on my end. If I check out 1.5.2 I got
> lv_font_conv@1.5.2 build
> parcel build ./web/index.html ./web/content.html --public-url ./
sh: 1: parcel: not found
Anyway, @embeddedt can you send the built files in order to update them as soon as possible.
@kisvegabor when "shit happens" - drop node_modules
folder and run npm i
again.
when "shit happens" - drop node_modules folder and run npm i again.
That's experience. :slightly_smiling_face: Working now, thank you!
The online converter is updated.
Thanks!
Goal
We're trying to create an lvgl font with material design icons instead of fontawesome. All MDI icons are in "Unicode Plane 15 Private Use, First" with glyph ids
0xF0000-0xF1743
.Font files:
Observation
Depending on the range of characters selected, the Error: Codepoint delta out of range is displayed. The same occurs in the online font converter as offline npm package.
Problem
It seems the problem lies with the
cmap_split
function that only takes the number of (consecutive) glyphs into account for sparse ranges and not the gap between the glyphs.Workaround
If I place a small range of characters before the MDI icons, an extra index with
format0_tiny
is created. The MDI icons then start with their ownsparse_tiny
index and a starting_index of0xF0045
.Examples
This works:
This doesn't work:
Conclusion
The
0xB7-0xBF
or0xB8-0xBF
block determines wheter the conversion succeeds or fails.It would be nice if the cmap_split function automatically adds an intermediate sparse list if the delta between glyphs is larger then 65535.