mirror of
https://github.com/maplibre/martin.git
synced 2024-12-21 05:41:55 +03:00
9b112ae7b9
This implements dynamic font protobuf generation, allowing users to request font ranges on the fly, and combining them in any order, e.g. `Font1,Font2,Font3`, same as with sprites and tiles This is a first iteration, without any multithreading support. In theory, this could be done far faster by generating SDFs with multiple threads. ### Current process * during init, figure out all glyphs available in each font, and store them as a bitset * during request: * combine requested bitsets to figure out which glyph should come from which font file * load those glyphs from files (using a single instance of the freetype lib) * convert them to SDFs and package them into a protobuf --------- Co-authored-by: Lucas <zhangyijunmetro@hotmail.com> |
||
---|---|---|
.. | ||
catalog_cfg.json | ||
cmp_0_0_0.pbf | ||
cmp_0_0_0.pbf.txt | ||
fnc2_0_0_0.pbf | ||
fnc2_0_0_0.pbf.txt | ||
fnc_0_0_0.pbf | ||
fnc_0_0_0.pbf.txt | ||
font_1.pbf | ||
font_2.pbf | ||
font_3.pbf | ||
pmt_0_0_0.png | ||
pmt_0_0_0.png.txt | ||
spr_cmp_2x.json | ||
spr_cmp_2x.png | ||
spr_cmp_2x.png.txt | ||
spr_cmp.json | ||
spr_cmp.png | ||
spr_cmp.png.txt | ||
spr_mysrc_2x.json | ||
spr_mysrc_2x.png | ||
spr_mysrc_2x.png.txt | ||
spr_mysrc.json | ||
spr_mysrc.png | ||
spr_mysrc.png.txt | ||
spr_src1_2x.json | ||
spr_src1_2x.png | ||
spr_src1_2x.png.txt | ||
spr_src1.json | ||
spr_src1.png | ||
spr_src1.png.txt | ||
tbl_0_0_0.pbf | ||
tbl_0_0_0.pbf.txt |