Forums: 公開討議/質問 (Thread #34033)

埋め込みフォントで「トレードマーク」が表示されない? (2013-05-20 16:50 by tek-nishi #68823)

初めまして。

OSXにて、Emacs→org-mode→PDFという書き出しの用途でLuaTeX-jaを使い始めた西山ともうします。
ですので、もし見当違いな質問でしたら申し訳ありません。

PDFにフォントを埋め込まない初期状態で lualatex test1.tex を実行して生成されたPDFファイルでは、「トレードマーク」が正しく表示されるのですが、
和文フォントを埋め込む設定で lualatex test1.tex を実行して生成されたPDFファイルでは、「トレードマーク」が表示されない
という現象に悩んでおります。

LuaTeXは、MacPortsの「TexLive2012」に含まれたものを使っております。

https://www.dropbox.com/s/i03cqs1645sgo2z/test.zip
texファイルと、変換結果はこちらに置いておきました。

何か、必要な設定があるのでしょうか?
もしお気づきの点がございましたら、お教えください。

Reply to #68823×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: 埋め込みフォントで「トレードマーク」が表示されない? (2013-05-20 17:40 by kmaeda #68825)

単純に IPAexMincho がトレードマーク (U+2122) のグリフを持っていないことが原因です.
埋め込んでいないときはヒラギノで代替されるために表示されるのではないでしょうか.
埋め込むフォントをヒラギノにするとどうでしょうか?
Reply to #68823

Reply to #68825×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: 埋め込みフォントで「トレードマーク」が表示されない? (2013-05-20 18:18 by tek-nishi #68826)

さっそくのご回答まことにありがとうございます。
なんと、グリフを持っていないのが原因だったのですね!

私はOSXのシステムフォントのヒラギノをPDFに埋め込む方法がわからないため、検証する事ができません。
参考にするサイトなど、ございますでしょうか?

お手数をおかけして申し訳ありません。
Reply to #68825

Reply to #68826×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: 埋め込みフォントで「トレードマーク」が表示されない? (2013-05-20 18:25 by kmaeda #68827)

使い方のページ
http://sourceforge.jp/projects/luatex-ja/wiki/LuaTeX-ja%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9
にも書いてありますが,プリアンブルに

\usepackage[hiragino]{luatexja-preset}

と書くといかがでしょうか?
(私の環境にはヒラギノがないので検証できません.)
Reply to #68826

Reply to #68827×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: 埋め込みフォントで「トレードマーク」が表示されない? (2013-05-20 19:27 by tek-nishi #68834)

情報ありがとうございます。

さっそく試してみましたが、MacPortsのTexLive2012にはluatexja-presetが同梱されておりませんでした。
※探してみたのですが TexLive2013を見つけられませんでした。

試しに「\setmainjfont{HiraKakuPro-W3}」などと指定してみると、こんどは一切日本語が表示されない状態になってしまいました。
Reply to #68827

Reply to #68834×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: 埋め込みフォントで「トレードマーク」が表示されない? (2013-05-20 19:40 by kmaeda #68835)

> MacPortsのTexLive2012にはluatexja-presetが同梱されておりませんでした。
確かに2012だとアップデートが必要だったかもしれないです.

> 試しに「\setmainjfont{HiraKakuPro-W3}」などと指定してみると、こんどは一切日本語が表示されない状態になってしまいました。
\setmainjfont{Hiragino Mincho Pro W3} や \setmainjfont{HiraMinPro-W3.otf} だとどうなるでしょうか?
それでもだめな場合,結果の PDF とログ (test2.log) をアップロードすることはできますでしょうか?
Reply to #68834

Reply to #68835×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login