font
Version:
Read font file data in javascript using buffers.
498 lines (480 loc) • 25.1 kB
JSON
{ "panose": {
"familyType": [ "Text and Display", "Script", "Decorative", "Pictorial" ],
"serifStyle": [ "Cove", "Obtuse Cove", "Square Cove", "Obtuse Square Cove", "Square", "Thin", "Bone",
"Exaggerated", "Triangle", "Normal Sans", "Obtuse Sans", "Perp Sans", "Flared", "Rounded" ],
"weight": [ "Very Light", "Light", "Thin", "Book", "Medium", "Demi", "Bold", "Heavy", "Black", "Nord" ],
"proportion": [ "Old Style", "Modern", "Even Width", "Expanded", "Condensed", "Very Expanded",
"Very Condensed", "Monospaced" ],
"contrast": [ "None", "Very Low", "Low", "Medium Low", "Medium", "Medium High", "High", "Very High" ],
"strokeVariation": [ "Gradual/Diagonal", "Gradual/Transitional", "Gradual/Vertical", "Gradual/Horizontal",
"Rapid/Vertical", "Rapid/Horizontal", "Instant/Vertical" ],
"armStyle": [ "Straight Arms/Horizontal", "Straight Arms/Wedge", "Straight Arms/Vertical",
"Straight Arms/Single Serif", "Straight Arms/Double Serif", "Non-Straight Arms/Horizontal",
"Non-Straight Arms/Wedge", "Non-Straight Arms/Vertical", "Non-Straight Arms/Single Serif",
"Non-Straight Arms/Double Serif" ],
"letterform": [ "Normal/Contact", "Normal/Weighted", "Normal/Boxed", "Normal/Flattened", "Normal/Rounded",
"Normal/Off Center", "Normal/Square", "Oblique/Contact", "Oblique/Weighted", "Oblique/Boxed",
"Oblique/Flattened", "Oblique/Rounded", "Oblique/Off Center", "Oblique/Square" ],
"midline": [ "Standard/Trimmed", "Standard/Pointed", "Standard/Serifed", "High/Trimmed", "High/Pointed",
"High/Serifed", "Constant/Trimmed", "Constant/Pointed", "Constant/Serifed", "Low/Trimmed",
"Low/Pointed", "Low/Serifed" ],
"xHeight": [ "Constant/Small", "Constant/Standard", "Constant/Large", "Ducking/Small", "Ducking/Standard",
"Ducking/Large" ] },
"tables": {
"acnt": "accent attachment",
"avar": "axis variation",
"BASE": "baseline data",
"bdat": "bitmap data",
"bhed": "bitmap font header",
"bloc": "bitmap location",
"bsln": "baseline",
"CFF ": "postscript font program (compact font format)",
"cmap": "character code mapping",
"cvar": "cvt variation",
"cvt ": "control value",
"EBDT": "embedded bitmap data",
"EBLC": "embedded bitmap location data",
"EBSC": "embedded bitmap scaling control",
"DSIG": "digital signature",
"fdsc": "font descriptor",
"feat": "layout feature",
"fmtx": "font metrics",
"fpgm": "font program",
"fvar": "font variation",
"gasp": "grid-fitting and scan-conversion procedure",
"GDEF": "glyph definition data",
"GPOS": "glyph positioning data",
"GSUB": "glyph substitution data",
"glyf": "glyph outline",
"gvar": "glyph variation",
"hdmx": "horizontal device metrics",
"head": "font header",
"hhea": "horizontal header",
"hmtx": "horizontal metrics",
"hsty": "horizontal style",
"JSTF": "justification data",
"just": "justification",
"kern": "kerning",
"lcar": "ligature caret",
"loca": "glyph location",
"LTSH": "linear threshold data",
"maxp": "maximum profile",
"mort": "metamorphosis",
"morx": "extended metamorphosis",
"name": "naming table",
"opbd": "optical bounds",
"OS/2": "compatibility",
"PCLT": "pcl 5 data",
"post": "glyph name and postscript compatibility",
"prep": "control value program",
"prop": "properties",
"trak": "tracking",
"VDMX": "vertical device metrics",
"VORG": "vertical origin",
"vhea": "vertical header",
"vmtx": "vertical metrics",
"Zapf": "glyph referenc"
},
"head": {
"flags": [ "Baseline at y=0",
"Sidebearing at x=0",
"Instructions may depend on point size",
"Force ppem to integer values",
"Advance widths might not scale linearly",
0,0,0,0,0,0,
"Font data is lossless",
"Font converted",
"Font optimized for ClearType™",
"Last Resort font",
"Reserved" ]
},
"selection": [ "italic", "underscore", "negative", "outlined", "strikeout ",
"bold", "regular", "use_typo_metrics", "wws", "oblique"] ,
"weights": [ "Ultra-light", "Extra-light", "Light", "Semi-light", "Medium", "Semi-bold",
"Bold", "Extra-bold", "Ultra-bold" ],
"widths": [ "Ultra-condensed", "Extra-condensed", "Condensed", "Semi-condensed", "Medium",
"Semi-expanded", "Expanded", "Extra-expanded", "Ultra-expanded" ],
"classes": {
"No Classification": [ "No Classification" ],
"OldStyle Serif": [ "NC", "IBM Rounded Legibility", "Garalde", "Venetian", "Modified Venetian",
"Dutch Modern", "Dutch Traditional", "Contemporary", "Calligraphic" ],
"Transitional Serif": [ "NC", "Direct Line", "Script" ],
"Modern Serif": [ "NC", "Italian", "Script" ],
"Clarendon Serif": [ "NC", "Clarendon", "Modern", "Traditional", "Newspaper", "Stub Serif", "Monotone", "Typewriter" ],
"Slab Serif": [ "NC", "Monotone", "Humanist", "Geometric", "Swiss", "Typewriter" ],
"Reserved": [],
"Freeform Serif": [ "NC", "Modern" ],
"Sans Serif": [ "NS", "IBM Neo-grotesque Gothic", "Humanist", "Low-x Round Geometric", "High-x Round Geometric",
"Neo-grotesque Gothic", "Modified Neo-grotesque Gothic", "Typewriter Gothic", "Reserved", "Reserved", "Matrix" ],
"Ornamental": [ "NC", "Engraver", "Black Letter", "Decorative", "Three Dimensional" ],
"Script": [ "NC", "Uncial", "Brush Joined", "Formal Joined", "Monotone Joined", "Calligraphic", "Brush Unjoined",
"Formal Unjoined", "Monotone Unjoined" ],
"Reserved": [],
"Symbolic": [ "NC", "Reserved", "Reserved", "Mixed Serif", "Reserved", "Reserved", "Oldstyle Serif", "Neo-grotesque Sans Serif" ]
},
"nameIDs": [ "Copyright", "FontFamily", "FontSubfamily", "UID", "FullName", "Version",
"PostscriptName", "Trademark", "Manufacturer", "Designer", "Description",
"VendorURL", "DesignerURL", "LicenseDescription", "LicenseURL",
"Reserved", "PreferredFamily", "PreferredSubfamily", "CompatibleFull",
"SampleText", "PostScriptCID", "WWSFamily", "WWSSubfamily" ],
"platformIDs": [ "Unicode", "Macintosh", "ISO", "Windows", "Custom" ],
"encodingIDS": [ "utf8", "utf8" ],
"codePageNames": [ [ "Latin 1",
"Latin 2: Eastern Europe",
"Cyrillic",
"Greek",
"Turkish",
"Hebrew",
"Arabic",
"Windows Baltic",
"Vietnamese",
"Reserved for Alternate ANSI",0,0,0,0,0,0,
"Thai",
"JIS/Japan",
"Chinese Simplified-PRC/Singapore",
"Korean Wansung",
"Chinese Traditional-Taiwan/Hong Kong",
"Korean Johab",
"Reserved for Alternate ANSI & OEM",0,0,0,0,0,0,
"Macintosh Character Set (US Roman)",
"OEM Character Set",
"Symbol Character Set" ],
[ "Reserved for OEM",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
"IBM Greek",
"MS-DOS Russian",
"MS-DOS Nordic",
"Arabic",
"MS-DOS Canadian French",
"Hebrew",
"MS-DOS Icelandic",
"MS-DOS Portuguese",
"IBM Turkish",
"IBM Cyrillic; primarily Russian",
"Latin 2",
"MS-DOS Baltic",
"Greek; former 437 G",
"Arabic; ASMO 708",
"WE/Latin 1",
"US" ] ],
"codePages": { "MS-DOS Canadian French": 863,
"MS-DOS Nordic": 865,
"Greek": 1253,
"WE/Latin 1": 850,
"Korean Johab": 1361,
"Arabic; ASMO 708": 708,
"US": 437,
"Windows Baltic": 1257,
"Latin 2": 852,
"MS-DOS Russian": 866,
"MS-DOS Baltic": 775,
"Chinese Traditional-Taiwan/Hong Kong": 950,
"Vietnamese": 1258,
"Korean Wansung": 949,
"Hebrew": 862,
"Greek; former 437 G": 737,
"IBM Cyrillic; primarily Russian": 855,
"MS-DOS Icelandic": 861,
"Chinese Simplified-PRC/Singapore": 936,
"IBM Turkish": 857,
"MS-DOS Portuguese": 860,
"Latin 2: Eastern Europe": 1250,
"Thai": 874,
"Latin 1": 1252,
"IBM Greek": 869,
"Turkish": 1254,
"Arabic": 864,
"JIS/Japan": 932,
"Cyrillic": 1251 },
"unicodeBlocks": [ [ [ "0000-007F" ],
[ "0080-00FF" ],
[ "0100-017F" ],
[ "0180-024F" ],
[ "0250-02AF", "1D00-1D7F", "1D80-1DBF" ],
[ "02B0-02FF", "A700-A71F" ],
[ "0300-036F", "1DC0-1DFF" ],
[ "0370-03FF" ],
[ "2C80-2CFF" ],
[ "0400-04FF", "0500-052F", "2DE0-2DFF", "A640-A69F" ],
[ "0530-058F" ],
[ "0590-05FF" ],
[ "A500-A63F" ],
[ "0600-06FF", "0750-077F" ],
[ "07C0-07FF" ],
[ "0900-097F" ],
[ "0980-09FF" ],
[ "0A00-0A7F" ],
[ "0A80-0AFF" ],
[ "0B00-0B7F" ],
[ "0B80-0BFF" ],
[ "0C00-0C7F" ],
[ "0C80-0CFF" ],
[ "0D00-0D7F" ],
[ "0E00-0E7F" ],
[ "0E80-0EFF" ],
[ "10A0-10FF", "2D00-2D2F" ],
[ "1B00-1B7F" ],
[ "1100-11FF" ],
[ "1E00-1EFF", "2C60-2C7F", "A720-A7FF" ],
[ "1F00-1FFF" ],
[ "2000-206F", "2E00-2E7F" ] ],
[ [ "2070-209F" ],
[ "20A0-20CF" ],
[ "20D0-20FF" ],
[ "2100-214F" ],
[ "2150-218F" ],
[ "2190-21FF", "27F0-27FF", "2900-297F", "2B00-2BFF" ],
[ "2200-22FF", "2A00-2AFF", "27C0-27EF", "2980-29FF" ],
[ "2300-23FF" ],
[ "2400-243F" ],
[ "2440-245F" ],
[ "2460-24FF" ],
[ "2500-257F" ],
[ "2580-259F" ],
[ "25A0-25FF" ],
[ "2600-26FF" ],
[ "2700-27BF" ],
[ "3000-303F" ],
[ "3040-309F" ],
[ "30A0-30FF", "31F0-31FF" ],
[ "3100-312F", "31A0-31BF" ],
[ "3130-318F" ],
[ "A840-A87F" ],
[ "3200-32FF" ],
[ "3300-33FF" ],
[ "AC00-D7AF" ],
[ "D800-DFFF" ],
[ "10900-1091F" ],
[ "4E00-9FFF", "2E80-2EFF", "2F00-2FDF", "2FF0-2FFF", "3400-4DBF", "20000-2A6DF", "3190-319F" ],
[ "E000-F8FF" ],
[ "31C0-31EF", "F900-FAFF", "2F800-2FA1F" ],
[ "FB00-FB4F" ],
[ "FB50-FDFF" ] ],
[ [ "FE20-FE2F" ],
[ "FE10-FE1F", "FE30-FE4F" ],
[ "FE50-FE6F" ],
[ "FE70-FEFF" ],
[ "FF00-FFEF" ],
[ "FFF0-FFFF" ],
[ "0F00-0FFF" ],
[ "0700-074F" ],
[ "0780-07BF" ],
[ "0D80-0DFF" ],
[ "1000-109F" ],
[ "1200-137F", "1380-139F", "2D80-2DDF" ],
[ "13A0-13FF" ],
[ "1400-167F" ],
[ "1680-169F" ],
[ "16A0-16FF" ],
[ "1780-17FF", "19E0-19FF" ],
[ "1800-18AF" ],
[ "2800-28FF" ],
[ "A000-A48F", "A490-A4CF" ],
[ "1700-171F", "1720-173F", "1740-175F", "1760-177F" ],
[ "10300-1032F" ],
[ "10330-1034F" ],
[ "10400-1044F" ],
[ "1D000-1D0FF", "1D100-1D1FF", "1D200-1D24F" ],
[ "1D400-1D7FF" ],
[ "FF000-FFFFD", "100000-10FFFD" ],
[ "FE00-FE0F", "E0100-E01EF" ],
[ "E0000-E007F" ],
[ "1900-194F" ],
[ "1950-197F" ],
[ "1980-19DF" ] ],
[ [ "1A00-1A1F" ],
[ "2C00-2C5F" ],
[ "2D30-2D7F" ],
[ "4DC0-4DFF" ],
[ "A800-A82F" ],
[ "10000-1007F", "10080-100FF", "10100-1013F" ],
[ "10140-1018F" ],
[ "10380-1039F" ],
[ "103A0-103DF" ],
[ "10450-1047F" ],
[ "10480-104AF" ],
[ "10800-1083F" ],
[ "10A00-10A5F" ],
[ "1D300-1D35F" ],
[ "12000-123FF", "12400-1247F" ],
[ "1D360-1D37F" ],
[ "1B80-1BBF" ],
[ "1C00-1C4F" ],
[ "1C50-1C7F" ],
[ "A880-A8DF" ],
[ "A900-A92F" ],
[ "A930-A95F" ],
[ "AA00-AA5F" ],
[ "10190-101CF" ],
[ "101D0-101FF" ],
[ "102A0-102DF", "10280-1029F", "10920-1093F" ],
[ "1F030-1F09F", "1F000-1F02F" ] ] ],
"unicodeRanges": { "0000-007F": "Basic Latin",
"0080-00FF": "Latin-1 Supplement ",
"0100-017F": "Latin Extended-A ",
"0180-024F": "Latin Extended-B ",
"0250-02AF": "IPA Extensions ",
"1D00-1D7F": "Phonetic Extensions",
"1D80-1DBF": "Phonetic Extensions Supplement ",
"02B0-02FF": "Spacing Modifier Letters ",
"A700-A71F": "Modifier Tone Letters",
"0300-036F": "Combining Diacritical Marks",
"1DC0-1DFF": "Combining Diacritical Marks Supplement ",
"0370-03FF": "Greek and Coptic ",
"2C80-2CFF": "Coptic ",
"0400-04FF": "Cyrillic ",
"0500-052F": "Cyrillic Supplement",
"2DE0-2DFF": "Cyrillic Extended-A",
"A640-A69F": "Cyrillic Extended-B",
"0530-058F": "Armenian ",
"0590-05FF": "Hebrew ",
"A500-A63F": "Vai",
"0600-06FF": "Arabic ",
"0750-077F": "Arabic Supplement",
"07C0-07FF": "NKo",
"0900-097F": "Devanagari ",
"0980-09FF": "Bengali",
"0A00-0A7F": "Gurmukhi ",
"0A80-0AFF": "Gujarati ",
"0B00-0B7F": "Oriya",
"0B80-0BFF": "Tamil",
"0C00-0C7F": "Telugu ",
"0C80-0CFF": "Kannada",
"0D00-0D7F": "Malayalam",
"0E00-0E7F": "Thai ",
"0E80-0EFF": "Lao",
"10A0-10FF": "Georgian ",
"2D00-2D2F": "Georgian Supplement",
"1B00-1B7F": "Balinese ",
"1100-11FF": "Hangul Jamo",
"1E00-1EFF": "Latin Extended Additional",
"2C60-2C7F": "Latin Extended-C ",
"A720-A7FF": "Latin Extended-D ",
"1F00-1FFF": "Greek Extended ",
"2000-206F": "General Punctuation",
"2E00-2E7F": "Supplemental Punctuation ",
"2070-209F": "Superscripts And Subscripts",
"20A0-20CF": "Currency Symbols ",
"20D0-20FF": "Combining Diacritical Marks For Symbols",
"2100-214F": "Letterlike Symbols ",
"2150-218F": "Number Forms ",
"2190-21FF": "Arrows ",
"27F0-27FF": "Supplemental Arrows-A",
"2900-297F": "Supplemental Arrows-B",
"2B00-2BFF": "Miscellaneous Symbols and Arrows ",
"2200-22FF": "Mathematical Operators ",
"2A00-2AFF": "Supplemental Mathematical Operators",
"27C0-27EF": "Miscellaneous Mathematical Symbols-A ",
"2980-29FF": "Miscellaneous Mathematical Symbols-B ",
"2300-23FF": "Miscellaneous Technical",
"2400-243F": "Control Pictures ",
"2440-245F": "Optical Character Recognition",
"2460-24FF": "Enclosed Alphanumerics ",
"2500-257F": "Box Drawing",
"2580-259F": "Block Elements ",
"25A0-25FF": "Geometric Shapes ",
"2600-26FF": "Miscellaneous Symbols",
"2700-27BF": "Dingbats ",
"3000-303F": "CJK Symbols And Punctuation",
"3040-309F": "Hiragana ",
"30A0-30FF": "Katakana ",
"31F0-31FF": "Katakana Phonetic Extensions ",
"3100-312F": "Bopomofo ",
"31A0-31BF": "Bopomofo Extended",
"3130-318F": "Hangul Compatibility Jamo",
"A840-A87F": "Phags-pa ",
"3200-32FF": "Enclosed CJK Letters And Months",
"3300-33FF": "CJK Compatibility",
"AC00-D7AF": "Hangul Syllables ",
"D800-DFFF": "Non-Plane 0 *",
"10900-1091F": "Phoenician ",
"4E00-9FFF": "CJK Unified Ideographs ",
"2E80-2EFF": "CJK Radicals Supplement",
"2F00-2FDF": "Kangxi Radicals",
"2FF0-2FFF": "Ideographic Description Characters ",
"3400-4DBF": "CJK Unified Ideographs Extension A ",
"20000-2A6DF": "CJK Unified Ideographs Extension B ",
"3190-319F": "Kanbun ",
"E000-F8FF": "Private Use Area (plane 0) ",
"31C0-31EF": "CJK Strokes",
"F900-FAFF": "CJK Compatibility Ideographs ",
"2F800-2FA1F": "CJK Compatibility Ideographs Supplement",
"FB00-FB4F": "Alphabetic Presentation Forms",
"FB50-FDFF": "Arabic Presentation Forms-A",
"FE20-FE2F": "Combining Half Marks ",
"FE10-FE1F": "Vertical Forms ",
"FE30-FE4F": "CJK Compatibility Forms",
"FE50-FE6F": "Small Form Variants",
"FE70-FEFF": "Arabic Presentation Forms-B",
"FF00-FFEF": "Halfwidth And Fullwidth Forms",
"FFF0-FFFF": "Specials ",
"0F00-0FFF": "Tibetan",
"0700-074F": "Syriac ",
"0780-07BF": "Thaana ",
"0D80-0DFF": "Sinhala",
"1000-109F": "Myanmar",
"1200-137F": "Ethiopic ",
"1380-139F": "Ethiopic Supplement",
"2D80-2DDF": "Ethiopic Extended",
"13A0-13FF": "Cherokee ",
"1400-167F": "Unified Canadian Aboriginal Syllabics",
"1680-169F": "Ogham",
"16A0-16FF": "Runic",
"1780-17FF": "Khmer",
"19E0-19FF": "Khmer Symbols",
"1800-18AF": "Mongolian",
"2800-28FF": "Braille Patterns ",
"A000-A48F": "Yi Syllables ",
"A490-A4CF": "Yi Radicals",
"1700-171F": "Tagalog",
"1720-173F": "Hanunoo",
"1740-175F": "Buhid",
"1760-177F": "Tagbanwa ",
"10300-1032F": "Old Italic ",
"10330-1034F": "Gothic ",
"10400-1044F": "Deseret",
"1D000-1D0FF": "Byzantine Musical Symbols",
"1D100-1D1FF": "Musical Symbols",
"1D200-1D24F": "Ancient Greek Musical Notation ",
"1D400-1D7FF": "Mathematical Alphanumeric Symbols",
"FF000-FFFFD": "Private Use (plane 15) ",
"100000-10FFFD": "Private Use (plane 16) ",
"FE00-FE0F": "Variation Selectors",
"E0100-E01EF": "Variation Selectors Supplement ",
"E0000-E007F": "Tags ",
"1900-194F": "Limbu",
"1950-197F": "Tai Le ",
"1980-19DF": "New Tai Lue",
"1A00-1A1F": "Buginese ",
"2C00-2C5F": "Glagolitic ",
"2D30-2D7F": "Tifinagh ",
"4DC0-4DFF": "Yijing Hexagram Symbols",
"A800-A82F": "Syloti Nagri ",
"10000-1007F": "Linear B Syllabary ",
"10080-100FF": "Linear B Ideograms ",
"10100-1013F": "Aegean Numbers ",
"10140-1018F": "Ancient Greek Numbers",
"10380-1039F": "Ugaritic ",
"103A0-103DF": "Old Persian",
"10450-1047F": "Shavian",
"10480-104AF": "Osmanya",
"10800-1083F": "Cypriot Syllabary",
"10A00-10A5F": "Kharoshthi ",
"1D300-1D35F": "Tai Xuan Jing Symbols",
"12000-123FF": "Cuneiform",
"12400-1247F": "Cuneiform Numbers and Punctuation",
"1D360-1D37F": "Counting Rod Numerals",
"1B80-1BBF": "Sundanese",
"1C00-1C4F": "Lepcha ",
"1C50-1C7F": "Ol Chiki ",
"A880-A8DF": "Saurashtra ",
"A900-A92F": "Kayah Li ",
"A930-A95F": "Rejang ",
"AA00-AA5F": "Cham ",
"10190-101CF": "Ancient Symbols",
"101D0-101FF": "Phaistos Disc",
"102A0-102DF": "Carian ",
"10280-1029F": "Lycian ",
"10920-1093F": "Lydian ",
"1F030-1F09F": "Domino Tiles ",
"1F000-1F02F": "Mahjong Tiles" }
}