Hello, I am having a problem setting up a body font since updating my tex system to texlive 2007. The file below worked fine on my old tetex system, but alas the body font will no longer change. No matter what I do, I get the default roman font instead of the one I specify. The Chapter font is the correct font (bickham), but the body font is not. Based on this I think I have the font installed correctly. Can anyone see what I am missing. Why can I not change the body font? %output=pdftex \resetmapfiles \loadmapfile[texnansi-familylearn-bickham] \definefontsynonym[BodyFont][texnansi-pbir8a][encoding=texnansi] \definebodyfont[default][rm][tf=BodyFont sa 1] \setupbodyfont[default, rm] \definefont[ChapterFont][BodyFont at 48pt] \setuphead[chapter][style=\ChapterFont] \starttext \chapter{Bickham Chapter} Hello in Bickham font. \stoptext Thanks, paul
Another not I did not mention.
\showfont[BodyFont] produced all the right information.
\showbodyfont produced the standard fonts instead of the one I tried to
define for \rm \tf
Thanks again for any help.
paul
On 2/28/07, Paul Jones
Hello,
I am having a problem setting up a body font since updating my tex system to texlive 2007. The file below worked fine on my old tetex system, but alas the body font will no longer change. No matter what I do, I get the default roman font instead of the one I specify. The Chapter font is the correct font (bickham), but the body font is not. Based on this I think I have the font installed correctly. Can anyone see what I am missing. Why can I not change the body font?
%output=pdftex
\resetmapfiles \loadmapfile[texnansi-familylearn-bickham] \definefontsynonym[BodyFont][texnansi-pbir8a][encoding=texnansi]
\definebodyfont[default][rm][tf=BodyFont sa 1] \setupbodyfont[default, rm]
\definefont[ChapterFont][BodyFont at 48pt]
\setuphead[chapter][style=\ChapterFont]
\starttext \chapter{Bickham Chapter} Hello in Bickham font. \stoptext
Thanks, paul
Paul Jones wrote:
Hello,
I am having a problem setting up a body font since updating my tex system to texlive 2007. The file below worked fine on my old tetex system, but alas the body font will no longer change. No matter what I do, I get the default roman font instead of the one I specify. The Chapter font is the correct font (bickham), but the body font is not. Based on this I think I have the font installed correctly. Can anyone see what I am missing. Why can I not change the body font?
%output=pdftex
\resetmapfiles \loadmapfile[texnansi-familylearn-bickham] \definefontsynonym[BodyFont][texnansi-pbir8a][encoding=texnansi]
\definebodyfont[default][rm][tf=BodyFont sa 1] \setupbodyfont[default, rm]
does \definebodyfontenvironment[48pt] help (if so, you really have an old version)
\definefont[ChapterFont][BodyFont at 48pt]
\setuphead[chapter][style=\ChapterFont]
\starttext \chapter{Bickham Chapter} Hello in Bickham font. \stoptext
Thanks, paul
------------------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
I just found that
\definebodyfont[12pt][rm][tf=BodyFont sa 1]
\setupbodyfont[reset,12pt,BodyFont]
worked as I expected. What does the reset switch do? I can not find it
documented anywhere. I just stumbled on it looking at some examples on the
wiki.
paul
On 2/28/07, Hans Hagen
Paul Jones wrote:
Hello,
I am having a problem setting up a body font since updating my tex system to texlive 2007. The file below worked fine on my old tetex system, but alas the body font will no longer change. No matter what I do, I get the default roman font instead of the one I specify. The Chapter font is the correct font (bickham), but the body font is not. Based on this I think I have the font installed correctly. Can anyone see what I am missing. Why can I not change the body font?
%output=pdftex
\resetmapfiles \loadmapfile[texnansi-familylearn-bickham] \definefontsynonym[BodyFont][texnansi-pbir8a][encoding=texnansi]
\definebodyfont[default][rm][tf=BodyFont sa 1] \setupbodyfont[default, rm]
does
\definebodyfontenvironment[48pt]
help (if so, you really have an old version)
\definefont[ChapterFont][BodyFont at 48pt]
\setuphead[chapter][style=\ChapterFont]
\starttext \chapter{Bickham Chapter} Hello in Bickham font. \stoptext
Thanks, paul
------------------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
--
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
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
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
Using a typescript does not change the problem. (Though, thank you for the typescript) Any ideas on what I can do to debug this issue? I'm not sure where to look anymore. I have about 8 fonts that I have installed and they all have this problem. I have attached the texexec log. Maybe someone can see a clue in there? Thanks in advance, paul %new file using a typescript \usetypescriptfile[type-bickham.tex] \usetypescript[Bickham][texnansi] \setupbodyfont[Bickham,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
On Mar 5, 2007, at 10:23 PM, Paul Jones wrote:
Using a typescript does not change the problem. (Though, thank you for the typescript) Any ideas on what I can do to debug this issue? I'm not sure where to look anymore. I have about 8 fonts that I have installed and they all have this problem. I have attached the texexec log. Maybe someone can see a clue in there?
Diagnosing this remotely is almost impossible. The log shows that the typescript is read, but your fonts are not used; everything is in Latin Modern. You should test if all the files you need are really found by TeX: kpsewhich texnansi-familylearn-bickham.map kpsewhich texnansi-pbir8a.tfm kpsewhich texnansi-pbir8a.vf kpsewhich texnansi-raw-pbir8a.tfm kpsewhich pbir8a.pfb Also, did I forget the .map in the first line of the typescript? \loadmapfile[texnansi-familylearn-bickham.map]
Diagnosing this remotely is almost impossible. The log shows that the typescript is read, but your fonts are not used; everything is in Latin Modern.
This is one of the reasons I was trying to use \definebodyfont directly. I was hoping that the problem was in the typescript I wrote. But it seems that no matter what I do modern is always used. I can use my fonts anywhere except the as the body font. You should test if all the files you need are really
found by TeX:
kpsewhich texnansi-familylearn-bickham.map
kpsewhich texnansi-pbir8a.tfm
kpsewhich texnansi-pbir8a.vf
kpsewhich texnansi-raw-pbir8a.tfm
kpsewhich pbir8a.pfb
kpsewhich finds all the files. Thank you for your help so far Thomas. If you have any more ideas, I am willing to try just about anything now. paul
participants (3)
-
Hans Hagen
-
Paul Jones
-
Thomas A. Schmitz