On Mar 5, 2007, at 7:58 PM, Paul Jones wrote:
What I changed did not actually fix the problem, it just moved the problem somewhere else.
I have installed my own font (see mapfile below). \showfont shows the font information correctly. The problem is that I can not set this font to be the bodyfont at 12pt. It works at any other size, just not 12pt. If I change the \definebodyfont and \setupbodyfont below to use 14pt, or any other size, the body font changes.
At 12pt, \showbodyfont reports that the \tfa,\tfb,\tfc, and \tfd all switch to the Bickham font, but nothing else does.
At 14pt, \showbodyfont reports that all font varients change except \tfx and \tfxx.
It seems like either the body font is set earlier somewhere and I am not allowed to change it, or my choices are being overwritten after I make them. Is there a setting somewhere that I can change to fix this? This is a brand new installation of texlive2007 on Linux (suse and fedora both have this problem).
Here is my tex file \loadmapfile[texnansi-familylearn-bickham] \definefontsynonym[Bickham] [texnansi-pbir8a][encoding=texnansi] \definefontsynonym[BickhamBold] [texnansi-pbib8a] [encoding=texnansi] \definefontsynonym[BickhamSlanted] [texnansi-pbiri8a] [encoding=texnansi] \definefontsynonym[BickhamBoldSlanted] [texnansi-pbibi8a] [encoding=texnansi] \definefontsynonym[BickhamSmallCaps] [texnansi-pbir8a-capitalized-800][encoding=texnansi]
\definebodyfont[12pt][rm][tf=Bickham sa 1, bf=BickhamBold sa 1, sl=BickhamSlanted sa 1, it=BickhamSlanted sa 1, sc=BickhamSmallCaps sa 1, bs=BickhamBoldSlanted sa 1, bi=BickhamBoldSlanted sa 1] \setupbodyfont[12pt]
\starttext Hello in Bickham font. {\bf Hello in BickhamBold font} {\sl Hello in BickhamSlanted font} {\sc Hello in BickhamSmallCaps font} {\bs Hello in BickhamBoldSlanted font} \showbodyfont \stoptext
Here is my map file:
% This file is generated by the TeXFont Perl script. % % You need to add the following line to your file: % % \pdfmapfile{+texnansi-familylearn-bickham.map} % % In ConTeXt you can best use: % % \loadmapfile[texnansi-familylearn-bickham.map]
texnansi-raw-pbib8a BickhamScriptStd-Semibold 4 < pbib8a.pfb texnansi.enc texnansi-raw-pbibi8a BickhamScriptStd-Semibold 4 < pbibi8a.pfb texnansi.enc texnansi-raw-pbir8a BickhamScriptStd-Regular 4 < pbir8a.pfb texnansi.enc texnansi-raw-pbiri8a BickhamScriptStd-Regular 4 < pbiri8a.pfb texnansi.enc texnansi-raw-pbib8a-capitalized-800 BickhamScriptStd-Semibold 4 < pbib8a.pfb texnansi.enc texnansi-raw-pbibi8a-capitalized-800 BickhamScriptStd-Semibold 4 < pbibi8a.pfb texnansi.enc texnansi-raw-pbir8a-capitalized-800 BickhamScriptStd-Regular 4 < pbir8a.pfb texnansi.enc texnansi-raw-pbiri8a-capitalized-800 BickhamScriptStd-Regular 4 < pbiri8a.pfb texnansi.enc texnansi-raw-pbib8a-capitalized-1000 BickhamScriptStd-Semibold 4 < pbib8a.pfb texnansi.enc texnansi-raw-pbibi8a-capitalized-1000 BickhamScriptStd-Semibold 4 < pbibi8a.pfb texnansi.enc texnansi-raw-pbir8a-capitalized-1000 BickhamScriptStd-Regular 4 < pbir8a.pfb texnansi.enc texnansi-raw-pbiri8a-capitalized-1000 BickhamScriptStd-Regular 4 < pbiri8a.pfb texnansi.enc
Thanks for any help, paul
You don't need to do all this trickery with \definebodyfont, that's done automatically. And you don't want to define your fonts one by one, you want to have a typescript that will do all this for you. You should read the section about typescripts in the wiki: http:// wiki.contextgarden.net/TypeScripts In your case, the typescript would look like this: \loadmapfile[texnansi-familylearn-bickham] \usetypescriptfile[type-buy] \starttypescript [serif] [bickham] [texnansi] \definefontsynonym [Bickham-Roman] [\typescriptthree- pbir8a] [encoding=\typescriptthree] \definefontsynonym [Bickham-Bold] [\typescriptthree- pbib8a] [encoding=\typescriptthree] \definefontsynonym [Bickham-Italic] [\typescriptthree- pbiri8a] [encoding=\typescriptthree] \definefontsynonym [Bickham-Bold-Italic] [\typescriptthree- pbibi8a] [encoding=\typescriptthree] \definefontsynonym [Bickham-Roman-SmallCaps][\typescriptthree- pbir8a-capitalized-800] [encoding=\typescriptthree] \definefontsynonym [Bickham-Roman-OSF] [\typescriptthree- pbir8a-capitalized-800] [encoding=\typescriptthree] \stoptypescript \starttypescript [serif] [bickham] [name] \usetypescript[serif][fallback] \definefontsynonym [Serif] [Bickham-Roman] \definefontsynonym [SerifItalic] [Bickham-Italic] \definefontsynonym [SerifBold] [Bickham-Bold] \definefontsynonym [SerifBoldItalic] [Bickham-Bold-Italic] \definefontsynonym [SerifCaps] [Bickham-Roman-SmallCaps] \definefontsynonym [OldStyle] [Bickham-Roman-OSF] \stoptypescript \starttypescript [Bickham] [texnansi] \definetypeface [Bickham] [rm] [serif] [asteria] [default] [encoding=\typescripttwo] \stoptypescript Put this where ConTeXt can find it under the name type-bickham.tex, and then: \usetypescriptfile[type-bickham.tex] \usetypescript[Bickham][texnansi] \setupbodyfont[Bickham,12pt] HTH Thomas