Re: ヒラギノ全書体を登録するには?

名前: なかやま
日時: 2008-01-09 21:38:48
IPアドレス: 125.1.242.*

>>50572 自己レスします。 とりあえず PDF、ヒラギノ全書体が表示できるようになりました。 苦労しました。。^^ どこまで、正しいか判定ください。 すべての設定ファイルは、この投稿の下部にまとめました。 1)cid-x.map を(config-2)ように書き換える。 2)続いて、OpenType フォントを、すべて $TEXMF\fonts\opentype\hiragino に入れる。 3)$TEXMF\fonts\tfm\ptex\otf にはいっている   hirakaku-w3-h.tfm をコピーして、 hgo1-h, hgo2-h, hgo3-h, hgo4-h, hgo5-h, hgo6-h, hgo7-h, hgo8-h.tfm をつくる。   さらに   hiramin-w3-h.tfm hmin2-h, hmin3-h, hmin4-h, hmin5-h, hmin6-h, hmin7-h, hmin8-h.tfm をつくる。 あと、よくわからないけど、-v の方も、縦書きフォントだろうから、これもコピーして作っておく。   これをすべて、$TEXMF\fonts\tfm\ptex\otf に入れる。   、、よくわからなかったので、   これをすべて、$TEXMFLOCAL\fonts\tfm\ptex にも入れる。 4)TeX のソースコードを用意する、、、   よく理解していないが、、(これから学習するつもりだが、、)   \DeclareKanjiFamily{JY1}{hgo1}{} \DeclareFontShape{JY1}{hgo1}{m}{n}{<->s * [0.961026]hgo1-h}{}   というような命令で、フォントを定義する。   これを繰り返し、(config-1) のようなファイルを用意する。 5)あとは、コマンドを打つ   platex test.tex dvipdfmx test.dvi start test.pdf 全書体が、表示される。。 (config-1)【設定ファイル: test.tex 】 \documentclass{jsarticle} \DeclareKanjiFamily{JY1}{hgo1}{} \DeclareFontShape{JY1}{hgo1}{m}{n}{<->s * [0.961026]hgo1-h}{} \DeclareKanjiFamily{JY1}{hgo2}{} \DeclareFontShape{JY1}{hgo2}{m}{n}{<->s * [0.961026]hgo2-h}{} \DeclareKanjiFamily{JY1}{hgo3}{} \DeclareFontShape{JY1}{hgo3}{m}{n}{<->s * [0.961026]hgo3-h}{} \DeclareKanjiFamily{JY1}{hgo4}{} \DeclareFontShape{JY1}{hgo4}{m}{n}{<->s * [0.961026]hgo4-h}{} \DeclareKanjiFamily{JY1}{hgo5}{} \DeclareFontShape{JY1}{hgo5}{m}{n}{<->s * [0.961026]hgo5-h}{} \DeclareKanjiFamily{JY1}{hgo6}{} \DeclareFontShape{JY1}{hgo6}{m}{n}{<->s * [0.961026]hgo6-h}{} \DeclareKanjiFamily{JY1}{hgo7}{} \DeclareFontShape{JY1}{hgo7}{m}{n}{<->s * [0.961026]hgo7-h}{} \DeclareKanjiFamily{JY1}{hgo8}{} \DeclareFontShape{JY1}{hgo8}{m}{n}{<->s * [0.961026]hgo8-h}{} \DeclareKanjiFamily{JY1}{hgo9}{} \DeclareFontShape{JY1}{hgo9}{m}{n}{<->s * [0.961026]hgo9-h}{} \DeclareKanjiFamily{JY1}{hmin2}{} \DeclareFontShape{JY1}{hmin2}{m}{n}{<->s * [0.961026]hmin2-h}{} \DeclareKanjiFamily{JY1}{hmin3}{} \DeclareFontShape{JY1}{hmin3}{m}{n}{<->s * [0.961026]hmin3-h}{} \DeclareKanjiFamily{JY1}{hmin4}{} \DeclareFontShape{JY1}{hmin4}{m}{n}{<->s * [0.961026]hmin4-h}{} \DeclareKanjiFamily{JY1}{hmin5}{} \DeclareFontShape{JY1}{hmin5}{m}{n}{<->s * [0.961026]hmin5-h}{} \DeclareKanjiFamily{JY1}{hmin6}{} \DeclareFontShape{JY1}{hmin6}{m}{n}{<->s * [0.961026]hmin6-h}{} \DeclareKanjiFamily{JY1}{hmin7}{} \DeclareFontShape{JY1}{hmin7}{m}{n}{<->s * [0.961026]hmin7-h}{} \DeclareKanjiFamily{JY1}{hmin8}{} \DeclareFontShape{JY1}{hmin8}{m}{n}{<->s * [0.961026]hmin8-h}{} \begin{document} {こんにちは、風林火山、1234、ABCDEF, 1234、ABCD}\newline { \kanjifamily{hgo1}\selectfont こんにちは、風林火山、1234、ABCDEF, 1234、ABCD}\newline { \kanjifamily{hgo2}\selectfont こんにちは、風林火山、1234、ABCDEF, 1234、ABCD}\newline { \kanjifamily{hgo3}\selectfont こんにちは、風林火山、1234、ABCDEF, 1234、ABCD}\newline { \kanjifamily{hgo4}\selectfont こんにちは、風林火山、1234、ABCDEF, 1234、ABCD}\newline { \kanjifamily{hgo5}\selectfont こんにちは、風林火山、1234、ABCDEF, 1234、ABCD}\newline { \kanjifamily{hgo6}\selectfont こんにちは、風林火山、1234、ABCDEF, 1234、ABCD}\newline { \kanjifamily{hgo7}\selectfont こんにちは、風林火山、1234、ABCDEF, 1234、ABCD}\newline { \kanjifamily{hgo8}\selectfont こんにちは、風林火山、1234、ABCDEF, 1234、ABCD}\newline { \kanjifamily{hgo9}\selectfont こんにちは、風林火山、1234、ABCDEF, 1234、ABCD}\newline { \kanjifamily{hmin2}\selectfont こんにちは、風林火山、1234、ABCDEF, 1234、ABCD}\newline { \kanjifamily{hmin3}\selectfont こんにちは、風林火山、1234、ABCDEF, 1234、ABCD}\newline { \kanjifamily{hmin4}\selectfont こんにちは、風林火山、1234、ABCDEF, 1234、ABCD}\newline { \kanjifamily{hmin5}\selectfont こんにちは、風林火山、1234、ABCDEF, 1234、ABCD}\newline { \kanjifamily{hmin6}\selectfont こんにちは、風林火山、1234、ABCDEF, 1234、ABCD}\newline { \kanjifamily{hmin7}\selectfont こんにちは、風林火山、1234、ABCDEF, 1234、ABCD}\newline { \kanjifamily{hmin8}\selectfont こんにちは、風林火山、1234、ABCDEF, 1234、ABCD}\newline \end{document} (config-2)【設定ファイル: cid-x.map 】 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% rml H hira-min2t.otf rmlv V hira-min2t.otf %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% gbm H hira-go4t.otf gbmv V hira-go4t.otf %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% otf-ujmr-h UniJIS-UTF16-H hira-min2t.otf otf-ujmr-v UniJIS-UTF16-V hira-min2t.otf otf-cjmr-h Identity-H hira-min2t.otf otf-cjmr-v Identity-V hira-min2t.otf hminr-h H hira-min2t.otf hminr-v V hira-min2t.otf %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% otf-ujgr-h UniJIS-UTF16-H hira-go4t.otf otf-ujgr-v UniJIS-UTF16-V hira-go4t.otf otf-cjgr-h Identity-H hira-go4t.otf otf-cjgr-v Identity-V hira-go4t.otf hgothr-h H hira-go4t.otf hgothr-v V hira-go4t.otf %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% otf-ujmb-h UniJIS-UTF16-H hira-min6t.otf otf-ujmb-v UniJIS-UTF16-V hira-min6t.otf otf-cjmb-h Identity-H hira-min6t.otf otf-cjmb-v Identity-V hira-min6t.otf hminb-h H hira-min6t.otf hminb-v V hira-min6t.otf %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% otf-ujgb-h UniJIS-UTF16-H hira-go6t.otf otf-ujgb-v UniJIS-UTF16-V hira-go6t.otf otf-cjgb-h Identity-H hira-go6t.otf otf-cjgb-v Identity-V hira-go6t.otf hgothb-h H hira-go6t.otf hgothb-v V hira-go6t.otf %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% hgotheb-h H hira-go8t.otf hgotheb-v V hira-go8t.otf %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% otf-ujmgr-h UniJIS-UTF16-H hira-go5t.otf otf-ujmgr-v UniJIS-UTF16-V hira-go5t.otf otf-cjmgr-h Identity-H hira-go5t.otf otf-cjmgr-v Identity-V hira-go5t.otf hmgothr-h H hira-go5t.otf hmgothr-v V hira-go5t.otf %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% otf-ujml-h UniJIS-UTF16-H hira-min2t.otf otf-ujml-v UniJIS-UTF16-V hira-min2t.otf otf-cjml-h Identity-H hira-min2t.otf otf-cjml-v Identity-V hira-min2t.otf hminl-h H hira-min2t.otf hminl-v V hira-min2t.otf %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% hgyo4-h Identity-H hira-gyo4t.otf hgyo8-h Identity-H hira-gyo8t.otf %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% hgyo4-v Identity-V hira-gyo4t.otf hgyo8-v Identity-V hira-gyo8t.otf %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% hgo1-h H hira-go1t.otf hgo2-h H hira-go2t.otf hgo3-h H hira-go3t.otf hgo4-h H hira-go4t.otf hgo5-h H hira-go5t.otf hgo6-h H hira-go6t.otf hgo7-h H hira-go7t.otf hgo8-h H hira-go8t.otf hgo9-h H hira-go9t.otf %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% hgo1-v V hira-go1t.otf hgo2-v V hira-go2t.otf hgo3-v V hira-go3t.otf hgo4-v V hira-go4t.otf hgo5-v V hira-go5t.otf hgo6-v V hira-go6t.otf hgo7-v V hira-go7t.otf hgo8-v V hira-go8t.otf hgo9-v V hira-go9t.otf %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% hmin2-h H hira-min2t.otf hmin3-h H hira-min3t.otf hmin4-h H hira-min4t.otf hmin5-h H hira-min5t.otf hmin6-h H hira-min6t.otf hmin7-h H hira-min7t.otf hmin8-h H hira-min8t.otf %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% hmin2-v V hira-min2t.otf hmin3-v V hira-min3t.otf hmin4-v V hira-min4t.otf hmin5-v V hira-min5t.otf hmin6-v V hira-min6t.otf hmin7-v V hira-min7t.otf hmin8-v V hira-min8t.otf

この書き込みへの返事:

お名前
題名 
メッセージ(タグは <a href="...">...</a> だけ使えます。適宜改行を入れてください)