[poppler] About the problem of fonts
suzuki toshiya
mpsuzuki at hiroshima-u.ac.jp
Wed Jan 15 07:01:32 PST 2014
Dear Adrian,
Oh, I slipped to remember about the font substitution control.
Thank you very much for helpful followup!
Regards,
mpsuzuki
On 01/15/2014 10:22 PM, Adrian Perez de Castro wrote:
> suzuki toshiya <mpsuzuki at hiroshima-u.ac.jp> writes:
>
>> 2) Installing some fonts with MS Gothic or MS Mincho compatible
>> metrics, like, Mona fonts.
>>
>> # But I don't know the alphabet metrics are either tuned to
>> # be compatible. I think the tuned metrics of such fonts are
>> # mainly Katakana, Hiragana etc.
>
> If you go with this solution, also make sure that there is a FontConfig
> configuration file that sets up the fonts as possible replacements for
> MS Gothic and MS Mincho. If you install the fonts using packages from
> your distribution, this is probably already taken care of. If you need
> to do it manually, the files are in “/etc/fonts/conf.d/”, and write
> something like the following in a .conf file there:
>
> <?xml version="1.0"?>
> <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
> <fontconfig>
> <match>
> <test name="family" compare="contains">
> <string>MS Gothic</string>
> </test>
> <edit name="family" mode="prepend">
> <string>VL PGothic</string>
> </edit>
> </match>
> </fontconfig>
>
> This example replaces “MS Gothic” with “VL PGothic” -- just feel free to
> write the name of the font that works better for replacing MS Gothic in
> your case.
>
> You can also do the replacements depending on the language. For info on
> all the things that can be done with FontConfig, you may want to check
> the documentation for the configuration files at:
>
> http://www.freedesktop.org/software/fontconfig/fontconfig-user.html
>
> Hope this helps!
>
> -Adrian
>
>
>> 兼安勉 wrote:
>>> Hello,
>>>
>>> I worry about the problem of fonts by using "pdftoppm" command below.
>>> --
>>> pdftoppm -png TEST4.pdf OUT
>>> --
>>> TEST4.pdf is an attachment PDF(non-embedded font) file, and
>>> is written by MS Gothic.
>>> A image of output is OUT.jpg.
>>> The problem of fonts is position gap of the alphabet.
>>>
>>> How should it solve?
>>>
>>> My environment is Ubuntu-ja-13.10-desktop-amd64.
>>> The font setting is the following.
>>> --
>>> fc-match :lang=ja -> ipagp.ttf "IPAPGothic" "Regular"
>>> fc-match serif:lang=ja -> ipamp.ttf "IPAPMincho" "Regular"
>>> fc-match sans-serif:lang=ja -> ipagp.ttf "IPAPGothic" "Regular"
>>> fc-match monospace:lang=ja -> ipag.ttf "IPAGothic" "Regular"
>>> --
More information about the poppler
mailing list