GitHub - zr-tex8r/PXufont: LaTeX: to make JIS/CID JFMs emulated by Unicode JFMs (on (u)pLaTeX) (original) (raw)

PXufont Package

LaTeX: To emulate non-Unicode Japanese fonts using Unicode fonts

The set of the Japanese logical fonts (JFMs) that are used as standard fonts in pTeX and upTeX contains both Unicode JFMs and non-Unicode JFMs. This bundle provides an alternative set of non-Unicode JFMs that are tied to the virtual fonts (VFs) that refer to the glyphs in the Unicode JFMs. Moreover it provides a LaTeX package that redefines the NFSS settings of the Japanese fonts of (u)pLaTeX so that the new set of non-Unicode JFMs will be employed. As a whole, this bundle allows users to dispense with the mapping setup on non-Unicode JFMs.

Such setup is useful in particular when users want to use such OpenType fonts (such as Source Han Serif) that have a glyph encoding different from Adobe-Japan1, because mapping setup from non-Unicode JFMs to such physical fonts are difficult to prepare.

System requirement

Installation

License

This package is distributed under the MIT License.

The pxufont Package

Package Loading

There are no package options available. Once the package is loaded, the NFSS settings for the standard Japanese fonts will be redeclared.

Note: When you use both this package and the japanese-otf package, then you must load japanese-otf earlier.

Usage

For present, this package has no public commands. All the settings are done through the package option.

The pxufont-ruby Package

This package is an alternative to the pxufont package. The difference between the two is the way the “ruby notation fonts” of the japanese-otf package are handled; pxufont disables the ruby fonts and substitutes then with ordinary fonts, whereas pxufont-ruby supports also the ruby fonts. This feature however requires extra settings of font mapping.

Package Loading

\usepackage{pxufont-ruby}

Note that pxufont and pxufont-ruby are mutually exclusive; when both packages are loaded, then the one loaded earlier will be effective.

NB. Developers can test whether pxufont-ruby is effective by testing whether \pxufontUseRubyFont is defined.

Revision History


Takayuki YATO (aka. "ZR")
https://github.com/zr-tex8r