This script loads a WOFF2 font file and extracts each glyph from the 'glyf' table. For each glyph, it calculates the bounding box to properly adjust the SVG canvas size and avoid clipping. The glyphs ...
# Note: this font is not provided with the ImGui bundle (too large). # You will need to provide it yourself, or use another font. font_filename = "fonts/NotoSerifSC-VariableFont_wght.ttf" # The range ...