2
0

add font bsky

This commit is contained in:
2026-03-30 20:40:34 +09:00
parent c25e8902a0
commit 4c52e8a31a
2 changed files with 6 additions and 1 deletions

View File

@@ -35,7 +35,12 @@ glyph.width = 1024
glyph = icons.createChar(0xE003, "bluesky") glyph = icons.createChar(0xE003, "bluesky")
glyph.importOutlines("/tmp/bluesky.svg") glyph.importOutlines("/tmp/bluesky.svg")
glyph.transform((scale/100.0, 0, 0, scale/100.0, 0, 0)) # center vertically: move to baseline
bb = glyph.boundingBox()
yshift = -bb[1] # move bottom to y=0
glyph.transform((1, 0, 0, 1, 0, yshift))
s = scale / 100.0
glyph.transform((s, 0, 0, s, 0, 0))
glyph.width = 1024 glyph.width = 1024
icons.generate("/tmp/icons.ttf") icons.generate("/tmp/icons.ttf")

Binary file not shown.