# man > makejvf(1)

[_MAKEJVF_(1)](https://www.chedong.com/phpMan.php/man/MAKEJVF/1/markdown)                             General Commands Manual                            [_MAKEJVF_(1)](https://www.chedong.com/phpMan.php/man/MAKEJVF/1/markdown)

## NAME
       makejvf - Make Japanese VF file from Japanese TeX TFM file

## SYNOPSIS
       **makejvf **[<_options_>] <_TeX_ _TFM_ _file_> <_PS_ _font_ _TFM_>

## DESCRIPTION
       **makejvf  **is a tool to generate Japanese VF file from Japanese TeX TFM (JFM) file for use with
       dvips.

       When processing Japanese texts, pTeX refers to JFM (min10.tfm, jis.tfm etc.), which includes
       definitions of some different character widths and metric glue/kerns. For most punctuations
       and quotation marks, the character widths are truncated to less than 1 zw (zenkaku-width; the
       width of ordinary Kanji characters), and metric glue/kerns are inserted as a substitute.

       On the other hand, in Japanese PS fonts, all punctuations and quotation marks have the same
       character widths as ordinary Kanji characters. For this reason, when dvips processes the re‐
       sulting DVI, these characters have to be shifted to the left by the amount of glue/kerns in‐
       serted.

       To achieve this, Virtual fonts (VF) and PS TFM files are required; When VF contains the com‐
       mands of shifting characters, PS font TFM can have the exact character widths of PS fonts.

       The program **makejvf **can be used for this purpose. It inputs a pTeX JFM file (referred to as
       <_TeX_ _TFM_ _file_> in **SYNOPSIS **above), and outputs a corresponding VF file (with the same base‐
       name as <_TeX_ _TFM_ _file_>) and a JFM file for a PS font JFM file (<_PS_ _font_ _TFM_> above).

## OPTIONS
### -C        

### -K 
                 Map Kana (more exactly, non-Kanji) characters to another PS  font  JFM  named  <_PS-_
                 _TFM_>.

### -b 
                 Base  line shift amount; the _integer_ represents a relative value, using the charac‐
                 ter height as a base of 1000.  When a positive integer is specified, the characters
                 are lowered.  When a negative integer is specified, the characters are raised.

### -m        
                 marks (so-called "minute") in vertical writing.  The replacement is realized by ma‐
                 nipulating  glyphs of prime and double prime (JIS 0x216C and 0x216D; Unicode U+2032
                 and U+2033), _not_ by putting actual glyphs designed  for  quotation  marks  (Unicode
                 U+301D and U+301E/U+301F).

### -a 
                 Name of the input AFM file used for Kana-tsume mode.  This option is unsupported.

### -k 
                 Kana-tsume  (narrower  spaces  between  Kana characters) margin amount; the _integer_
                 represents a relative value, using the character width as a base of 1000. This  op‐
                 tion should be accompanied with **-a **option.  This option is unsupported.

### -i        
                 1).

### -e        
                 of input JFM file.

       By default, **makejvf **uses the hard-coded value as the horizontal shift amount, which is
       (mostly) optimized for Japanese fonts. When enhanced mode (option **-e**) is enabled, the shift
       amount is determined from the input pTeX TFM (JFM) file, which is likely to output most suit‐
       able VF for the JFM.

       For most standard Japanese JFM (like jis.tfm and its derivatives), the output VFs from both
       modes will have no significant difference. For simplified/traditional Chinese JFM (like up‐
       schrm-h.tfm and uptchrm-h.tfm), the output VF from enhanced mode will be better. For
       min10.tfm and its derivatives, enhanced mode should _never_ be enabled, since the characteriza‐
       tion in min10.tfm is non-standard.

### -t 
                 Use <_CNFfile_> as a configuration file.

### -O        
                 to be used with the option **-t**.

### -u 
                 UCS mode. Available charsets are: gb (GB = Simplified Chinese), cns (CNS  =  Tradi‐
                 tional  Chinese),  ks  (KS  = Korean), jis (JIS = Japanese), jisq (JIS quote only),
                 custom (user-defined CHARSET from <CNFfile>; see  **CONFIGURATION  FILE  FORMAT  **sec‐
                 tion).

       Options below are effective only in UCS mode:

### -J 
                 Map single/double quote to another JIS-encoded PSfont TFM.

### -U 
                 Map single/double quote to another UCS-encoded PSfont TFM.

### -3        
                 **makejvf **does not output >=U+10000, to reduce file size and to avoid  problems  with
                 old  DVI  drivers.  Recent  versions  of  dvipdfmx  and  others  can handle VF with
                 >=U+10000 (= set3 in DVI language), therefore **-3 **might be helpful.

### -H        

## EXAMPLE
       If you want to use min10 as Ryumin-Light-H, run
                 makejvf min10.tfm rml

       This generates min10.vf and rml.tfm. Put these files in an appropriate directory under TEXMF
       tree, and add the following line to psfonts.map.
                 rml Ryumin-Light-H

## CONFIGURATION FILE FORMAT
       With **-t **option, you can give **makejvf **a custom settings for generating VF. The syntax is:

                 % comment line
                 MOVE <code>    <right>   <down>

                 REPLACE   <code>    <new code>
                 CHARSET   <code>,<code>,<code>..<code>,<code>,
                 +    <code>,<code>..<code>


       Each line should begin with a command, and should be TAB-separated. Line starting with % is a
       comment, and empty lines are ignored.

       The **MOVE **command specifies horizontal/vertical shift amount for the individual character
       <_code_>. The **REPLACE **command replaces the character <_code_> with <_new_ _code_>. The **CHARSET **com‐
       mand sets the custom character set of output VF; the + character continues from the previous
       line.

       An example usage can be found in uptex-fonts project. See GitHub repository
                 <<https://github.com/texjporg/uptex-fonts>>.

## SEE ALSO
       More detailed description of **makejvf **in Japanese is available at
            $TEXMFDIST/doc/fonts/ptex-fonts/README_makejvf

## AUTHOR
       This manual page was written by Japanese TeX Development Community  <<https://texjp.org>>.  For
       more information, see GitHub repository <<https://github.com/texjporg/ptex-fonts>>.

       Many thanks to Atsuhito KOHDA <<kohda@debian.org>>, for providing another manpage in Debian
       GNU/Linux system.

                                                                                          [_MAKEJVF_(1)](https://www.chedong.com/phpMan.php/man/MAKEJVF/1/markdown)
