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?










share|improve this question






















  • 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















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?










share|improve this question






















  • 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













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?










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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


















  • 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















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















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






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














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





















































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







Popular posts from this blog

Accessing regular linux commands in Huawei's Dopra Linux

Can't connect RFCOMM socket: Host is down

Kernel panic - not syncing: Fatal Exception in Interrupt