Last active
December 12, 2015 02:58
-
-
Save pk/4702599 to your computer and use it in GitHub Desktop.
Fixing ascender/descender for Helvetica Neue LT Std 95 Black for iOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Read: http://www.andyyardley.com/2012/04/24/custom-ios-fonts-and-how-to-fix-the-vertical-position-problem/ | |
Get: http://peter.upfold.org.uk/projects/dfontsplitter | |
1) | |
ftxdumperfuser -t hhea -A d HelveticaNeueLTStd-Blk.otf => Helvetica Neue LT Std 95 Black.hhea.xml | |
2) | |
use dfontsplitter to get TTFs from HelveticaNeue.dfont from your OSX | |
ftxdumperfuser -t hhea -A d HelveticaNeueCondensedBlack.ttf => Helvetica Neue Condensed Black.hhea.xml | |
3) adjust values in XML for Black acording to the Condensed Black | |
4) update font | |
ftxdumperfuser -t hhea -A f HelveticaNeueLTStd-Blk.otf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | |
<!DOCTYPE hheaTable [ | |
<!ELEMENT hheaTable EMPTY> | |
<!ATTLIST hheaTable versionMajor CDATA #IMPLIED | |
versionMinor CDATA #IMPLIED | |
ascender CDATA #IMPLIED | |
descender CDATA #IMPLIED | |
lineGap CDATA #IMPLIED | |
advanceWidthMax CDATA #IMPLIED | |
minLeftSideBearing CDATA #IMPLIED | |
minRightSideBearing CDATA #IMPLIED | |
xMaxExtent CDATA #IMPLIED | |
caretSlopeRise CDATA #IMPLIED | |
caretSlopeRun CDATA #IMPLIED | |
caretOffset CDATA #IMPLIED | |
metricDataFormat CDATA #IMPLIED | |
numberOfHMetrics CDATA #IMPLIED | |
> | |
]> | |
<!-- | |
Data generated Sun Feb 3 16:41:52 2013 | |
Generated by ftxdumperfuser build 248, | |
FontToolbox.framework build 55 | |
Font full name: 'Helvetica Neue LT Std 95 Black' | |
--> | |
<hheaTable | |
versionMajor="1" | |
versionMinor="0" | |
ascender="975" | |
descender="-227" | |
lineGap="28" | |
advanceWidthMax="1167" | |
minLeftSideBearing="-165" | |
minRightSideBearing="-166" | |
xMaxExtent="1101" | |
caretSlopeRise="1" | |
caretSlopeRun="0" | |
caretOffset="0" | |
metricDataFormat="0" | |
numberOfHMetrics="253" | |
/> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | |
<!DOCTYPE hheaTable [ | |
<!ELEMENT hheaTable EMPTY> | |
<!ATTLIST hheaTable versionMajor CDATA #IMPLIED | |
versionMinor CDATA #IMPLIED | |
ascender CDATA #IMPLIED | |
descender CDATA #IMPLIED | |
lineGap CDATA #IMPLIED | |
advanceWidthMax CDATA #IMPLIED | |
minLeftSideBearing CDATA #IMPLIED | |
minRightSideBearing CDATA #IMPLIED | |
xMaxExtent CDATA #IMPLIED | |
caretSlopeRise CDATA #IMPLIED | |
caretSlopeRun CDATA #IMPLIED | |
caretOffset CDATA #IMPLIED | |
metricDataFormat CDATA #IMPLIED | |
numberOfHMetrics CDATA #IMPLIED | |
> | |
]> | |
<!-- | |
Data generated Sun Feb 3 16:40:17 2013 | |
Generated by ftxdumperfuser build 248, | |
FontToolbox.framework build 55 | |
Font full name: 'Helvetica Neue Condensed Black' | |
--> | |
<hheaTable | |
versionMajor="1" | |
versionMinor="0" | |
ascender="972" | |
descender="-227" | |
lineGap="28" | |
advanceWidthMax="1300" | |
minLeftSideBearing="-350" | |
minRightSideBearing="-244" | |
xMaxExtent="1263" | |
caretSlopeRise="1" | |
caretSlopeRun="0" | |
caretOffset="0" | |
metricDataFormat="0" | |
numberOfHMetrics="1039" | |
/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | |
<!DOCTYPE hheaTable [ | |
<!ELEMENT hheaTable EMPTY> | |
<!ATTLIST hheaTable versionMajor CDATA #IMPLIED | |
versionMinor CDATA #IMPLIED | |
ascender CDATA #IMPLIED | |
descender CDATA #IMPLIED | |
lineGap CDATA #IMPLIED | |
advanceWidthMax CDATA #IMPLIED | |
minLeftSideBearing CDATA #IMPLIED | |
minRightSideBearing CDATA #IMPLIED | |
xMaxExtent CDATA #IMPLIED | |
caretSlopeRise CDATA #IMPLIED | |
caretSlopeRun CDATA #IMPLIED | |
caretOffset CDATA #IMPLIED | |
metricDataFormat CDATA #IMPLIED | |
numberOfHMetrics CDATA #IMPLIED | |
> | |
]> | |
<!-- | |
Data generated Sun Feb 3 16:59:36 2013 | |
Generated by ftxdumperfuser build 248, | |
FontToolbox.framework build 55 | |
Font full name: 'Helvetica Neue LT Std 95 Black' | |
--> | |
<hheaTable | |
versionMajor="1" | |
versionMinor="0" | |
ascender="714" | |
descender="-286" | |
lineGap="200" | |
advanceWidthMax="1167" | |
minLeftSideBearing="-165" | |
minRightSideBearing="-166" | |
xMaxExtent="1101" | |
caretSlopeRise="1" | |
caretSlopeRun="0" | |
caretOffset="0" | |
metricDataFormat="0" | |
numberOfHMetrics="253" | |
/> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment