How to use MP labels with PK fonts?
up vote
2
down vote
favorite
Run mf \mode=localfont; input test.mf
on the following file:
mode_setup;
beginchar("e",10pt#,7.5pt#,2.5pt#);
pickup pencircle scaled (.4pt+blacker);
draw fullcircle scaled .2w shifted (w/2,(h+d)/2-d);
draw fullcircle scaled .6w shifted (w/2,(h+d)/2-d);
draw fullcircle scaled w shifted (w/2,(h+d)/2-d);
endchar;
end
Now run mpost test.mp
on the following file:
prologues := 3;
beginfig(1);
label.lrt(btex fontx=test x e etex, (0,0));
endfig;
end
Output contains this warning:
Warning: font test cannot be found in any fontmapfile!
How to use PK font in MetaPost labels?
metapost
|
show 1 more comment
up vote
2
down vote
favorite
Run mf \mode=localfont; input test.mf
on the following file:
mode_setup;
beginchar("e",10pt#,7.5pt#,2.5pt#);
pickup pencircle scaled (.4pt+blacker);
draw fullcircle scaled .2w shifted (w/2,(h+d)/2-d);
draw fullcircle scaled .6w shifted (w/2,(h+d)/2-d);
draw fullcircle scaled w shifted (w/2,(h+d)/2-d);
endchar;
end
Now run mpost test.mp
on the following file:
prologues := 3;
beginfig(1);
label.lrt(btex fontx=test x e etex, (0,0));
endfig;
end
Output contains this warning:
Warning: font test cannot be found in any fontmapfile!
How to use PK font in MetaPost labels?
metapost
As well as putting the .tfm and .pk files in the right place: texfaq.org/FAQ-instmffont , you need to update the psfonts map files which metapost uses. The MP log will tell you which one you are using.
– Thruston
yesterday
But in the example you show it would be much simpler just to draw directly in Metapost rather than making a font and using that via TeX....
– Thruston
yesterday
@Thruston Current directory is always searched by default (in TexLive at least).
– Igor Liferenko
4 hours ago
@Thruston I need to use a pk font which does not exist as pfb. This metafont character is just an example.
– Igor Liferenko
4 hours ago
right - but you need to have a line in psfonts.map that points to your pk font.
– Thruston
55 mins ago
|
show 1 more comment
up vote
2
down vote
favorite
up vote
2
down vote
favorite
Run mf \mode=localfont; input test.mf
on the following file:
mode_setup;
beginchar("e",10pt#,7.5pt#,2.5pt#);
pickup pencircle scaled (.4pt+blacker);
draw fullcircle scaled .2w shifted (w/2,(h+d)/2-d);
draw fullcircle scaled .6w shifted (w/2,(h+d)/2-d);
draw fullcircle scaled w shifted (w/2,(h+d)/2-d);
endchar;
end
Now run mpost test.mp
on the following file:
prologues := 3;
beginfig(1);
label.lrt(btex fontx=test x e etex, (0,0));
endfig;
end
Output contains this warning:
Warning: font test cannot be found in any fontmapfile!
How to use PK font in MetaPost labels?
metapost
Run mf \mode=localfont; input test.mf
on the following file:
mode_setup;
beginchar("e",10pt#,7.5pt#,2.5pt#);
pickup pencircle scaled (.4pt+blacker);
draw fullcircle scaled .2w shifted (w/2,(h+d)/2-d);
draw fullcircle scaled .6w shifted (w/2,(h+d)/2-d);
draw fullcircle scaled w shifted (w/2,(h+d)/2-d);
endchar;
end
Now run mpost test.mp
on the following file:
prologues := 3;
beginfig(1);
label.lrt(btex fontx=test x e etex, (0,0));
endfig;
end
Output contains this warning:
Warning: font test cannot be found in any fontmapfile!
How to use PK font in MetaPost labels?
metapost
metapost
asked yesterday
Igor Liferenko
2,025729
2,025729
As well as putting the .tfm and .pk files in the right place: texfaq.org/FAQ-instmffont , you need to update the psfonts map files which metapost uses. The MP log will tell you which one you are using.
– Thruston
yesterday
But in the example you show it would be much simpler just to draw directly in Metapost rather than making a font and using that via TeX....
– Thruston
yesterday
@Thruston Current directory is always searched by default (in TexLive at least).
– Igor Liferenko
4 hours ago
@Thruston I need to use a pk font which does not exist as pfb. This metafont character is just an example.
– Igor Liferenko
4 hours ago
right - but you need to have a line in psfonts.map that points to your pk font.
– Thruston
55 mins ago
|
show 1 more comment
As well as putting the .tfm and .pk files in the right place: texfaq.org/FAQ-instmffont , you need to update the psfonts map files which metapost uses. The MP log will tell you which one you are using.
– Thruston
yesterday
But in the example you show it would be much simpler just to draw directly in Metapost rather than making a font and using that via TeX....
– Thruston
yesterday
@Thruston Current directory is always searched by default (in TexLive at least).
– Igor Liferenko
4 hours ago
@Thruston I need to use a pk font which does not exist as pfb. This metafont character is just an example.
– Igor Liferenko
4 hours ago
right - but you need to have a line in psfonts.map that points to your pk font.
– Thruston
55 mins ago
As well as putting the .tfm and .pk files in the right place: texfaq.org/FAQ-instmffont , you need to update the psfonts map files which metapost uses. The MP log will tell you which one you are using.
– Thruston
yesterday
As well as putting the .tfm and .pk files in the right place: texfaq.org/FAQ-instmffont , you need to update the psfonts map files which metapost uses. The MP log will tell you which one you are using.
– Thruston
yesterday
But in the example you show it would be much simpler just to draw directly in Metapost rather than making a font and using that via TeX....
– Thruston
yesterday
But in the example you show it would be much simpler just to draw directly in Metapost rather than making a font and using that via TeX....
– Thruston
yesterday
@Thruston Current directory is always searched by default (in TexLive at least).
– Igor Liferenko
4 hours ago
@Thruston Current directory is always searched by default (in TexLive at least).
– Igor Liferenko
4 hours ago
@Thruston I need to use a pk font which does not exist as pfb. This metafont character is just an example.
– Igor Liferenko
4 hours ago
@Thruston I need to use a pk font which does not exist as pfb. This metafont character is just an example.
– Igor Liferenko
4 hours ago
right - but you need to have a line in psfonts.map that points to your pk font.
– Thruston
55 mins ago
right - but you need to have a line in psfonts.map that points to your pk font.
– Thruston
55 mins ago
|
show 1 more comment
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f460242%2fhow-to-use-mp-labels-with-pk-fonts%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
As well as putting the .tfm and .pk files in the right place: texfaq.org/FAQ-instmffont , you need to update the psfonts map files which metapost uses. The MP log will tell you which one you are using.
– Thruston
yesterday
But in the example you show it would be much simpler just to draw directly in Metapost rather than making a font and using that via TeX....
– Thruston
yesterday
@Thruston Current directory is always searched by default (in TexLive at least).
– Igor Liferenko
4 hours ago
@Thruston I need to use a pk font which does not exist as pfb. This metafont character is just an example.
– Igor Liferenko
4 hours ago
right - but you need to have a line in psfonts.map that points to your pk font.
– Thruston
55 mins ago