typemytype / drawbot

http://www.drawbot.com
Other
398 stars 61 forks source link

Bungee color font wrong metrics #481

Closed typemytype closed 2 years ago

typemytype commented 2 years ago
size(350,250)
font ("BungeeColor-Regular")
s = 13
y = 10
for line in range (5):
    fontSize(s)
    text ("The quick brown fox", (10, y))
    s += 2
    y += 30

Bungee Color font

image
typemytype commented 2 years ago

there is also something weird going on in text edit:

image
djrrb commented 2 years ago

Yikes! This font was produced with 2015-era color font technology and I think it is overdue for a rebuild. I’m sorry for the trouble with that. I don’t know exactly what’s going on but I agree this is probably a font issue and not a drawbot issue.

It seems like the SVG-in-OT font gets better results:

https://github.com/djrrb/Bungee/raw/master/fonts/Bungee_Color_Fonts/svg/BungeeColor-Regular_svg.ttf

Screen Shot 2022-08-15 at 10 36 24 PM

At this point I think the SBIX font can probably get removed. Thanks for letting me know about this!

justvanrossum commented 2 years ago

It's the "BungeeColor-Regular_sbix_MacOS.ttf" font that does the wobble. The CPAL/COLR ("Windows") and SVG fonts indeed work fine.

size(350,250)

p = '/Users/just/Downloads/fonts/Bungee_Color_Fonts/BungeeColor-Regular_sbix_MacOS.ttf'

# p = '/Users/just/Downloads/fonts/Bungee_Color_Fonts/BungeeColor-Regular_svg.ttf'

# p = '/Users/just/Downloads/fonts/Bungee_Color_Fonts/BungeeColor-Regular_colr_Windows.ttf'

font(p)
s = 13
y = 10
for line in range (5):
    fontSize(s)
    text ("The quick brown fox", (10, y))
    s += 2
    y += 30
justvanrossum commented 2 years ago

but I agree this is probably a font issue and not a drawbot issue

Could even be an OS issue: presumably it worked fine in 2015!