formatting

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@111 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
Just 2000-06-08 18:38:43 +00:00
parent 306d24ec79
commit 859967e521

View File

@ -5,16 +5,16 @@ from fontTools.misc.textTools import safeEval, num2binary, binary2num
# panose classification # panose classification
panoseFormat = """ panoseFormat = """
bFamilyType: B bFamilyType: B
bSerifStyle: B bSerifStyle: B
bWeight: B bWeight: B
bProportion: B bProportion: B
bContrast: B bContrast: B
bStrokeVariation: B bStrokeVariation: B
bArmStyle: B bArmStyle: B
bLetterForm: B bLetterForm: B
bMidline: B bMidline: B
bXHeight: B bXHeight: B
""" """
class Panose: class Panose:
@ -32,50 +32,50 @@ class Panose:
# 'sfnt' OS/2 and Windows Metrics table - 'OS/2' # 'sfnt' OS/2 and Windows Metrics table - 'OS/2'
OS2_format_0 = """ OS2_format_0 = """
> # big endian > # big endian
version: H # version version: H # version
xAvgCharWidth: h # average character width xAvgCharWidth: h # average character width
usWeightClass: H # degree of thickness of strokes usWeightClass: H # degree of thickness of strokes
usWidthClass: H # aspect ratio usWidthClass: H # aspect ratio
fsType: h # type flags fsType: h # type flags
ySubscriptXSize: h # subscript horizontal font size ySubscriptXSize: h # subscript horizontal font size
ySubscriptYSize: h # subscript vertical font size ySubscriptYSize: h # subscript vertical font size
ySubscriptXOffset: h # subscript x offset ySubscriptXOffset: h # subscript x offset
ySubscriptYOffset: h # subscript y offset ySubscriptYOffset: h # subscript y offset
ySuperscriptXSize: h # superscript horizontal font size ySuperscriptXSize: h # superscript horizontal font size
ySuperscriptYSize: h # superscript vertical font size ySuperscriptYSize: h # superscript vertical font size
ySuperscriptXOffset: h # superscript x offset ySuperscriptXOffset: h # superscript x offset
ySuperscriptYOffset: h # superscript y offset ySuperscriptYOffset: h # superscript y offset
yStrikeoutSize: h # strikeout size yStrikeoutSize: h # strikeout size
yStrikeoutPosition: h # strikeout position yStrikeoutPosition: h # strikeout position
sFamilyClass: h # font family class and subclass sFamilyClass: h # font family class and subclass
panose: 10s # panose classification number panose: 10s # panose classification number
ulUnicodeRange1: l # character range ulUnicodeRange1: l # character range
ulUnicodeRange2: l # character range ulUnicodeRange2: l # character range
ulUnicodeRange3: l # character range ulUnicodeRange3: l # character range
ulUnicodeRange4: l # character range ulUnicodeRange4: l # character range
achVendID: 4s # font vendor identification achVendID: 4s # font vendor identification
fsSelection: H # font selection flags fsSelection: H # font selection flags
fsFirstCharIndex: H # first unicode character index fsFirstCharIndex: H # first unicode character index
fsLastCharIndex: H # last unicode character index fsLastCharIndex: H # last unicode character index
usTypoAscender: H # typographic ascender usTypoAscender: H # typographic ascender
usTypoDescender: H # typographic descender usTypoDescender: H # typographic descender
usTypoLineGap: H # typographic line gap usTypoLineGap: H # typographic line gap
usWinAscent: H # Windows ascender usWinAscent: H # Windows ascender
usWinDescent: H # Windows descender usWinDescent: H # Windows descender
""" """
OS2_format_1_addition = """ OS2_format_1_addition = """
ulCodePageRange1: l ulCodePageRange1: l
ulCodePageRange2: l ulCodePageRange2: l
""" """
OS2_format_2_addition = OS2_format_1_addition + """ OS2_format_2_addition = OS2_format_1_addition + """
sxHeight: h sxHeight: h
sCapHeight: h sCapHeight: h
usDefaultChar: H usDefaultChar: H
usBreakChar: H usBreakChar: H
usMaxContex: H usMaxContex: H
""" """
bigendian = " > # big endian\n" bigendian = " > # big endian\n"