Skip to content
New issue

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

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

Already on GitHub? # to your account

Vertical metrics change in v2 #2

Open
davelab6 opened this issue May 31, 2016 · 0 comments
Open

Vertical metrics change in v2 #2

davelab6 opened this issue May 31, 2016 · 0 comments

Comments

@davelab6
Copy link

Here's the v metrics for v1.x, currently on Google Fonts:

$ fontbakery-fix-vertical-metrics.py *ttf
Parameter              Hind-Bold.ttf    Hind-Light.ttf    Hind-Medium.ttf    Hind-Regular.ttf    Hind-Semibold.ttf    
ymax                   1055             991               1016               1003                1030                 
hhea.ascent            1055             1055              1055               1055                1055                 
OS/2.sTypoAscender     1055             1055              1055               1055                1055                 
OS/2.usWinAscent       1055             1055              1055               1055                1055                 
ymin                   -546             -466              -490               -472                -516                 
hhea.descent           -546             -546              -546               -546                -546                 
OS/2.sTypoDescender    -546             -546              -546               -546                -546                 
OS/2.usWinDescent      546              546               546                546                 546                  
hhea.lineGap           0                0                 0                  0                   0                    
OS/2.sTypoLineGap      0                0                 0                  0                   0                    
hhea total             1601             1601              1601               1601                1601                 
typo total             1601             1601              1601               1601                1601                 
win total              1601             1601              1601               1601                1601                 
UPM:Heights            1000:1601        1000:1457         1000:1506          1000:1475           1000:1546            
UPM:Heights %          160 %            145 %             150 %              147 %               154 %    

Here's the v metrics for v2, currently in this repo, set to the bbox of the family:

$ fontbakery-fix-vertical-metrics.py *ttf
Parameter              Hind-Bold.ttf    Hind-Light.ttf    Hind-Medium.ttf    Hind-Regular.ttf    Hind-SemiBold.ttf    
ymax                   1060             991               1016               1003                1030                 
hhea.ascent            1060             1060              1060               1060                1060                 
OS/2.sTypoAscender     1060             1060              1060               1060                1060                 
OS/2.usWinAscent       1060             1060              1060               1060                1060                 
ymin                   -517             -434              -463               -440                -488                 
hhea.descent           -517             -517              -517               -517                -517                 
OS/2.sTypoDescender    -517             -517              -517               -517                -517                 
OS/2.usWinDescent      517              517               517                517                 517                  
hhea.lineGap           0                0                 0                  0                   0                    
OS/2.sTypoLineGap      0                0                 0                  0                   0                    
hhea total             1577             1577              1577               1577                1577                 
typo total             1577             1577              1577               1577                1577                 
win total              1577             1577              1577               1577                1577                 
UPM:Heights            1000:1577        1000:1425         1000:1479          1000:1443           1000:1518            
UPM:Heights %          157 %            142 %             147 %              144 %               151 % 

If I set the v2 files to the v metrics of v1.x above, then the only glyph that exceeds those v metrics is Hind-Bold.ttf's dvAnusvara.amI:

$ fontbakery-fix-vertical-metrics.py -a 1055 -d -546 -l 0 *ttf;
$ fontbakery-fix-vertical-metrics.py *ttf.fix;
Parameter              Hind-Bold.ttf.fix    Hind-Light.ttf.fix    Hind-Medium.ttf.fix    Hind-Regular.ttf.fix    Hind-SemiBold.ttf.fix    
ymax                   1060                 991                   1016                   1003                    1030                     
hhea.ascent            1055                 1055                  1055                   1055                    1055                     
OS/2.sTypoAscender     1055                 1055                  1055                   1055                    1055                     
OS/2.usWinAscent       1055                 1055                  1055                   1055                    1055                     
ymin                   -517                 -434                  -463                   -440                    -488                     
hhea.descent           -546                 -546                  -546                   -546                    -546                     
OS/2.sTypoDescender    -546                 -546                  -546                   -546                    -546                     
OS/2.usWinDescent      546                  546                   546                    546                     546                      
hhea.lineGap           0                    0                     0                      0                       0                        
OS/2.sTypoLineGap      0                    0                     0                      0                       0                        
hhea total             1601                 1601                  1601                   1601                    1601                     
typo total             1601                 1601                  1601                   1601                    1601                     
win total              1601                 1601                  1601                   1601                    1601                     
UPM:Heights            1000:1577            1000:1425             1000:1479              1000:1443               1000:1518                
UPM:Heights %          157 %                142 %                 147 %                  144 %                   151 %                    

High Glyphs
Hind-Bold.ttf.fix: dvAnusvara.amI

So I would like to request redesigning the dvAnusvara.amI to be 5 units shorter, so its bbox is 1055 instead of 1060

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant