[metapost] MetaFont fonts in MetaPost (was: [mpman] using MetaPost from TeX)
Stephan Hennig
mailing_list at arcor.de
Tue Nov 13 13:30:18 CET 2007
[Full quote, since I forgot to move from mp-implementors list to
metapost list earlier. The problem might be of broader interest.]
Hartmut Henkel schrieb:
> On Mon, 12 Nov 2007, Hartmut Henkel wrote:
>> On Mon, 12 Nov 2007, Stephan Hennig wrote:
>>> Taco Hoekwater schrieb:
>>>> Stephan Hennig wrote:
>>>>>
>>>>> (ii) Since I've recently tried to use the Concrete math fonts (only
>>>>> available as MF) from MetaPost and realized that MetaPost doesn't embed
>>>>> those fonts even when prologues is set to 3, I've added an explicit note
>>>>> to section 8.1. Is that correct? (And why is that anyway? Given that
>>>>> MetaFont is a direct ancestor of MetaPost it seems paradoxical to me.)
>>>>
>>>> There is absolutely no code in metapost at all to deal with bitmaps.
>>>>
>>>> If I had wanted to support pk files, I would have had to call mktexpk
>>>> just like dvips & pdftex do. I decided not to do that, as the use of
>>>> bitmapped fonts in eps files is totally opposite to the idea of having
>>>> a scalable vector graphic.
>>>>
>>>> I assume (however, I am not completely sure) that mptopdf can deal with
>>>> metafont fonts in labels, because it lets pdftex handle the actual
>>>> font inclusion.
>>>
>>> I've not been able to get a decent result with mptopdf. Running
>>>
>>> mpost -tex=latex ccr
>>> mptopdf ccr
>>>
>>> on the attached file, named ccr.mp, gives a *very* pixelized pdf file,
>>> and I'm not really sure if that shows the requested formula x=1. How do
>>> I set the correct rendering resolution for mptopdf manually?
>>>
>>> verbatimtex
>>> \documentclass{article}
>>> \usepackage[T1]{fontenc}
>>> \usepackage{ccfonts}
>>> \begin{document}
>>> etex
>>> prologues := 3;
>>> beginfig(1);
>>> label(btex $x=1$ etex, origin);
>>> endfig;
>>> end
>>>
>>>
>>
>> one way might be to add a line
>>
>> pk_dpi=600
>>
>> or whatever your pixel font resolution is into file texmf.cnf. But it
>> should work without this, it's a last resort only.
I have no idea how texmf.cnf translates to MiKTeX terminology, I
couldn't find that file here.
> another one might be that you create some file mptopdf.ini:
>
> \input pdftexconfig.tex
> \input mptopdf.tex
> \dump
>
> and run pdftex --ini mptopdf.ini
>
> The resulting format should then know about the right resolution.
But this works great. Thanks!
Best regards,
Stephan Hennig
More information about the metapost
mailing list