summaryrefslogtreecommitdiff
path: root/fonts/zhmetrics-uptex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /fonts/zhmetrics-uptex
Initial commit
Diffstat (limited to 'fonts/zhmetrics-uptex')
-rw-r--r--fonts/zhmetrics-uptex/README.md74
-rw-r--r--fonts/zhmetrics-uptex/doc/README.md74
-rw-r--r--fonts/zhmetrics-uptex/doc/upzhfandolfonts-test.pdfbin0 -> 86813 bytes
-rw-r--r--fonts/zhmetrics-uptex/doc/upzhfandolfonts-test.tex42
-rw-r--r--fonts/zhmetrics-uptex/source/makemetrics.lua19
-rw-r--r--fonts/zhmetrics-uptex/source/upzhm-h.pl135
-rw-r--r--fonts/zhmetrics-uptex/source/upzhm-v.pl135
-rw-r--r--fonts/zhmetrics-uptex/tex/upzhfandolfonts.tex17
-rw-r--r--fonts/zhmetrics-uptex/tfm/upmono-h.tfmbin0 -> 108 bytes
-rw-r--r--fonts/zhmetrics-uptex/tfm/upmono-v.tfmbin0 -> 108 bytes
-rw-r--r--fonts/zhmetrics-uptex/tfm/upsans-h.tfmbin0 -> 108 bytes
-rw-r--r--fonts/zhmetrics-uptex/tfm/upsans-v.tfmbin0 -> 108 bytes
-rw-r--r--fonts/zhmetrics-uptex/tfm/upsansb-h.tfmbin0 -> 108 bytes
-rw-r--r--fonts/zhmetrics-uptex/tfm/upsansb-v.tfmbin0 -> 108 bytes
-rw-r--r--fonts/zhmetrics-uptex/tfm/upserif-h.tfmbin0 -> 108 bytes
-rw-r--r--fonts/zhmetrics-uptex/tfm/upserif-v.tfmbin0 -> 108 bytes
-rw-r--r--fonts/zhmetrics-uptex/tfm/upserifb-h.tfmbin0 -> 108 bytes
-rw-r--r--fonts/zhmetrics-uptex/tfm/upserifb-v.tfmbin0 -> 108 bytes
-rw-r--r--fonts/zhmetrics-uptex/tfm/upserifit-h.tfmbin0 -> 108 bytes
-rw-r--r--fonts/zhmetrics-uptex/tfm/upserifit-v.tfmbin0 -> 108 bytes
-rw-r--r--fonts/zhmetrics-uptex/tfm/upzhmono-h.tfmbin0 -> 504 bytes
-rw-r--r--fonts/zhmetrics-uptex/tfm/upzhmono-v.tfmbin0 -> 504 bytes
-rw-r--r--fonts/zhmetrics-uptex/tfm/upzhsans-h.tfmbin0 -> 504 bytes
-rw-r--r--fonts/zhmetrics-uptex/tfm/upzhsans-v.tfmbin0 -> 504 bytes
-rw-r--r--fonts/zhmetrics-uptex/tfm/upzhsansb-h.tfmbin0 -> 504 bytes
-rw-r--r--fonts/zhmetrics-uptex/tfm/upzhsansb-v.tfmbin0 -> 504 bytes
-rw-r--r--fonts/zhmetrics-uptex/tfm/upzhserif-h.tfmbin0 -> 504 bytes
-rw-r--r--fonts/zhmetrics-uptex/tfm/upzhserif-v.tfmbin0 -> 504 bytes
-rw-r--r--fonts/zhmetrics-uptex/tfm/upzhserifb-h.tfmbin0 -> 504 bytes
-rw-r--r--fonts/zhmetrics-uptex/tfm/upzhserifb-v.tfmbin0 -> 504 bytes
-rw-r--r--fonts/zhmetrics-uptex/tfm/upzhserifit-h.tfmbin0 -> 504 bytes
-rw-r--r--fonts/zhmetrics-uptex/tfm/upzhserifit-v.tfmbin0 -> 504 bytes
-rw-r--r--fonts/zhmetrics-uptex/vf/upzhmono-h.vfbin0 -> 644716 bytes
-rw-r--r--fonts/zhmetrics-uptex/vf/upzhmono-v.vfbin0 -> 644716 bytes
-rw-r--r--fonts/zhmetrics-uptex/vf/upzhsans-h.vfbin0 -> 644716 bytes
-rw-r--r--fonts/zhmetrics-uptex/vf/upzhsans-v.vfbin0 -> 644716 bytes
-rw-r--r--fonts/zhmetrics-uptex/vf/upzhsansb-h.vfbin0 -> 644720 bytes
-rw-r--r--fonts/zhmetrics-uptex/vf/upzhsansb-v.vfbin0 -> 644720 bytes
-rw-r--r--fonts/zhmetrics-uptex/vf/upzhserif-h.vfbin0 -> 644720 bytes
-rw-r--r--fonts/zhmetrics-uptex/vf/upzhserif-v.vfbin0 -> 644720 bytes
-rw-r--r--fonts/zhmetrics-uptex/vf/upzhserifb-h.vfbin0 -> 644720 bytes
-rw-r--r--fonts/zhmetrics-uptex/vf/upzhserifb-v.vfbin0 -> 644720 bytes
-rw-r--r--fonts/zhmetrics-uptex/vf/upzhserifit-h.vfbin0 -> 644720 bytes
-rw-r--r--fonts/zhmetrics-uptex/vf/upzhserifit-v.vfbin0 -> 644720 bytes
44 files changed, 496 insertions, 0 deletions
diff --git a/fonts/zhmetrics-uptex/README.md b/fonts/zhmetrics-uptex/README.md
new file mode 100644
index 0000000000..e8d0637b5e
--- /dev/null
+++ b/fonts/zhmetrics-uptex/README.md
@@ -0,0 +1,74 @@
+zhmetrics-uptex
+===============================================
+
+**2016/04/23 Ver 1.0**
+
+The `zhmetrics-uptex` package contains some Chinese font metrics (JFM, VF, etc) for upTeX engine, together with a simple DVIPDFMx font mapping of Fandol fonts for DVIPDFMx.
+
+The font mapping can be loaded in the TeX source file, or changed in the document to use other fonts.
+
+Files
+-----
+
+* `upzh*-{h,v}.tfm` are the JFM files used by upTeX.
+* `upzh*-{h,v}.vf` are the virtual fonts used by the output driver (dvipdfmx).
+* `up*-{h,v}.tfm` are the PS TFM files used by the output driver.
+* `upzhfandolfonts.tex` contains the font mappings of Fandol fonts for DVIPDFMx.
+* `upzhfandolfonts-test.tex` is a small LaTeX test file.
+* `upzhm-{h,v}.pl` are the JPL source files used to produce JFM files.
+* `makemetrics.lua` is the build script.
+
+Build
+-----
+
+To create the metric files, just run:
+```shell
+texlua makemetrics.lua
+```
+in the source directory.
+
+Contributing
+------------
+
+This font package is a part of the [ctex-kit](https://github.com/CTeX-org/ctex-kit) project.
+
+Issues and pull requests are welcome.
+
+Copyright and Licence
+---------------------
+
+Copyright (C) 2016 by Leo Liu <leoliu.pku@gmail.com>
+
+This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3 of this license or (at your option) any later version. The latest version of this license is in
+ http://www.latex-project.org/lppl.txt
+and version 1.3 or later is part of all distributions of LaTeX version 2005/12/01 or later.
+
+This work has the LPPL maintenance status `maintained'.
+
+The Current Maintainer of this work is Leo Liu.
+
+This work consists of the files
+ makemetrics.lua
+ upzhm-{h,v}.pl
+ upzhfandolfonts.tex
+ upzhfandolfongs-test.tex
+ README.md
+and the derived files
+ upzhserif-{h,v}.tfm
+ upzhserifit-{h,v}.tfm
+ upzhserifb-{h,v}.tfm
+ upzhsans-{h,v}.tfm
+ upzhsnasb-{h,v}.tfm
+ upzhmono-{h,v}.tfm
+ upzhserif-{h,v}.vf
+ upzhserifit-{h,v}.vf
+ upzhserifb-{h,v}.vf
+ upzhsans-{h,v}.vf
+ upzhsnasb-{h,v}.vf
+ upzhmono-{h,v}.vf
+ upserif-{h,v}.tfm
+ upserifit-{h,v}.tfm
+ upserifb-{h,v}.tfm
+ upsans-{h,v}.tfm
+ upsnasb-{h,v}.tfm
+ upmono-{h,v}.tfm
diff --git a/fonts/zhmetrics-uptex/doc/README.md b/fonts/zhmetrics-uptex/doc/README.md
new file mode 100644
index 0000000000..e8d0637b5e
--- /dev/null
+++ b/fonts/zhmetrics-uptex/doc/README.md
@@ -0,0 +1,74 @@
+zhmetrics-uptex
+===============================================
+
+**2016/04/23 Ver 1.0**
+
+The `zhmetrics-uptex` package contains some Chinese font metrics (JFM, VF, etc) for upTeX engine, together with a simple DVIPDFMx font mapping of Fandol fonts for DVIPDFMx.
+
+The font mapping can be loaded in the TeX source file, or changed in the document to use other fonts.
+
+Files
+-----
+
+* `upzh*-{h,v}.tfm` are the JFM files used by upTeX.
+* `upzh*-{h,v}.vf` are the virtual fonts used by the output driver (dvipdfmx).
+* `up*-{h,v}.tfm` are the PS TFM files used by the output driver.
+* `upzhfandolfonts.tex` contains the font mappings of Fandol fonts for DVIPDFMx.
+* `upzhfandolfonts-test.tex` is a small LaTeX test file.
+* `upzhm-{h,v}.pl` are the JPL source files used to produce JFM files.
+* `makemetrics.lua` is the build script.
+
+Build
+-----
+
+To create the metric files, just run:
+```shell
+texlua makemetrics.lua
+```
+in the source directory.
+
+Contributing
+------------
+
+This font package is a part of the [ctex-kit](https://github.com/CTeX-org/ctex-kit) project.
+
+Issues and pull requests are welcome.
+
+Copyright and Licence
+---------------------
+
+Copyright (C) 2016 by Leo Liu <leoliu.pku@gmail.com>
+
+This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3 of this license or (at your option) any later version. The latest version of this license is in
+ http://www.latex-project.org/lppl.txt
+and version 1.3 or later is part of all distributions of LaTeX version 2005/12/01 or later.
+
+This work has the LPPL maintenance status `maintained'.
+
+The Current Maintainer of this work is Leo Liu.
+
+This work consists of the files
+ makemetrics.lua
+ upzhm-{h,v}.pl
+ upzhfandolfonts.tex
+ upzhfandolfongs-test.tex
+ README.md
+and the derived files
+ upzhserif-{h,v}.tfm
+ upzhserifit-{h,v}.tfm
+ upzhserifb-{h,v}.tfm
+ upzhsans-{h,v}.tfm
+ upzhsnasb-{h,v}.tfm
+ upzhmono-{h,v}.tfm
+ upzhserif-{h,v}.vf
+ upzhserifit-{h,v}.vf
+ upzhserifb-{h,v}.vf
+ upzhsans-{h,v}.vf
+ upzhsnasb-{h,v}.vf
+ upzhmono-{h,v}.vf
+ upserif-{h,v}.tfm
+ upserifit-{h,v}.tfm
+ upserifb-{h,v}.tfm
+ upsans-{h,v}.tfm
+ upsnasb-{h,v}.tfm
+ upmono-{h,v}.tfm
diff --git a/fonts/zhmetrics-uptex/doc/upzhfandolfonts-test.pdf b/fonts/zhmetrics-uptex/doc/upzhfandolfonts-test.pdf
new file mode 100644
index 0000000000..cf34ea81eb
--- /dev/null
+++ b/fonts/zhmetrics-uptex/doc/upzhfandolfonts-test.pdf
Binary files differ
diff --git a/fonts/zhmetrics-uptex/doc/upzhfandolfonts-test.tex b/fonts/zhmetrics-uptex/doc/upzhfandolfonts-test.tex
new file mode 100644
index 0000000000..fa44b52b49
--- /dev/null
+++ b/fonts/zhmetrics-uptex/doc/upzhfandolfonts-test.tex
@@ -0,0 +1,42 @@
+\documentclass{article}
+
+\usepackage[dvipdfm,a5paper,margin=1in]{geometry}
+\newcommand\vertical{%
+ \clearpage
+ \newgeometry{width=\textheight,height=\textwidth,left=1in,top=1in}%
+ \tate}
+
+\font\rm=upzhserif-h
+\font\it=upzhserifit-h
+\font\bf=upzhserifb-h
+\font\sf=upzhsans-h
+\font\sfbf=upzhsansb-h
+\font\tt=upzhmono-h
+\font\vrm=upzhserif-v
+\font\vit=upzhserifit-v
+\font\vbf=upzhserifb-v
+\font\vsf=upzhsans-v
+\font\vsfbf=upzhsansb-v
+\font\vtt=upzhmono-v
+
+\AtBeginDvi{\input{upzhfandolfonts}}
+
+\begin{document}
+
+\makeatletter
+\@for\fnt:=\rm,\it,\bf,\sf,\sfbf,\tt \do{%
+ {\fnt
+ 庄子曰:“吾生也有涯,而知也无涯。以有涯随无涯,殆已!已而为知者,殆而已矣!
+ 为善无近名,为恶无近刑,缘督以为经,可以保身,可以全生,可以养亲,可以尽年。”
+ \par}
+}
+
+\vertical
+
+\@for\fnt:=\vrm,\vit,\vbf,\vsf,\vsfbf,\vtt \do{%
+ {\fnt
+ 庄子曰:「吾生也有涯,而知也无涯。以有涯随无涯,殆已!已而为知者,殆而已矣!
+ 为善无近名,为恶无近刑,缘督以为经,可以保身,可以全生,可以养亲,可以尽年。」
+ \par}
+}
+\end{document}
diff --git a/fonts/zhmetrics-uptex/source/makemetrics.lua b/fonts/zhmetrics-uptex/source/makemetrics.lua
new file mode 100644
index 0000000000..8b55ee50f2
--- /dev/null
+++ b/fonts/zhmetrics-uptex/source/makemetrics.lua
@@ -0,0 +1,19 @@
+#!/usr/bin/env texlua
+
+-- zhmetrics-uptex v1.0
+-- Copyright (C) 2016 by Leo Liu <leoliu.pku@gmail.com>
+
+local fonts = {'serif', 'serifit', 'serifb', 'sans', 'sansb', 'mono'}
+local pltopf = 'uppltotf -kanji=uptex'
+local makejvf = 'makejvf -i -u gb'
+
+for _, hv in pairs({'h', 'v'}) do
+ for _, fnt in pairs(fonts) do
+ local pl = string.format('upzhm-%s.pl', hv)
+ local jfm = string.format('upzh%s-%s.tfm', fnt, hv)
+ local vf = string.format('upzh%s-%s.vf', fnt, hv)
+ local pstfm = string.format('up%s-%s.tfm', fnt, hv)
+ os.execute(string.format('%s %s %s', pltopf, pl, jfm))
+ os.execute(string.format('%s %s %s', makejvf, jfm, pstfm))
+ end
+end
diff --git a/fonts/zhmetrics-uptex/source/upzhm-h.pl b/fonts/zhmetrics-uptex/source/upzhm-h.pl
new file mode 100644
index 0000000000..48f3f4f410
--- /dev/null
+++ b/fonts/zhmetrics-uptex/source/upzhm-h.pl
@@ -0,0 +1,135 @@
+(COMMENT Chinese Font Metrics for upTeX Horizontal Typesetting)
+(DIRECTION YOKO)
+(FAMILY UPZHM HANZI)
+(FACE F MRR)
+(CODINGSCHEME TEX KANJI TEXT)
+(DESIGNSIZE R 10.0)
+(COMMENT DESIGNSIZE IS IN POINTS)
+(COMMENT OTHER SIZES ARE MULTIPLES OF DESIGNSIZE)
+(CHECKSUM O 0)
+(FONTDIMEN
+ (SLANT R 0.0)
+ (SPACE R 0.0)
+ (STRETCH R 0.100000)
+ (SHRINK R 0.0)
+ (XHEIGHT R 1.000000)
+ (QUAD R 1.000000)
+ (EXTRASPACE R 0.250000)
+ (EXTRASTRETCH R 0.200000)
+ (EXTRASHRINK R 0.125000)
+ )
+(GLUEKERN
+ (LABEL O 0)
+ (GLUE O 1 R 0.500000 R 0.0 R 0.500000)
+ (GLUE O 3 R 0.250000 R 0.0 R 0.250000)
+ (STOP)
+ (LABEL O 1)
+ (GLUE O 3 R 0.250000 R 0.0 R 0.250000)
+ (STOP)
+ (LABEL O 2)
+ (GLUE O 0 R 0.500000 R 0.0 R 0.500000)
+ (GLUE O 1 R 0.500000 R 0.0 R 0.500000)
+ (GLUE O 3 R 0.250000 R 0.0 R 0.250000)
+ (GLUE O 5 R 0.500000 R 0.0 R 0.500000)
+ (STOP)
+ (LABEL O 3)
+ (GLUE O 0 R 0.250000 R 0.0 R 0.250000)
+ (GLUE O 1 R 0.250000 R 0.0 R 0.250000)
+ (GLUE O 2 R 0.250000 R 0.0 R 0.250000)
+ (GLUE O 3 R 0.500000 R 0.0 R 0.250000)
+ (GLUE O 4 R 0.250000 R 0.0 R 0.250000)
+ (GLUE O 5 R 0.250000 R 0.0 R 0.250000)
+ (STOP)
+ (LABEL O 4)
+ (GLUE O 0 R 0.500000 R 0.0 R 0.0)
+ (GLUE O 1 R 0.500000 R 0.0 R 0.0)
+ (GLUE O 3 R 0.750000 R 0.0 R 0.250000)
+ (GLUE O 5 R 0.500000 R 0.0 R 0.0)
+ (STOP)
+ (LABEL O 5)
+ (GLUE O 1 R 0.500000 R 0.0 R 0.500000)
+ (GLUE O 3 R 0.250000 R 0.0 R 0.250000)
+ (KRN O 5 R 0.0)
+ (STOP)
+ )
+(CHARSINTYPE O 1
+ ‘ “ ( 〔 [ { 〈 《 「 『
+ 【
+ UFF5F U3018 U3016 U301D
+ )
+(CHARSINTYPE O 2
+ 、 , ’ ” ) 〕 ] } 〉 》
+ 」 』 】
+ UFF60 U3019 U3017 U301F
+ )
+(CHARSINTYPE O 3
+ ・ : ;
+ )
+(CHARSINTYPE O 4
+ 。 .
+ )
+(CHARSINTYPE O 5
+ — ― … ‥
+ )
+(TYPE O 0
+ (CHARWD R 1.000000)
+ (CHARHT R 0.880000)
+ (CHARDP R 0.120000)
+ (COMMENT
+ (GLUE O 1 R 0.500000 R 0.0 R 0.500000)
+ (GLUE O 3 R 0.250000 R 0.0 R 0.250000)
+ )
+ )
+(TYPE O 1
+ (CHARWD R 0.500000)
+ (CHARHT R 0.880000)
+ (CHARDP R 0.120000)
+ (COMMENT
+ (GLUE O 3 R 0.250000 R 0.0 R 0.250000)
+ )
+ )
+(TYPE O 2
+ (CHARWD R 0.500000)
+ (CHARHT R 0.880000)
+ (CHARDP R 0.120000)
+ (COMMENT
+ (GLUE O 0 R 0.500000 R 0.0 R 0.500000)
+ (GLUE O 1 R 0.500000 R 0.0 R 0.500000)
+ (GLUE O 3 R 0.250000 R 0.0 R 0.250000)
+ (GLUE O 5 R 0.500000 R 0.0 R 0.500000)
+ )
+ )
+(TYPE O 3
+ (CHARWD R 0.500000)
+ (CHARHT R 0.880000)
+ (CHARDP R 0.120000)
+ (COMMENT
+ (GLUE O 0 R 0.250000 R 0.0 R 0.250000)
+ (GLUE O 1 R 0.250000 R 0.0 R 0.250000)
+ (GLUE O 2 R 0.250000 R 0.0 R 0.250000)
+ (GLUE O 3 R 0.500000 R 0.0 R 0.250000)
+ (GLUE O 4 R 0.250000 R 0.0 R 0.250000)
+ (GLUE O 5 R 0.250000 R 0.0 R 0.250000)
+ )
+ )
+(TYPE O 4
+ (CHARWD R 0.500000)
+ (CHARHT R 0.880000)
+ (CHARDP R 0.120000)
+ (COMMENT
+ (GLUE O 0 R 0.500000 R 0.0 R 0.0)
+ (GLUE O 1 R 0.500000 R 0.0 R 0.0)
+ (GLUE O 3 R 0.750000 R 0.0 R 0.250000)
+ (GLUE O 5 R 0.500000 R 0.0 R 0.0)
+ )
+ )
+(TYPE O 5
+ (CHARWD R 1.000000)
+ (CHARHT R 0.880000)
+ (CHARDP R 0.120000)
+ (COMMENT
+ (GLUE O 1 R 0.500000 R 0.0 R 0.500000)
+ (GLUE O 3 R 0.250000 R 0.0 R 0.250000)
+ (KRN O 5 R 0.0)
+ )
+ )
diff --git a/fonts/zhmetrics-uptex/source/upzhm-v.pl b/fonts/zhmetrics-uptex/source/upzhm-v.pl
new file mode 100644
index 0000000000..53d04f3a1d
--- /dev/null
+++ b/fonts/zhmetrics-uptex/source/upzhm-v.pl
@@ -0,0 +1,135 @@
+(COMMENT Chinese Font Metrics for upTeX Vertical Typesetting)
+(DIRECTION TATE)
+(FAMILY UPZHM HANZI)
+(FACE F MRR)
+(CODINGSCHEME TEX KANJI TEXT)
+(DESIGNSIZE R 10.0)
+(COMMENT DESIGNSIZE IS IN POINTS)
+(COMMENT OTHER SIZES ARE MULTIPLES OF DESIGNSIZE)
+(CHECKSUM O 0)
+(FONTDIMEN
+ (SLANT R 0.0)
+ (SPACE R 0.0)
+ (STRETCH R 0.100000)
+ (SHRINK R 0.0)
+ (XHEIGHT R 1.000000)
+ (QUAD R 1.000000)
+ (EXTRASPACE R 0.250000)
+ (EXTRASTRETCH R 0.200000)
+ (EXTRASHRINK R 0.125000)
+ )
+(GLUEKERN
+ (LABEL O 0)
+ (GLUE O 1 R 0.500000 R 0.0 R 0.500000)
+ (GLUE O 3 R 0.250000 R 0.0 R 0.250000)
+ (STOP)
+ (LABEL O 1)
+ (GLUE O 3 R 0.250000 R 0.0 R 0.250000)
+ (STOP)
+ (LABEL O 2)
+ (GLUE O 0 R 0.500000 R 0.0 R 0.500000)
+ (GLUE O 1 R 0.500000 R 0.0 R 0.500000)
+ (GLUE O 3 R 0.250000 R 0.0 R 0.250000)
+ (GLUE O 5 R 0.500000 R 0.0 R 0.500000)
+ (STOP)
+ (LABEL O 3)
+ (GLUE O 0 R 0.250000 R 0.0 R 0.250000)
+ (GLUE O 1 R 0.250000 R 0.0 R 0.250000)
+ (GLUE O 2 R 0.250000 R 0.0 R 0.250000)
+ (GLUE O 3 R 0.500000 R 0.0 R 0.250000)
+ (GLUE O 4 R 0.250000 R 0.0 R 0.250000)
+ (GLUE O 5 R 0.250000 R 0.0 R 0.250000)
+ (STOP)
+ (LABEL O 4)
+ (GLUE O 0 R 0.500000 R 0.0 R 0.0)
+ (GLUE O 1 R 0.500000 R 0.0 R 0.0)
+ (GLUE O 3 R 0.750000 R 0.0 R 0.250000)
+ (GLUE O 5 R 0.500000 R 0.0 R 0.0)
+ (STOP)
+ (LABEL O 5)
+ (GLUE O 1 R 0.500000 R 0.0 R 0.500000)
+ (GLUE O 3 R 0.250000 R 0.0 R 0.250000)
+ (KRN O 5 R 0.0)
+ (STOP)
+ )
+(CHARSINTYPE O 1
+ ‘ “ ( 〔 [ { 〈 《 「 『
+ 【
+ UFF5F U3018 U3016 U301D
+ )
+(CHARSINTYPE O 2
+ 、 , ’ ” ) 〕 ] } 〉 》
+ 」 』 】
+ UFF60 U3019 U3017 U301F
+ )
+(CHARSINTYPE O 3
+ ・ : ;
+ )
+(CHARSINTYPE O 4
+ 。 .
+ )
+(CHARSINTYPE O 5
+ — ― … ‥
+ )
+(TYPE O 0
+ (CHARWD R 1.000000)
+ (CHARHT R 0.500000)
+ (CHARDP R 0.500000)
+ (COMMENT
+ (GLUE O 1 R 0.500000 R 0.0 R 0.500000)
+ (GLUE O 3 R 0.250000 R 0.0 R 0.250000)
+ )
+ )
+(TYPE O 1
+ (CHARWD R 0.500000)
+ (CHARHT R 0.500000)
+ (CHARDP R 0.500000)
+ (COMMENT
+ (GLUE O 3 R 0.250000 R 0.0 R 0.250000)
+ )
+ )
+(TYPE O 2
+ (CHARWD R 0.500000)
+ (CHARHT R 0.500000)
+ (CHARDP R 0.500000)
+ (COMMENT
+ (GLUE O 0 R 0.500000 R 0.0 R 0.500000)
+ (GLUE O 1 R 0.500000 R 0.0 R 0.500000)
+ (GLUE O 3 R 0.250000 R 0.0 R 0.250000)
+ (GLUE O 5 R 0.500000 R 0.0 R 0.500000)
+ )
+ )
+(TYPE O 3
+ (CHARWD R 0.500000)
+ (CHARHT R 0.500000)
+ (CHARDP R 0.500000)
+ (COMMENT
+ (GLUE O 0 R 0.250000 R 0.0 R 0.250000)
+ (GLUE O 1 R 0.250000 R 0.0 R 0.250000)
+ (GLUE O 2 R 0.250000 R 0.0 R 0.250000)
+ (GLUE O 3 R 0.500000 R 0.0 R 0.250000)
+ (GLUE O 4 R 0.250000 R 0.0 R 0.250000)
+ (GLUE O 5 R 0.250000 R 0.0 R 0.250000)
+ )
+ )
+(TYPE O 4
+ (CHARWD R 0.500000)
+ (CHARHT R 0.500000)
+ (CHARDP R 0.500000)
+ (COMMENT
+ (GLUE O 0 R 0.500000 R 0.0 R 0.0)
+ (GLUE O 1 R 0.500000 R 0.0 R 0.0)
+ (GLUE O 3 R 0.750000 R 0.0 R 0.250000)
+ (GLUE O 5 R 0.500000 R 0.0 R 0.0)
+ )
+ )
+(TYPE O 5
+ (CHARWD R 1.000000)
+ (CHARHT R 0.500000)
+ (CHARDP R 0.500000)
+ (COMMENT
+ (GLUE O 1 R 0.500000 R 0.0 R 0.500000)
+ (GLUE O 3 R 0.250000 R 0.0 R 0.250000)
+ (KRN O 5 R 0.0)
+ )
+ )
diff --git a/fonts/zhmetrics-uptex/tex/upzhfandolfonts.tex b/fonts/zhmetrics-uptex/tex/upzhfandolfonts.tex
new file mode 100644
index 0000000000..107014aff6
--- /dev/null
+++ b/fonts/zhmetrics-uptex/tex/upzhfandolfonts.tex
@@ -0,0 +1,17 @@
+% Fandol font mapping for dvipdfmx
+
+\special{pdf:mapline upserif-h UniGB-UTF16-H FandolSong-Regular.otf}
+\special{pdf:mapline upserifit-h UniGB-UTF16-H FandolKai-Regular.otf}
+\special{pdf:mapline upserifb-h UniGB-UTF16-H FandolSong-Bold.otf}
+\special{pdf:mapline upsans-h UniGB-UTF16-H FandolHei-Regular.otf}
+\special{pdf:mapline upsansb-h UniGB-UTF16-H FandolHei-Bold.otf}
+\special{pdf:mapline upmono-h UniGB-UTF16-H FandolFang-Regular.otf}
+
+\special{pdf:mapline upserif-v UniGB-UTF16-V FandolSong-Regular.otf}
+\special{pdf:mapline upserifit-v UniGB-UTF16-V FandolKai-Regular.otf}
+\special{pdf:mapline upserifb-v UniGB-UTF16-V FandolSong-Bold.otf}
+\special{pdf:mapline upsans-v UniGB-UTF16-V FandolHei-Regular.otf}
+\special{pdf:mapline upsansb-v UniGB-UTF16-V FandolHei-Bold.otf}
+\special{pdf:mapline upmono-v UniGB-UTF16-V FandolFang-Regular.otf}
+
+\endinput
diff --git a/fonts/zhmetrics-uptex/tfm/upmono-h.tfm b/fonts/zhmetrics-uptex/tfm/upmono-h.tfm
new file mode 100644
index 0000000000..8dbf787b3e
--- /dev/null
+++ b/fonts/zhmetrics-uptex/tfm/upmono-h.tfm
Binary files differ
diff --git a/fonts/zhmetrics-uptex/tfm/upmono-v.tfm b/fonts/zhmetrics-uptex/tfm/upmono-v.tfm
new file mode 100644
index 0000000000..dddd977640
--- /dev/null
+++ b/fonts/zhmetrics-uptex/tfm/upmono-v.tfm
Binary files differ
diff --git a/fonts/zhmetrics-uptex/tfm/upsans-h.tfm b/fonts/zhmetrics-uptex/tfm/upsans-h.tfm
new file mode 100644
index 0000000000..8dbf787b3e
--- /dev/null
+++ b/fonts/zhmetrics-uptex/tfm/upsans-h.tfm
Binary files differ
diff --git a/fonts/zhmetrics-uptex/tfm/upsans-v.tfm b/fonts/zhmetrics-uptex/tfm/upsans-v.tfm
new file mode 100644
index 0000000000..dddd977640
--- /dev/null
+++ b/fonts/zhmetrics-uptex/tfm/upsans-v.tfm
Binary files differ
diff --git a/fonts/zhmetrics-uptex/tfm/upsansb-h.tfm b/fonts/zhmetrics-uptex/tfm/upsansb-h.tfm
new file mode 100644
index 0000000000..8dbf787b3e
--- /dev/null
+++ b/fonts/zhmetrics-uptex/tfm/upsansb-h.tfm
Binary files differ
diff --git a/fonts/zhmetrics-uptex/tfm/upsansb-v.tfm b/fonts/zhmetrics-uptex/tfm/upsansb-v.tfm
new file mode 100644
index 0000000000..dddd977640
--- /dev/null
+++ b/fonts/zhmetrics-uptex/tfm/upsansb-v.tfm
Binary files differ
diff --git a/fonts/zhmetrics-uptex/tfm/upserif-h.tfm b/fonts/zhmetrics-uptex/tfm/upserif-h.tfm
new file mode 100644
index 0000000000..8dbf787b3e
--- /dev/null
+++ b/fonts/zhmetrics-uptex/tfm/upserif-h.tfm
Binary files differ
diff --git a/fonts/zhmetrics-uptex/tfm/upserif-v.tfm b/fonts/zhmetrics-uptex/tfm/upserif-v.tfm
new file mode 100644
index 0000000000..dddd977640
--- /dev/null
+++ b/fonts/zhmetrics-uptex/tfm/upserif-v.tfm
Binary files differ
diff --git a/fonts/zhmetrics-uptex/tfm/upserifb-h.tfm b/fonts/zhmetrics-uptex/tfm/upserifb-h.tfm
new file mode 100644
index 0000000000..8dbf787b3e
--- /dev/null
+++ b/fonts/zhmetrics-uptex/tfm/upserifb-h.tfm
Binary files differ
diff --git a/fonts/zhmetrics-uptex/tfm/upserifb-v.tfm b/fonts/zhmetrics-uptex/tfm/upserifb-v.tfm
new file mode 100644
index 0000000000..dddd977640
--- /dev/null
+++ b/fonts/zhmetrics-uptex/tfm/upserifb-v.tfm
Binary files differ
diff --git a/fonts/zhmetrics-uptex/tfm/upserifit-h.tfm b/fonts/zhmetrics-uptex/tfm/upserifit-h.tfm
new file mode 100644
index 0000000000..8dbf787b3e
--- /dev/null
+++ b/fonts/zhmetrics-uptex/tfm/upserifit-h.tfm
Binary files differ
diff --git a/fonts/zhmetrics-uptex/tfm/upserifit-v.tfm b/fonts/zhmetrics-uptex/tfm/upserifit-v.tfm
new file mode 100644
index 0000000000..dddd977640
--- /dev/null
+++ b/fonts/zhmetrics-uptex/tfm/upserifit-v.tfm
Binary files differ
diff --git a/fonts/zhmetrics-uptex/tfm/upzhmono-h.tfm b/fonts/zhmetrics-uptex/tfm/upzhmono-h.tfm
new file mode 100644
index 0000000000..012a6d7958
--- /dev/null
+++ b/fonts/zhmetrics-uptex/tfm/upzhmono-h.tfm
Binary files differ
diff --git a/fonts/zhmetrics-uptex/tfm/upzhmono-v.tfm b/fonts/zhmetrics-uptex/tfm/upzhmono-v.tfm
new file mode 100644
index 0000000000..382995477f
--- /dev/null
+++ b/fonts/zhmetrics-uptex/tfm/upzhmono-v.tfm
Binary files differ
diff --git a/fonts/zhmetrics-uptex/tfm/upzhsans-h.tfm b/fonts/zhmetrics-uptex/tfm/upzhsans-h.tfm
new file mode 100644
index 0000000000..012a6d7958
--- /dev/null
+++ b/fonts/zhmetrics-uptex/tfm/upzhsans-h.tfm
Binary files differ
diff --git a/fonts/zhmetrics-uptex/tfm/upzhsans-v.tfm b/fonts/zhmetrics-uptex/tfm/upzhsans-v.tfm
new file mode 100644
index 0000000000..382995477f
--- /dev/null
+++ b/fonts/zhmetrics-uptex/tfm/upzhsans-v.tfm
Binary files differ
diff --git a/fonts/zhmetrics-uptex/tfm/upzhsansb-h.tfm b/fonts/zhmetrics-uptex/tfm/upzhsansb-h.tfm
new file mode 100644
index 0000000000..012a6d7958
--- /dev/null
+++ b/fonts/zhmetrics-uptex/tfm/upzhsansb-h.tfm
Binary files differ
diff --git a/fonts/zhmetrics-uptex/tfm/upzhsansb-v.tfm b/fonts/zhmetrics-uptex/tfm/upzhsansb-v.tfm
new file mode 100644
index 0000000000..382995477f
--- /dev/null
+++ b/fonts/zhmetrics-uptex/tfm/upzhsansb-v.tfm
Binary files differ
diff --git a/fonts/zhmetrics-uptex/tfm/upzhserif-h.tfm b/fonts/zhmetrics-uptex/tfm/upzhserif-h.tfm
new file mode 100644
index 0000000000..012a6d7958
--- /dev/null
+++ b/fonts/zhmetrics-uptex/tfm/upzhserif-h.tfm
Binary files differ
diff --git a/fonts/zhmetrics-uptex/tfm/upzhserif-v.tfm b/fonts/zhmetrics-uptex/tfm/upzhserif-v.tfm
new file mode 100644
index 0000000000..382995477f
--- /dev/null
+++ b/fonts/zhmetrics-uptex/tfm/upzhserif-v.tfm
Binary files differ
diff --git a/fonts/zhmetrics-uptex/tfm/upzhserifb-h.tfm b/fonts/zhmetrics-uptex/tfm/upzhserifb-h.tfm
new file mode 100644
index 0000000000..012a6d7958
--- /dev/null
+++ b/fonts/zhmetrics-uptex/tfm/upzhserifb-h.tfm
Binary files differ
diff --git a/fonts/zhmetrics-uptex/tfm/upzhserifb-v.tfm b/fonts/zhmetrics-uptex/tfm/upzhserifb-v.tfm
new file mode 100644
index 0000000000..382995477f
--- /dev/null
+++ b/fonts/zhmetrics-uptex/tfm/upzhserifb-v.tfm
Binary files differ
diff --git a/fonts/zhmetrics-uptex/tfm/upzhserifit-h.tfm b/fonts/zhmetrics-uptex/tfm/upzhserifit-h.tfm
new file mode 100644
index 0000000000..012a6d7958
--- /dev/null
+++ b/fonts/zhmetrics-uptex/tfm/upzhserifit-h.tfm
Binary files differ
diff --git a/fonts/zhmetrics-uptex/tfm/upzhserifit-v.tfm b/fonts/zhmetrics-uptex/tfm/upzhserifit-v.tfm
new file mode 100644
index 0000000000..382995477f
--- /dev/null
+++ b/fonts/zhmetrics-uptex/tfm/upzhserifit-v.tfm
Binary files differ
diff --git a/fonts/zhmetrics-uptex/vf/upzhmono-h.vf b/fonts/zhmetrics-uptex/vf/upzhmono-h.vf
new file mode 100644
index 0000000000..5d8b02dc78
--- /dev/null
+++ b/fonts/zhmetrics-uptex/vf/upzhmono-h.vf
Binary files differ
diff --git a/fonts/zhmetrics-uptex/vf/upzhmono-v.vf b/fonts/zhmetrics-uptex/vf/upzhmono-v.vf
new file mode 100644
index 0000000000..8b10ee6793
--- /dev/null
+++ b/fonts/zhmetrics-uptex/vf/upzhmono-v.vf
Binary files differ
diff --git a/fonts/zhmetrics-uptex/vf/upzhsans-h.vf b/fonts/zhmetrics-uptex/vf/upzhsans-h.vf
new file mode 100644
index 0000000000..35643f7a7d
--- /dev/null
+++ b/fonts/zhmetrics-uptex/vf/upzhsans-h.vf
Binary files differ
diff --git a/fonts/zhmetrics-uptex/vf/upzhsans-v.vf b/fonts/zhmetrics-uptex/vf/upzhsans-v.vf
new file mode 100644
index 0000000000..4d1a8c23b6
--- /dev/null
+++ b/fonts/zhmetrics-uptex/vf/upzhsans-v.vf
Binary files differ
diff --git a/fonts/zhmetrics-uptex/vf/upzhsansb-h.vf b/fonts/zhmetrics-uptex/vf/upzhsansb-h.vf
new file mode 100644
index 0000000000..4caf36e106
--- /dev/null
+++ b/fonts/zhmetrics-uptex/vf/upzhsansb-h.vf
Binary files differ
diff --git a/fonts/zhmetrics-uptex/vf/upzhsansb-v.vf b/fonts/zhmetrics-uptex/vf/upzhsansb-v.vf
new file mode 100644
index 0000000000..d0b8151773
--- /dev/null
+++ b/fonts/zhmetrics-uptex/vf/upzhsansb-v.vf
Binary files differ
diff --git a/fonts/zhmetrics-uptex/vf/upzhserif-h.vf b/fonts/zhmetrics-uptex/vf/upzhserif-h.vf
new file mode 100644
index 0000000000..c03828d2b6
--- /dev/null
+++ b/fonts/zhmetrics-uptex/vf/upzhserif-h.vf
Binary files differ
diff --git a/fonts/zhmetrics-uptex/vf/upzhserif-v.vf b/fonts/zhmetrics-uptex/vf/upzhserif-v.vf
new file mode 100644
index 0000000000..eca41e1ff6
--- /dev/null
+++ b/fonts/zhmetrics-uptex/vf/upzhserif-v.vf
Binary files differ
diff --git a/fonts/zhmetrics-uptex/vf/upzhserifb-h.vf b/fonts/zhmetrics-uptex/vf/upzhserifb-h.vf
new file mode 100644
index 0000000000..27186bcabf
--- /dev/null
+++ b/fonts/zhmetrics-uptex/vf/upzhserifb-h.vf
Binary files differ
diff --git a/fonts/zhmetrics-uptex/vf/upzhserifb-v.vf b/fonts/zhmetrics-uptex/vf/upzhserifb-v.vf
new file mode 100644
index 0000000000..16cfc14ae2
--- /dev/null
+++ b/fonts/zhmetrics-uptex/vf/upzhserifb-v.vf
Binary files differ
diff --git a/fonts/zhmetrics-uptex/vf/upzhserifit-h.vf b/fonts/zhmetrics-uptex/vf/upzhserifit-h.vf
new file mode 100644
index 0000000000..3f04602829
--- /dev/null
+++ b/fonts/zhmetrics-uptex/vf/upzhserifit-h.vf
Binary files differ
diff --git a/fonts/zhmetrics-uptex/vf/upzhserifit-v.vf b/fonts/zhmetrics-uptex/vf/upzhserifit-v.vf
new file mode 100644
index 0000000000..8d212be38e
--- /dev/null
+++ b/fonts/zhmetrics-uptex/vf/upzhserifit-v.vf
Binary files differ