added XITS fonts to a global directory

This commit is contained in:
jkriege2 2015-08-02 15:16:05 +02:00
parent 604f59fd0d
commit 8fd785f0d9
52 changed files with 7179 additions and 4891 deletions

View File

@ -17,7 +17,7 @@ Layer: 1 0 "Fore" 0
XUID: [1021 862 584604386 6861469]
UniqueID: 4081380
FSType: 0
OS2Version: 4
OS2Version: 0
OS2_WeightWidthSlopeOnly: 0
OS2_UseTypoMetrics: 1
CreationTime: 1232396790

View File

@ -17,7 +17,7 @@ Layer: 1 0 "Fore" 0
XUID: [1021 862 584604386 9564403]
UniqueID: 4757222
FSType: 0
OS2Version: 4
OS2Version: 0
OS2_WeightWidthSlopeOnly: 0
OS2_UseTypoMetrics: 1
CreationTime: 1227710455

View File

@ -17,7 +17,7 @@ Layer: 1 0 "Fore" 0
XUID: [1021 862 584604386 1478685]
UniqueID: 4124309
FSType: 0
OS2Version: 4
OS2Version: 0
OS2_WeightWidthSlopeOnly: 0
OS2_UseTypoMetrics: 1
CreationTime: 1227710416

View File

@ -3,7 +3,7 @@ FontName: XITSMath-Bold
FullName: XITS Math Bold
FamilyName: XITS Math
Weight: Bold
Copyright: Copyright (c) 2001-2011 by the STI Pub Companies, consisting of the American Chemical Society, the American Institute of Physics, the American Mathematical Society, the American Physical Society, Elsevier, Inc., and The Institute of Electrical and Electronic Engineers, Inc. Portions copyright (c) 1998-2003 by MicroPress, Inc. Portions copyright (c) 1990 by Elsevier, Inc. Portions copyright (c) 2012 by Khaled Hosny. All rights reserved.
Copyright: Copyright (c) 2001-2011 by the STI Pub Companies, consisting of the American Chemical Society, the American Institute of Physics, the American Mathematical Society, the American Physical Society, Elsevier, Inc., and The Institute of Electrical and Electronic Engineers, Inc. Portions copyright (c) 1998-2003 by MicroPress, Inc. Portions copyright (c) 1990 by Elsevier, Inc. Portions copyright (c) 2009-2012 by Khaled Hosny. All rights reserved.
Version: $version
ItalicAngle: 0
UnderlinePosition: -50
@ -15,7 +15,7 @@ Layer: 0 0 "Back" 1
Layer: 1 0 "Fore" 0
XUID: [1021 579 371615373 6116148]
FSType: 0
OS2Version: 4
OS2Version: 0
OS2_WeightWidthSlopeOnly: 0
OS2_UseTypoMetrics: 1
CreationTime: 1232396790
@ -118,14 +118,13 @@ MATH:MinConnectorOverlap: 50
Encoding: UnicodeFull
UnicodeInterp: none
NameList: AGL without afii
BeginPrivate: 7
BeginPrivate: 6
BlueValues 23 [-19 0 461 473 676 691]
BlueShift 1 6
StdHW 4 [90]
StdVW 4 [88]
StemSnapH 31 [29 33 38 43 48 52 57 68 73 78]
StemSnapV 31 [42 48 51 54 62 66 69 73 79 83]
ForceBold 4 true
EndPrivate
BeginChars: 1114325 2149

View File

@ -17,7 +17,7 @@ Layer: 1 0 "Fore" 0
XUID: [1021 862 584604386 16201960]
UniqueID: 4834701
FSType: 0
OS2Version: 4
OS2Version: 0
OS2_WeightWidthSlopeOnly: 0
OS2_UseTypoMetrics: 1
CreationTime: 1227710265

7
math_fonts/xits/test-suite/.gitignore vendored Normal file
View File

@ -0,0 +1,7 @@
*~
*.log
*.tuc
*.aux
*.pdf
*.run
tmp

View File

@ -0,0 +1,17 @@
This is a set of disorganised test file that I dump here occasionally,
don't get fooled by the name of this directory.
Files with .tex extensions are ConTeXt files, they usually have 3 modes,
the default which uses XITS fonts, "modern" which uses Computer Modern
fonts and "cambria" which uses Cambria fonts, this is useful for comparing
the output of the three font families. To run, issue:
$ context foo.tex # XITS mode
$ context --mode=modern foo.tex # CM mode
$ context --mode=cambria foo.tex # Cambria mode
Files with .ltx are LaTeX files and can be run with either LuaTeX or
XeTeX using LaTeX format, usually to compare the output of both engines:
$ lualatex foo.ltx # LuaTeX engine
$ xelatex foo.ltx # XeTeX engine

View File

@ -0,0 +1,85 @@
local format, utfcharacters = string.format, string.utfcharacters
local chars = {
"ABCDEFGHIJKLMNOPQRSTUVWXYZ",
"abcdefghijklmnopqrstuvwxyz",
"𝐀𝐁𝐂𝐃𝐄𝐅𝐆𝐇𝐈𝐉𝐊𝐋𝐌𝐍𝐎𝐏𝐐𝐑𝐒𝐓𝐔𝐕𝐖𝐗𝐘𝐙",
"𝐚𝐛𝐜𝐝𝐞𝐟𝐠𝐡𝐢𝐣𝐤𝐥𝐦𝐧𝐨𝐩𝐪𝐫𝐬𝐭𝐮𝐯𝐰𝐱𝐲𝐳",
"𝐴𝐵𝐶𝐷𝐸𝐹𝐺𝐻𝐼𝐽𝐾𝐿𝑀𝑁𝑂𝑃𝑄𝑅𝑆𝑇𝑈𝑉𝑊𝑋𝑌𝑍",
"𝑎𝑏𝑐𝑑𝑒𝑓𝑔𝑖𝑗𝑘𝑙𝑚𝑛𝑜𝑝𝑞𝑟𝑠𝑡𝑢𝑣𝑤𝑥𝑦𝑧𝚤𝚥",
"𝑨𝑩𝑪𝑫𝑬𝑭𝑮𝑯𝑰𝑱𝑲𝑳𝑴𝑵𝑶𝑷𝑸𝑹𝑺𝑻𝑼𝑽𝑾𝑿𝒀𝒁",
"𝒂𝒃𝒄𝒅𝒆𝒇𝒈𝒉𝒊𝒋𝒌𝒍𝒎𝒏𝒐𝒑𝒒𝒓𝒔𝒕𝒖𝒗𝒘𝒙𝒚𝒛",
"𝒜𝒞𝒟𝒢𝒥𝒦𝒩𝒪𝒫𝒬𝒮𝒯𝒰𝒱𝒲𝒳𝒴𝒵",
"𝒶𝒷𝒸𝒹𝒻𝒽𝒾𝒿𝓀𝓁𝓂𝓃𝓅𝓆𝓇𝓈𝓉𝓊𝓋𝓌𝓍𝓎𝓏",
"𝓐𝓑𝓒𝓓𝓔𝓕𝓖𝓗𝓘𝓙𝓚𝓛𝓜𝓝𝓞𝓟𝓠𝓡𝓢𝓣𝓤𝓥𝓦𝓧𝓨𝓩",
"𝓪𝓫𝓬𝓭𝓮𝓯𝓰𝓱𝓲𝓳𝓴𝓵𝓶𝓷𝓸𝓹𝓺𝓻𝓼𝓽𝓾𝓿𝔀𝔁𝔂𝔃",
"𝔄𝔅𝔇𝔈𝔉𝔊𝔍𝔎𝔏𝔐𝔑𝔒𝔓𝔔𝔖𝔗𝔘𝔙𝔚𝔛𝔜",
"𝔞𝔟𝔠𝔡𝔢𝔣𝔤𝔥𝔦𝔧𝔨𝔩𝔪𝔫𝔬𝔭𝔮𝔯𝔰𝔱𝔲𝔳𝔴𝔵𝔶𝔷",
"𝔸𝔹𝔻𝔼𝔽𝔾𝕀𝕁𝕂𝕃𝕄𝕆𝕊𝕋𝕌𝕍𝕎𝕏𝕐",
"𝕒𝕓𝕔𝕕𝕖𝕗𝕘𝕙𝕚𝕛𝕜𝕝𝕞𝕟𝕠𝕡𝕢𝕣𝕤𝕥𝕦𝕧𝕨𝕩𝕪𝕫",
"𝕬𝕭𝕮𝕯𝕰𝕱𝕲𝕳𝕴𝕵𝕶𝕷𝕸𝕹𝕺𝕻𝕼𝕽𝕾𝕿𝖀𝖁𝖂𝖃𝖄𝖅",
"𝖆𝖇𝖈𝖉𝖊𝖋𝖌𝖍𝖎𝖏𝖐𝖑𝖒𝖓𝖔𝖕𝖖𝖗𝖘𝖙𝖚𝖛𝖜𝖝𝖞𝖟",
"𝖠𝖡𝖢𝖣𝖤𝖥𝖦𝖧𝖨𝖩𝖪𝖫𝖬𝖭𝖮𝖯𝖰𝖱𝖲𝖳𝖴𝖵𝖶𝖷𝖸𝖹",
"𝖺𝖻𝖼𝖽𝖾𝖿𝗀𝗁𝗂𝗃𝗄𝗅𝗆𝗇𝗈𝗉𝗊𝗋𝗌𝗍𝗎𝗏𝗐𝗑𝗒𝗓",
"𝗔𝗕𝗖𝗗𝗘𝗙𝗚𝗛𝗜𝗝𝗞𝗟𝗠𝗡𝗢𝗣𝗤𝗥𝗦𝗧𝗨𝗩𝗪𝗫𝗬𝗭",
"𝗮𝗯𝗰𝗱𝗲𝗳𝗴𝗵𝗶𝗷𝗸𝗹𝗺𝗻𝗼𝗽𝗾𝗿𝘀𝘁𝘂𝘃𝘄𝘅𝘆𝘇",
"𝘈𝘉𝘊𝘋𝘌𝘍𝘎𝘏𝘐𝘑𝘒𝘓𝘔𝘕𝘖𝘗𝘘𝘙𝘚𝘛𝘜𝘝𝘞𝘟𝘠𝘡",
"𝘢𝘣𝘤𝘥𝘦𝘧𝘨𝘩𝘪𝘫𝘬𝘭𝘮𝘯𝘰𝘱𝘲𝘳𝘴𝘵𝘶𝘷𝘸𝘹𝘺𝘻",
"𝘼𝘽𝘾𝘿𝙀𝙁𝙂𝙃𝙄𝙅𝙆𝙇𝙈𝙉𝙊𝙋𝙌𝙍𝙎𝙏𝙐𝙑𝙒𝙓𝙔𝙕",
"𝙖𝙗𝙘𝙙𝙚𝙛𝙜𝙝𝙞𝙟𝙠𝙡𝙢𝙣𝙤𝙥𝙦𝙧𝙨𝙩𝙪𝙫𝙬𝙭𝙮𝙯",
"𝙰𝙱𝙲𝙳𝙴𝙵𝙶𝙷𝙸𝙹𝙺𝙻𝙼𝙽𝙾𝙿𝚀𝚁𝚂𝚃𝚄𝚅𝚆𝚇𝚈𝚉",
"𝚊𝚋𝚌𝚍𝚎𝚏𝚐𝚑𝚒𝚓𝚔𝚕𝚖𝚗𝚘𝚙𝚚𝚛𝚜𝚝𝚞𝚟𝚠𝚡𝚢𝚣",
"ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ",
"αβγδεζηθικλμνξοπρστυφχψω",
"𝚨𝚩𝚪𝚫𝚬𝚭𝚮𝚯𝚰𝚱𝚲𝚳𝚴𝚵𝚶𝚷𝚸𝚹𝚺𝚻𝚼𝚽𝚾𝚿𝛀𝛁𝟊",
"𝛂𝛃𝛄𝛅𝛆𝛇𝛈𝛉𝛊𝛋𝛌𝛍𝛎𝛏𝛐𝛑𝛒𝛓𝛔𝛕𝛖𝛗𝛘𝛙𝛚𝛛𝛜𝛝𝛞𝛟𝛠𝛡𝟋",
"𝛢𝛣𝛤𝛥𝛦𝛧𝛨𝛩𝛪𝛫𝛬𝛭𝛮𝛯𝛰𝛱𝛲𝛳𝛴𝛵𝛶𝛷𝛸𝛹𝛺𝛻",
"𝛼𝛽𝛾𝛿𝜀𝜁𝜂𝜃𝜄𝜅𝜆𝜇𝜈𝜉𝜊𝜋𝜌𝜍𝜎𝜏𝜐𝜑𝜒𝜓𝜔𝜕𝜖𝜗𝜘𝜙𝜚𝜛",
"𝜜𝜝𝜞𝜟𝜠𝜡𝜢𝜣𝜤𝜥𝜦𝜧𝜨𝜩𝜪𝜫𝜬𝜭𝜮𝜯𝜰𝜱𝜲𝜳𝜴𝜵",
"𝜶𝜷𝜸𝜹𝜺𝜻𝜼𝜽𝜾𝜿𝝀𝝁𝝂𝝃𝝄𝝅𝝆𝝇𝝈𝝉𝝊𝝋𝝌𝝍𝝎𝝏𝝐𝝑𝝒𝝓𝝔𝝕",
"𝝖𝝗𝝘𝝙𝝚𝝛𝝜𝝝𝝞𝝟𝝠𝝡𝝢𝝣𝝤𝝥𝝦𝝧𝝨𝝩𝝪𝝫𝝬𝝭𝝮𝝯",
"𝝰𝝱𝝲𝝳𝝴𝝵𝝶𝝷𝝸𝝹𝝺𝝻𝝼𝝽𝝾𝝿𝞀𝞁𝞂𝞃𝞄𝞅𝞆𝞇𝞈𝞉𝞊𝞋𝞌𝞍𝞎𝞏",
"𝞐𝞑𝞒𝞓𝞔𝞕𝞖𝞗𝞘𝞙𝞚𝞛𝞜𝞝𝞞𝞟𝞠𝞡𝞢𝞣𝞤𝞥𝞦𝞧𝞨𝞩",
"𝞪𝞫𝞬𝞭𝞮𝞯𝞰𝞱𝞲𝞳𝞴𝞵𝞶𝞷𝞸𝞹𝞺𝞻𝞼𝞽𝞾𝞿𝟀𝟁𝟂𝟃𝟄𝟅𝟆𝟇𝟈𝟉",
"0123456789",
"𝟎𝟏𝟐𝟑𝟒𝟓𝟔𝟕𝟖𝟗",
"𝟘𝟙𝟚𝟛𝟜𝟝𝟞𝟟𝟠𝟡",
"𝟢𝟣𝟤𝟥𝟦𝟧𝟨𝟩𝟪𝟫",
"𝟬𝟭𝟮𝟯𝟰𝟱𝟲𝟳𝟴𝟵",
"𝟶𝟷𝟸𝟹𝟺𝟻𝟼𝟽𝟾𝟿",
"-+=×÷()*@!",
}
local top_accents = {
"0300", "0301", "0302", "0303", "0304", "0305", "0306", "0307", "0308",
"0309", "030A", "030B", "030C", "030D", "030E", "030F", "0310", "0311",
"0312", "0313", "0314", "0315", "20D0", "20D1", "20D6", "20D7", "20DB",
"20DC", "20E1", "20E9", "20F0", "23DC", "23DE", "23E0", "00A8", "00AF",
"00B4",
}
local bot_accents = {
"0316", "0317", "0323", "0324", "0325", "0326", "032A", "032B", "032C",
"032D", "032E", "032F", "0330", "0331", "0332", "0333", "208E", "20EC",
"20ED", "20EE", "20EF", "23DD", "23DF", "23E1",
}
context.environment({"xits-env"})
context.starttext()
for _,g in next, chars do
for c in utfcharacters(g) do
for _,a in next, top_accents do
context.math(format([[\Umathaccent fixed "0"0"%s {\Umathchar "0"0 `%s}]], a, c))
context(" ")
end
context.par()
for _,a in next, bot_accents do
context.math(format([[\Umathaccent bottom fixed "0"0"%s {\Umathchar "0"0 `%s}]], a, c))
context(" ")
end
context.par()
end
end
context.stoptext()

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,38 @@
\setupbodyfont[xitsbidi]
\setupalign[r2l]
\setupmathematics[align=r2l]
\starttext
\startformula
\sqrt{𞸞^٢\over ٤𞸜} \eqno(٢)
\stopformula
\startformula
\sum^\infty_{𞹎=٠} 𞹎^٢ \eqno(٢)
\stopformula
\startformula
\left(\root{٢} \of{١٥٥}\right)
\stopformula
\startformula
\left[\int^{٥٥}_{١٢٣} ٦٦٦^٣\right]
\qquad\textstyle\left[\int^{٥٥}_{١٢٣} ٦٦٦^٣\right]
\stopformula
\startformula
\left\{\sum^{٥٥}_{١٢٣} ٦٦٦^٣\right\}
\stopformula
\startformula
\sqrt{\sqrt{\sqrt{\sqrt{\sqrt{\sqrt{\sqrt{\sqrt{\sqrt{\sqrt{٥٥}}}}}}}}}}
\stopformula
\startformula
٥ < ٦ > ٤
\stopformula
\startformula
٥ \leq ٦ \geq ٧
\stopformula
\stoptext

View File

@ -0,0 +1,19 @@
\environment xits-env
\usemodule[fnt-25]
\startbuffer[THEFORMULA]
\hat{a}\qquad \widehat{a}\qquad
\hat{aaa}\qquad \widehat{aaa}\qquad
\hat{aaaaaaaa}\qquad \widehat{aaaaaaaa}
\stopbuffer
\starttext
$\getbuffer[THEFORMULA]$
\blank
\showmathfontcharacters[][0x2C6,0xFE302]
\stoptext

View File

@ -0,0 +1,19 @@
context.environment({"xits-env"})
context.starttext()
for _,s in next, {"text", "display"} do
context.startTEXpage()
context.startformula()
context([[\%sstyle]], s)
for i = 0x222B, 0x2233 do
context([[\Umathchar "1"0"%4X\nolimits_{x}^{y}]], i)
end
for i = 0x2A0B, 0x2A1C do
context([[\Umathchar "1"0"%4X\nolimits_{x}^{y}]], i)
end
context.stopformula()
context.stopTEXpage()
end
context.stoptext()

View File

@ -0,0 +1,20 @@
\environment xits-env
\startbuffer[Alpha]
ABCDEFGHIJKLMOPQRSTUVWXYZ
\stopbuffer
\startbuffer[alpha]
abcdefghijklmopqrstuvwxyz
\stopbuffer
\starttext
\startformula
\startalign[align=middle]
\mathcal{\getbuffer[Alpha]}\NR
\mathcal{\getbuffer[alpha]}\NR
\stopalign
\stopformula
\stoptext

View File

@ -0,0 +1,29 @@
local format = string.format
local accents = {
{ "23B4", "23B5" },
{ "23DC", "23DD" },
{ "23DE", "23DF" },
{ "23E0", "23E1" },
}
local function accent(str, bot)
if bot then
return format([[\Umathaccent bottom "0 "0 "%s ]], str)
else
return format([[\Umathaccent "0 "0 "%s ]], str)
end
end
context.environment({"xits-env"})
context.starttext()
for _,a in next, accents do
for _,t in next, {"x", "xx", "xxx", "xxxx", "xxxxx", "xxxxxx", "xxxxxxx", "xxxxxxxxxxxxxx"} do
context.math(format("%s{%s{%s}}", accent(a[1]), accent(a[2], true), t))
context(" ")
end
context.blank()
end
context.stoptext()

View File

@ -0,0 +1,17 @@
local format, lower = string.format, string.lower
local alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
local styles = { "it", "bi", "rm", "bf" }
context.environment({"xits-env"})
context.starttext()
for c in alpha:gmatch"." do
for _,i in next, styles do
context.math(format([[\math%s{%s^1_1}\kern5pt]], i, c))
context.math(format([[\math%s{%s^1_1}\kern5pt]], i, lower(c)))
end
context.blank({"big"})
end
context.stoptext()

View File

@ -0,0 +1,35 @@
\ctxlua{fonts.otf.features.register_base_substitution('ss08')} % for texlive's context
\definefontfeature[virtualmath] [virtualmath][ss08=yes]
\definefontfeature[math-text] [virtualmath][mathalternates=yes,ssty=no]
\definefontfeature[math-script] [virtualmath][mathalternates=yes,ssty=1,mathsize=yes]
\definefontfeature[math-scriptscript][virtualmath][mathalternates=yes,ssty=2,mathsize=yes]
\setupbodyfont[xits]
\starttext
\startbuffer[integrals]
\ctxlua {
local uchar = unicode.utf8.char
for i = 0x222B, 0x2233 do
tex.sprint([[\Umathchar"1"0`]]..uchar(i)..[[\nolimits_{x}^{y}]])
end
for i = 0x2A0B, 0x2A1C do
tex.sprint([[\Umathchar"1"0`]]..uchar(i)..[[\nolimits_{x}^{y}]])
end
}
\stopbuffer
\startTEXpage
\startformula
\textstyle\getbuffer[integrals]
\stopformula
\stopTEXpage
\startTEXpage
\startformula
\getbuffer[integrals]
\stopformula
\stopTEXpage
\stoptext

View File

@ -0,0 +1,39 @@
context.environment({'xits-env'})
context.starttext()
local NC, NR = context.NC, context.NR
local function entry(code)
NC() context('U+'..code)
NC() context.math('a\\utfchar{"'..code..'}b')
NC() context.math('a\\vsone{\\utfchar{"'..code..'}}b')
NC() NR()
end
context.starttabulate { '|Tl|c|c|' }
entry('2229')
entry('222A')
entry('2268')
entry('2269')
entry('2272')
entry('2273')
entry('228A')
entry('228B')
entry('2293')
entry('2294')
entry('2295')
entry('2297')
entry('229C')
entry('22DA')
entry('22DB')
entry('2A3C')
entry('2A3D')
entry('2A9D')
entry('2A9E')
entry('2AAC')
entry('2AAD')
entry('2ACB')
entry('2ACC')
context.stoptabulate()
context.stoptext()

View File

@ -0,0 +1,16 @@
\environment xits-env
\startbuffer[THEFORMULA]
\left\Vert\left\vert \frac12 \right\vert \right\Vert
\vert\big\vert\Big\vert\bigg\vert\Bigg\vert
\stopbuffer
\starttext
\startTEXpage
\startformula
\getbuffer[THEFORMULA]
\stopformula
\stopTEXpage
\stoptext

View File

@ -0,0 +1,48 @@
\startenvironment xits
%\startmode[xits]
\setupbodyfont[xits]
%\stopmode
\startmode[modern]
\setupbodyfont[modern]
\stopmode
\startmode[cambria]
\setupbodyfont[cambria]
\stopmode
\startmode[asana]
\setupbodyfont[asana]
\stopmode
\startmode[euler]
\setupbodyfont[euler]
\stopmode
\startmode[lucida]
\setupbodyfont[lucidaot]
\stopmode
\startmode[debug]
\tracingoutput=1
\tracingonline=1
\showboxdepth=\maxdimen
\showboxbreadth=\maxdimen
\stopmode
\setuplayout
[width=fit,
height=fit,
header=0pt,
footer=0pt,
leftmargin=0pt,
rightmargin=0pt,
backspace=2em,
topspace=2em]
\setupalign
[line]
\stopenvironment

View File

@ -0,0 +1,13 @@
import sys
try:
from sortsmill import ffcompat as fontforge
except ImportError:
import fontforge
font = fontforge.open(sys.argv[1])
if len(sys.argv) > 4:
font.mergeFeature(sys.argv[4])
font.version = sys.argv[3]
font.generate(sys.argv[2], flags=("round", "opentype"))

View File

@ -0,0 +1,11 @@
#!/usr/bin/env python
import commands
import datetime
date = datetime.date.today().strftime("%d %b %Y")
tag = commands.getoutput("git tag").split("\n")[-1]
log = commands.getoutput("git log --reverse --pretty=format:'- %%s' %s.. sources" % tag)
version = commands.getoutput("grep -o '^VERSION=.*.$' Makefile | cut --delimiter='=' --fields=2")
print "%s (Khaled Hosny) <XITS> Version %s" %(date, version)
print log
print

View File

@ -0,0 +1,58 @@
import sys
import unicodedata
from fontTools.ttLib import TTFont
# Unicode blocks file from: http://www.unicode.org/Public/UNIDATA/Blocks.txt
blocksfile = open(sys.argv[1], "r")
blocks = [ ]
for line in blocksfile.readlines():
if not (line.startswith("#") or line == "\n"):
start, end = line.split("; ")[0].split("..")
name = line.split("; ")[1].strip()
blocks.append((name, (start, end)))
blocksfile.close()
logfile = open(sys.argv[2], "r")
log = logfile.read()
logfile.close()
for fontfile in sys.argv[3:-1]:
font = TTFont(fontfile)
cmap = font['cmap'].getcmap(3, 10)
if cmap is None:
cmap = font['cmap'].getcmap(3, 1)
found = [ ]
for block in blocks:
t = f = 0
name = block[0]
start, end = int(block[1][0], 16), int(block[1][1], 16)
i = start
while (i <= end):
category = unicodedata.category(chr(i))
if category != "Cc" and category!= "Cn":
if i in cmap.cmap:
f += 1
t += 1
i += 1
if f:
found.append((name, (t,f)))
fullname = str(font['name'].getName(4, 1, 0).string, encoding='ascii')
coverage = ""
coverage += "* %s:\n" %fullname
for f in found:
for b in blocks:
if b[0] == f[0]:
name = f[0]
start, end = b[1]
total, present = f[1]
percent = present/total*100
coverage += " %s (U+%s-%s): %s/%s (%.2f%%)\n" %(name, start, end, present, total, percent)
log = log.replace("%%{%s}" %fullname, coverage)
outfile = open(sys.argv[-1], "w")
outfile.write(log)
outfile.close()

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,4 @@
include(xits.pri)
include(../../math_fonts/xits.pri)
include(asana.pri)
LIBS +=

View File

@ -1,338 +0,0 @@
FONTLOG for XITS
-------------------
This file provides detailed information on the XITS font software. This
information should be distributed along with the XITS fonts and any derivative
works.
Basic Font Information
--------------------------
XITS is a Times-like typeface for mathematical and scientific publishing, based
on STIX fonts project. The main mission of XITS is to provide a version of STIX
fonts enriched with the OpenType MATH extension, making it suitable for high
quality mathematic typesetting with OpenType MATH capable layout systems, like
MS Office 2007 and the new TeX engines XeTeX and LuaTeX.
XITS development is currently hosted on:
http://github.com/khaledhosny/xits-math
Feature requests, bug reports and patches should be directed to our issue
tracker.
XITS currently provides the following Unicode coverage:
* XITS Math:
Basic Latin (U+0000-007F): 95/95 (100.00%)
Latin-1 Supplement (U+0080-00FF): 96/96 (100.00%)
Latin Extended-A (U+0100-017F): 128/128 (100.00%)
Latin Extended-B (U+0180-024F): 37/208 (17.79%)
IPA Extensions (U+0250-02AF): 91/96 (94.79%)
Spacing Modifier Letters (U+02B0-02FF): 62/80 (77.50%)
Combining Diacritical Marks (U+0300-036F): 73/112 (65.18%)
Greek and Coptic (U+0370-03FF): 93/134 (69.40%)
Cyrillic (U+0400-04FF): 102/256 (39.84%)
Arabic (U+0600-06FF): 67/250 (26.80%)
Phonetic Extensions (U+1D00-1D7F): 3/128 (2.34%)
Phonetic Extensions Supplement (U+1D80-1DBF): 8/64 (12.50%)
Latin Extended Additional (U+1E00-1EFF): 8/256 (3.12%)
General Punctuation (U+2000-206F): 70/107 (65.42%)
Superscripts and Subscripts (U+2070-209F): 1/34 (2.94%)
Currency Symbols (U+20A0-20CF): 4/25 (16.00%)
Combining Diacritical Marks for Symbols (U+20D0-20FF): 24/33 (72.73%)
Letterlike Symbols (U+2100-214F): 60/80 (75.00%)
Number Forms (U+2150-218F): 12/58 (20.69%)
Arrows (U+2190-21FF): 103/112 (91.96%)
Mathematical Operators (U+2200-22FF): 256/256 (100.00%)
Miscellaneous Technical (U+2300-23FF): 90/233 (38.63%)
Control Pictures (U+2400-243F): 1/39 (2.56%)
Enclosed Alphanumerics (U+2460-24FF): 62/160 (38.75%)
Box Drawing (U+2500-257F): 45/128 (35.16%)
Block Elements (U+2580-259F): 8/32 (25.00%)
Geometric Shapes (U+25A0-25FF): 96/96 (100.00%)
Miscellaneous Symbols (U+2600-26FF): 54/250 (21.60%)
Dingbats (U+2700-27BF): 30/175 (17.14%)
Miscellaneous Mathematical Symbols-A (U+27C0-27EF): 43/44 (97.73%)
Supplemental Arrows-A (U+27F0-27FF): 16/16 (100.00%)
Supplemental Arrows-B (U+2900-297F): 128/128 (100.00%)
Miscellaneous Mathematical Symbols-B (U+2980-29FF): 128/128 (100.00%)
Supplemental Mathematical Operators (U+2A00-2AFF): 256/256 (100.00%)
Miscellaneous Symbols and Arrows (U+2B00-2BFF): 64/87 (73.56%)
CJK Symbols and Punctuation (U+3000-303F): 2/64 (3.12%)
Hiragana (U+3040-309F): 1/93 (1.08%)
Latin Extended-D (U+A720-A7FF): 1/114 (0.88%)
Variation Selectors (U+FE00-FE0F): 1/16 (6.25%)
Specials (U+FFF0-FFFF): 1/5 (20.00%)
Mathematical Alphanumeric Symbols (U+1D400-1D7FF): 996/996 (100.00%)
* XITS:
Basic Latin (U+0000-007F): 95/95 (100.00%)
Latin-1 Supplement (U+0080-00FF): 96/96 (100.00%)
Latin Extended-A (U+0100-017F): 128/128 (100.00%)
Latin Extended-B (U+0180-024F): 37/208 (17.79%)
IPA Extensions (U+0250-02AF): 91/96 (94.79%)
Spacing Modifier Letters (U+02B0-02FF): 61/80 (76.25%)
Combining Diacritical Marks (U+0300-036F): 72/112 (64.29%)
Greek and Coptic (U+0370-03FF): 93/134 (69.40%)
Cyrillic (U+0400-04FF): 102/256 (39.84%)
Phonetic Extensions (U+1D00-1D7F): 3/128 (2.34%)
Phonetic Extensions Supplement (U+1D80-1DBF): 8/64 (12.50%)
Latin Extended Additional (U+1E00-1EFF): 8/256 (3.12%)
General Punctuation (U+2000-206F): 46/107 (42.99%)
Superscripts and Subscripts (U+2070-209F): 1/34 (2.94%)
Currency Symbols (U+20A0-20CF): 4/25 (16.00%)
Combining Diacritical Marks for Symbols (U+20D0-20FF): 24/33 (72.73%)
Letterlike Symbols (U+2100-214F): 60/80 (75.00%)
Number Forms (U+2150-218F): 12/58 (20.69%)
Arrows (U+2190-21FF): 103/112 (91.96%)
Mathematical Operators (U+2200-22FF): 256/256 (100.00%)
Miscellaneous Technical (U+2300-23FF): 61/233 (26.18%)
Control Pictures (U+2400-243F): 1/39 (2.56%)
Enclosed Alphanumerics (U+2460-24FF): 62/160 (38.75%)
Box Drawing (U+2500-257F): 45/128 (35.16%)
Block Elements (U+2580-259F): 8/32 (25.00%)
Geometric Shapes (U+25A0-25FF): 96/96 (100.00%)
Miscellaneous Symbols (U+2600-26FF): 54/250 (21.60%)
Dingbats (U+2700-27BF): 30/175 (17.14%)
Miscellaneous Mathematical Symbols-A (U+27C0-27EF): 43/44 (97.73%)
Supplemental Arrows-A (U+27F0-27FF): 16/16 (100.00%)
Supplemental Arrows-B (U+2900-297F): 128/128 (100.00%)
Miscellaneous Mathematical Symbols-B (U+2980-29FF): 128/128 (100.00%)
Supplemental Mathematical Operators (U+2A00-2AFF): 256/256 (100.00%)
Miscellaneous Symbols and Arrows (U+2B00-2BFF): 64/87 (73.56%)
CJK Symbols and Punctuation (U+3000-303F): 2/64 (3.12%)
Hiragana (U+3040-309F): 1/93 (1.08%)
Latin Extended-D (U+A720-A7FF): 1/114 (0.88%)
Alphabetic Presentation Forms (U+FB00-FB4F): 5/58 (8.62%)
Specials (U+FFF0-FFFF): 1/5 (20.00%)
* XITS Bold:
Basic Latin (U+0000-007F): 95/95 (100.00%)
Latin-1 Supplement (U+0080-00FF): 96/96 (100.00%)
Latin Extended-A (U+0100-017F): 128/128 (100.00%)
Latin Extended-B (U+0180-024F): 32/208 (15.38%)
IPA Extensions (U+0250-02AF): 89/96 (92.71%)
Spacing Modifier Letters (U+02B0-02FF): 61/80 (76.25%)
Combining Diacritical Marks (U+0300-036F): 72/112 (64.29%)
Greek and Coptic (U+0370-03FF): 93/134 (69.40%)
Cyrillic (U+0400-04FF): 102/256 (39.84%)
Phonetic Extensions (U+1D00-1D7F): 3/128 (2.34%)
Latin Extended Additional (U+1E00-1EFF): 8/256 (3.12%)
General Punctuation (U+2000-206F): 40/107 (37.38%)
Superscripts and Subscripts (U+2070-209F): 1/34 (2.94%)
Currency Symbols (U+20A0-20CF): 4/25 (16.00%)
Combining Diacritical Marks for Symbols (U+20D0-20FF): 22/33 (66.67%)
Letterlike Symbols (U+2100-214F): 38/80 (47.50%)
Number Forms (U+2150-218F): 12/58 (20.69%)
Arrows (U+2190-21FF): 82/112 (73.21%)
Mathematical Operators (U+2200-22FF): 237/256 (92.58%)
Miscellaneous Technical (U+2300-23FF): 15/233 (6.44%)
Control Pictures (U+2400-243F): 1/39 (2.56%)
Enclosed Alphanumerics (U+2460-24FF): 62/160 (38.75%)
Box Drawing (U+2500-257F): 40/128 (31.25%)
Geometric Shapes (U+25A0-25FF): 6/96 (6.25%)
Miscellaneous Symbols (U+2600-26FF): 3/250 (1.20%)
Miscellaneous Mathematical Symbols-A (U+27C0-27EF): 4/44 (9.09%)
Miscellaneous Mathematical Symbols-B (U+2980-29FF): 10/128 (7.81%)
Supplemental Mathematical Operators (U+2A00-2AFF): 58/256 (22.66%)
Alphabetic Presentation Forms (U+FB00-FB4F): 5/58 (8.62%)
* XITS Italic:
Basic Latin (U+0000-007F): 95/95 (100.00%)
Latin-1 Supplement (U+0080-00FF): 96/96 (100.00%)
Latin Extended-A (U+0100-017F): 128/128 (100.00%)
Latin Extended-B (U+0180-024F): 32/208 (15.38%)
IPA Extensions (U+0250-02AF): 89/96 (92.71%)
Spacing Modifier Letters (U+02B0-02FF): 28/80 (35.00%)
Greek and Coptic (U+0370-03FF): 92/134 (68.66%)
Cyrillic (U+0400-04FF): 102/256 (39.84%)
Latin Extended Additional (U+1E00-1EFF): 8/256 (3.12%)
General Punctuation (U+2000-206F): 23/107 (21.50%)
Currency Symbols (U+20A0-20CF): 4/25 (16.00%)
Combining Diacritical Marks for Symbols (U+20D0-20FF): 20/33 (60.61%)
Letterlike Symbols (U+2100-214F): 30/80 (37.50%)
Mathematical Operators (U+2200-22FF): 2/256 (0.78%)
Control Pictures (U+2400-243F): 1/39 (2.56%)
Enclosed Alphanumerics (U+2460-24FF): 62/160 (38.75%)
Box Drawing (U+2500-257F): 40/128 (31.25%)
Alphabetic Presentation Forms (U+FB00-FB4F): 5/58 (8.62%)
* XITS Bold Italic:
Basic Latin (U+0000-007F): 95/95 (100.00%)
Latin-1 Supplement (U+0080-00FF): 96/96 (100.00%)
Latin Extended-A (U+0100-017F): 128/128 (100.00%)
Latin Extended-B (U+0180-024F): 32/208 (15.38%)
IPA Extensions (U+0250-02AF): 89/96 (92.71%)
Spacing Modifier Letters (U+02B0-02FF): 28/80 (35.00%)
Greek and Coptic (U+0370-03FF): 92/134 (68.66%)
Cyrillic (U+0400-04FF): 102/256 (39.84%)
Latin Extended Additional (U+1E00-1EFF): 8/256 (3.12%)
General Punctuation (U+2000-206F): 23/107 (21.50%)
Currency Symbols (U+20A0-20CF): 4/25 (16.00%)
Combining Diacritical Marks for Symbols (U+20D0-20FF): 1/33 (3.03%)
Letterlike Symbols (U+2100-214F): 29/80 (36.25%)
Mathematical Operators (U+2200-22FF): 2/256 (0.78%)
Control Pictures (U+2400-243F): 1/39 (2.56%)
Enclosed Alphanumerics (U+2460-24FF): 62/160 (38.75%)
Box Drawing (U+2500-257F): 40/128 (31.25%)
Alphabetic Presentation Forms (U+FB00-FB4F): 5/58 (8.62%)
Information for Contributors
------------------------------
XITS is released under the OFL 1.1 - http://scripts.sil.org/OFL For information
on what you're allowed to change or modify, consult the OFL-1.1.txt and
OFL-FAQ.txt files. The OFL-FAQ also gives a very general rationale and various
recommendations regarding why you would want to contribute to the project or
make your own version of the font.
See the project website for the current master and the various branches:
http://github.com/khaledhosny/xits-math
ChangeLog
----------
28 May 2012 (Khaled Hosny) <XITS> Version 1.106
- Improve accent possitioning of bold script alphabet
- Fix integral italic correction of bold math font
- Add calligraphic alphabet bold math font
- Add upright integrals to bold math font
18 May 2012 (Khaled Hosny) <XITS> Version 1.105
- Remove ligatures and oldstyle figures from math font
- Move primes closer together
- Fix extensibility of combining over/under arrows
- Add 4 pre-built sizes for bar glyphs
- Initial bold math font
- Add under left right arrow
12 Feb 2012 (Khaled Hosny) <XITS> Version 1.104
- Fix various warnings reported vy `compareFamily` tool of AFDKO
- Fix primes size so that base and superscripted primes are identical in size
and a bit smaller than before
29 Nov 2011 (Khaled Hosny) <XITS> Version 1.103
- Remove erroneous dots from U+2A2B and add U+2A2C to XITS Bold
08 Nov 2011 (Khaled Hosny) <XITS> Version 1.102
- Fix inconsistent line spacing caused by inline math in MS Word
08 Oct 2011 (Khaled Hosny) <XITS> Version 1.101
- Support for numr and dnom features in XITS Regular
- Add Arabic comma to XITS Math
- Sync with STIXv1.1.0-beta1:
- New values for StackBottomShiftDown and StackBottomDisplayStyleShiftDown
- Sync PS private table in XITS Math
- Sync relevant glyph changes
18 Sep 2011 (Khaled Hosny) <XITS> Version 1.012
- Fix bug in \scriptscriptstyle primes with XeTeX
13 Jul 2011 (Khaled Hosny) <XITS> Version 1.011
- Initial right-to-left math support
- Add basic Arabic letters, digits and some math symbols
- Add support for overly accents
- Make uni2980, uni20E9, uni2223, uni2225, uni2AF4 and uni2AFC extensible
- Support math variants using variation selector (VS1)
- Add alternate negated symbols with vertical stroke
- Use the bar glyph from STIXVar.otf
- Fix FontForge warnings
- Fix swapped U+22D2 and U+22D3 glyphs
22 Apr 2011 (Khaled Hosny) <XITS> Version 1.010
- Make \over/underbrace and sisters less close to base glyphs
- Add upright integrals as stylistic set ss08
21 Apr 2011 (Khaled Hosny) <XITS> Version 1.009
- Don't hard code OS/2 code pages and Unicode ranges
- Fix StackBottomShiftDown and StackBottomDisplayStyleShiftDown math parameters
12 Jan 2011 (Khaled Hosny) <XITS> Version 1.008
- Fix sub/supercript positioning for uppercase script family
- Make \lgroup and \rgroup extensible
- Mark few more brackets extended shapes
- Make \lmoustache \rmoustache extensible
25 Oct 2010 (Khaled Hosny) <XITS> Version 1.007
- Add TopAccentHorizontal position to U+00B7, U+0131, U+0237, U+203E, U+22C5
- Add spaces and control characters U+0000-001F, U+2000-200F, U+2028-202F
- Tune script positioning for display integrals
- Disable smaller than text size integrals
- Rename fj ligature glyph to "f_j" for PDF search
- Assign un-encoded glyphs PUA code points
- Use U+23B7 slot for the glyph uni221A.base
- Change integral glyphs name suffixes to "small" and "display"
15 Jul 2010 (Khaled Hosny) <XITS> Version 1.006
- More italic correction to double struck alphabet
- Misc accents cleanup
- Remove wide variants of spacing accents
- Fine tuning of Latin and Greek top accent positioning
- Revise math constants, based on a default rule thickness of 66 instead of 50
- Draw a .notdef glyph instead of being empty, in the math font
- Make the bar glyph descend below the base line in the math font
08 Jul 2010 (Khaled Hosny) <XITS> Version 1.005
- Fix wrong style for italic double struck symbols
- Cover all small i and j letters in 'dtls' feature
- Add top accent position for math serif Greek
- Add vertical composition for floor and ceiling
- Increase RadicalDegreeBottomRaisePercent
- Add math bold digamma
- Add math bold, italic and bold italic double-struck stylistic sets
- Add math bold monospace digits stylistic set
- Add math italic sans-serif digits stylistic set
- Add math sans-serif Greek stylistic set
11 Jun 2010 (Khaled Hosny) <XITS> Version 1.004
- Fix the mysterious MS Office 2007 composition bug
10 Jun 2010 (Khaled Hosny) <XITS> Version 1.003
- Set OS/2 version to 4
- Add italic correction to math italic Greek and Latin
- Remove redundant math glyphs from text fonts
- Add 'dtls' feature and bold dotless i and j
- Add bold mathematical calligraphic alphabet
- Add mathematical calligraphic alphabet
6 Jun 2010 (Khaled Hosny) <XITS> Version 1.002
- Make OS/2 ascender/descender absolute values
- Move GSUB code to a font feature file
- Merge oldstyle figures from STIXNonUni* fonts
- Import the rest of STIXGeneral fonts
4 Jun 2010 (Khaled Hosny) <XITS Math> Version 1.001
- Edit various font metadata
- Initial release of "XITS Math"
- Add sub/superscript variants of primes
- Fix displaced \widehat and sisters
- Add italic correction, not all glyphs yet
- Fix the vertical positions of \[over|under]brace
- Ask FontForge to guess the BlueValues:
- Add 'frac' feature for text fractions
- Add oldstyle numbers
- Add Horizontal construction
- Add Vertical construction
- Add horizontal top accent position values
- Mark extended shapes
- Add horizontal variants
- Add vertical variants
- Add MATH table
Acknowledgements
-------------------------
If you make modifications be sure to add your name (N), email (E), web-address
(W) and description (D). This list is sorted by last name in alphabetical
order.)
N: Khaled Hosny
E: khaledhosny@eglug.org
W: http://www.khaledhosny.org
D: Engineer - OpenType MATH code
N: STIX Fonts project
E:
W: http://www.stixfonts.org
D: Original authors

View File

@ -1,91 +0,0 @@
NAME=xits
VERSION=1.108
SRC=sources
WEB=webfonts
DOC=documentation
TOOLS=tools
DOCSRC=$(DOC)/$(DOC)-$(SRC)
DIST=$(NAME)-$(VERSION)
PY=python
PY3=python3
SFNTTOOL=sfnttool
BUILD=$(TOOLS)/build.py
POSTPROCESS=$(TOOLS)/postprocess.py
COVERAGE=$(TOOLS)/fontcoverage.py
FONTS=math mathbold regular bold italic bolditalic
DOCS=user-guide xits-specimen
FEA=xits.fea
SFD=$(FONTS:%=$(SRC)/$(NAME)-%.sfd)
OTF=$(FONTS:%=$(NAME)-%.otf)
WOF=$(FONTS:%=$(WEB)/$(NAME)-%.woff)
EOT=$(FONTS:%=$(WEB)/$(NAME)-%.eot)
TEX=$(DOCS:%=$(DOCSRC)/%.tex)
PDF=$(DOCS:%=$(DOC)/%.pdf)
all: otf web
otf: $(OTF)
# sfntool does not support buiding EOT from OTF fonts
#web: $(WOF) $(EOT)
web: $(WOF)
xits-math.otf: $(SRC)/xits-math.sfd Makefile $(BUILD) $(POSTPROCESS)
@echo "Building $@"
@$(PY) $(BUILD) $< $@ $(VERSION)
@$(PY) $(POSTPROCESS) $@ $@.post
@mv $@.post $@
xits-mathbold.otf: $(SRC)/xits-mathbold.sfd Makefile $(BUILD) $(POSTPROCESS)
@echo "Building $@"
@$(PY) $(BUILD) $< $@ $(VERSION)
@$(PY) $(POSTPROCESS) $@ $@.post
@mv $@.post $@
%.otf: $(SRC)/%.sfd Makefile $(SRC)/$(FEA) $(BUILD) $(POSTPROCESS)
@echo "Building $@"
@$(PY) $(BUILD) $< $@ $(VERSION) $(SRC)/$(FEA)
@$(PY) $(POSTPROCESS) $@ $@.post
@mv $@.post $@
$(WEB)/%.woff: %.otf
@echo "Building $@"
@mkdir -p $(WEB)
@$(SFNTTOOL) -w $< $@
$(WEB)/%.eot: %.otf
@echo "Building $@"
@mkdir -p $(WEB)
@$(SFNTTOOL) -e -x $< $@
doc: $(PDF)
$(DOC)/%.pdf: $(DOCSRC)/%.tex
@echo "Building $@"
@context --nonstopmode --result=$@ $< 1>/dev/null
FONTLOG.txt: FONTLOG.txt.in $(COVERAGE) $(OTF)
@echo "Generating $@"
@$(PY3) $(COVERAGE) tools/Blocks.txt $< $(OTF) $@
dist: $(OTF) $(PDF) FONTLOG.txt
@echo "Making dist tarball"
@mkdir -p $(DIST)/$(SRC)
@mkdir -p $(DIST)/$(DOC)
@mkdir -p $(DIST)/$(DOCSRC)
@mkdir -p $(DIST)/$(TOOLS)
@cp $(SFD) $(DIST)/$(SRC)
@cp $(SRC)/$(FEA) $(DIST)/$(SRC)
@cp $(OTF) $(DIST)
@cp $(POSTPROCESS) $(BUILD) $(COVERAGE) $(DIST)/$(TOOLS)
@cp -r $(PDF) $(DIST)/$(DOC)
@cp -r $(TEX) $(DIST)/$(DOCSRC)
@cp -r Makefile OFL-FAQ.txt OFL.txt FONTLOG.txt tex $(DIST)
@cp README.md $(DIST)/README.txt
@zip -r $(DIST).zip $(DIST)
clean:
@rm -rf $(OTF) $(DIST) $(DIST).zip

View File

@ -1,28 +0,0 @@
The XITS font project
======================
XITS is a Times-like typeface for mathematical and scientific publishing,
based on [STIX fonts][1]. The main mission of XITS is to provide a
version of STIX fonts enriched with the OpenType MATH extension, making
it suitable for high quality mathematic typesetting with OpenType MATH
capable layout systems, like MS Office 2007 and the new TeX engines
XeTeX and LuaTeX.
XITS font is free, open source font, under [Open Font License][2],
version 1.1.
The current version of XITS is based on version 1.1.0-beta1 of STIX fonts.
This is work in progress, feedback, bug reports and even patches are
welcomed.
[1]: http://www.stixfonts.org
[2]: http://scripts.sil.org/OFL
Khaled Hosny
khaledhosny@eglug.org
08 Oct 2011

View File

@ -1,23 +0,0 @@
#!/usr/bin/env python
import sys
from fontTools import ttLib
font = ttLib.TTFont(sys.argv[1])
MS_Platform_ID = 3
MS_Enc_ID = 1
MS_Lang_US_ID = 0x409
FullName_ID = 4
name = font["name"]
cff = font["CFF "]
psname = cff.cff.fontNames[0]
# set MS full name to psname
# per name table spec
fullname = name.getName(FullName_ID, MS_Platform_ID, MS_Enc_ID, MS_Lang_US_ID)
fullname.string = psname.encode("utf_16_be")
font.save(sys.argv[1] + ".post")