Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad extents for some glyphs #4068

Closed
matthiasclasen opened this issue Jan 24, 2023 · 0 comments
Closed

Bad extents for some glyphs #4068

matthiasclasen opened this issue Jan 24, 2023 · 0 comments

Comments

@matthiasclasen
Copy link
Collaborator

I've been playing with making single-glyph icon fonts.

Here is one: (gzipped to make github accept it)
adwaita.ttf.gz

The problem is that I get bad extents for some of the glyphs (the actual icon is fine, but the components are not).

The working glyph is 2, a bad one is 3:

$ hb-shape --show-extents ~/adwaita.ttf --glyphs [gid2=0+1000]
[icon0=0+1000<180,960,1060,-1220>]

$  hb-shape --show-extents ~/adwaita.ttf --glyphs [gid3=0+1000]
[icon0.0=0+1000<0,-1,-1,1>]

This may be because glyph2 has a ClipBox, and the others don't.

@behdad behdad closed this as completed in 20318fe Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant