Hi, I'm having problems with Palatino sans serif in my documents. Consider the following small file: \usetypescript[palatino][ec] \setupbodyfont[palatino,10pt] \starttext \ss Hello world! {\tfa\ss tfa} {\tfb\ss tfb} {\tfc\ss tfc} {\tfd\ss tfd} \stoptext On live.contextgarden.net this renders correctly, with sans serif text and appropriate character sizes. On my local system, though, all the text is serif and at the same size. There is no size variation with \tfa, \tfb, etc. If I remove all the \ss commands then the sizing works again. I'm using MacTeX 2008. Here are my version strings from texexec: This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7) ConTeXt ver: 2008.04.11 00:07 MKII fmt: 2008.10.11 int: english/ english What is wrong with my installation (or my document)? Cheers, Rory Molinari
On Oct 18, 2008, at 4:13 PM, Rory Molinari wrote:
Hi,
I'm having problems with Palatino sans serif in my documents.
Consider the following small file:
\usetypescript[palatino][ec] \setupbodyfont[palatino,10pt]
\starttext \ss Hello world!
{\tfa\ss tfa} {\tfb\ss tfb} {\tfc\ss tfc} {\tfd\ss tfd}
\stoptext
On live.contextgarden.net this renders correctly, with sans serif text and appropriate character sizes.
On my local system, though, all the text is serif and at the same size. There is no size variation with \tfa, \tfb, etc. If I remove all the \ss commands then the sizing works again.
As an extra data point, I see this in the texexec log: pdftex (file ec-urw-palatino.map): cannot open font map file
I'm using MacTeX 2008. Here are my version strings from texexec:
This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7) ConTeXt ver: 2008.04.11 00:07 MKII fmt: 2008.10.11 int: english/ english
What is wrong with my installation (or my document)?
Cheers, Rory Molinari
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
On Sat, 18 Oct 2008, Rory Molinari wrote:
Hi,
I'm having problems with Palatino sans serif in my documents.
Consider the following small file:
\usetypescript[palatino][ec] \setupbodyfont[palatino,10pt]
\starttext \ss Hello world!
{\tfa\ss tfa} {\tfb\ss tfb} {\tfc\ss tfc} {\tfd\ss tfd}
\stoptext
On live.contextgarden.net this renders correctly, with sans serif text and appropriate character sizes.
On my local system, though, all the text is serif and at the same size. There is no size variation with \tfa, \tfb, etc. If I remove all the \ss commands then the sizing works again.
I'm using MacTeX 2008. Here are my version strings from texexec:
This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7) ConTeXt ver: 2008.04.11 00:07 MKII fmt: 2008.10.11 int: english/ english
What is wrong with my installation (or my document)?
Can you attach your log file? Does adding \usetypescriptfile[type-gyr] on top of the document help? Notice that palatino does not have a sans serif, so you should get Latin Modern Sans as the sans serif font. Aditya
On Oct 18, 2008, at 4:59 PM, Aditya Mahajan wrote:
On Sat, 18 Oct 2008, Rory Molinari wrote:
Hi,
I'm having problems with Palatino sans serif in my documents.
Consider the following small file:
\usetypescript[palatino][ec] \setupbodyfont[palatino,10pt]
\starttext \ss Hello world!
{\tfa\ss tfa} {\tfb\ss tfb} {\tfc\ss tfc} {\tfd\ss tfd}
\stoptext
On live.contextgarden.net this renders correctly, with sans serif text and appropriate character sizes.
On my local system, though, all the text is serif and at the same size. There is no size variation with \tfa, \tfb, etc. If I remove all the \ss commands then the sizing works again.
I'm using MacTeX 2008. Here are my version strings from texexec:
This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7) ConTeXt ver: 2008.04.11 00:07 MKII fmt: 2008.10.11 int: english/ english
What is wrong with my installation (or my document)?
Can you attach your log file? Does adding \usetypescriptfile[type- gyr] on top of the document help?
Adding that line doesn't change the behavior. I've attached a copy of the log. (The log is from a run including the \usetypescriptfile command.)
Notice that palatino does not have a sans serif, so you should get Latin Modern Sans as the sans serif font.
That makes sense. Cheers, Rory
Aditya ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
On Sat, 18 Oct 2008, Rory Molinari wrote:
On Oct 18, 2008, at 4:59 PM, Aditya Mahajan wrote:
On Sat, 18 Oct 2008, Rory Molinari wrote:
Hi,
I'm having problems with Palatino sans serif in my documents.
Consider the following small file:
\usetypescript[palatino][ec] \setupbodyfont[palatino,10pt]
\starttext \ss Hello world!
{\tfa\ss tfa} {\tfb\ss tfb} {\tfc\ss tfc} {\tfd\ss tfd}
\stoptext
On live.contextgarden.net this renders correctly, with sans serif text and appropriate character sizes.
On my local system, though, all the text is serif and at the same size. There is no size variation with \tfa, \tfb, etc. If I remove all the \ss commands then the sizing works again.
I'm using MacTeX 2008. Here are my version strings from texexec:
This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7) ConTeXt ver: 2008.04.11 00:07 MKII fmt: 2008.10.11 int: english/ english
What is wrong with my installation (or my document)?
Can you attach your log file? Does adding \usetypescriptfile[type-gyr] on top of the document help?
Adding that line doesn't change the behavior. I've attached a copy of the log.
Your log file is exactly same as the log file that I get (but I go get correct font scaling). All fonts and map files are found and correctly loaded. Nothing obvious is wrong. What does pdffonts file.pdf say? The next thing will be to look at the output of \loggingall. Can you add \loggingall on top of your file and zip all the files (tex, tui, tuo, log, pdf) and make it available somewhere (it will exceed the attachment limit of this list). Aditya
Aditya Mahajan wrote:
What is wrong with my installation (or my document)? Can you attach your log file? Does adding \usetypescriptfile[type-gyr] on top of the document help? Adding that line doesn't change the behavior. I've attached a copy of the log.
Your log file is exactly same as the log file that I get (but I go get correct font scaling). All fonts and map files are found and correctly loaded. Nothing obvious is wrong. What does pdffonts file.pdf say?
The log file indicates that cont-sys.tex loads adobekb. Is that standard in texlive2008? Best wishes, Taco
On Sat, 18 Oct 2008 20:10:02 -0600, Aditya Mahajan
What is wrong with my installation (or my document)?
Can you attach your log file? Does adding \usetypescriptfile[type-gyr] on top of the document help?
Adding that line doesn't change the behavior. I've attached a copy of the log. Your log file is exactly same as the log file that I get (but I go get correct font scaling).
Rory, if updating your old ConTeXt mkii is not an option, then try this. It's form is also instructive and may help you with future setups. ========= \starttypescript [palatino-ec] % \definebodyfontenvironment %% optional % [palatino] % [default] % [interlinespace=2.7ex] \definetypeface [palatino] [rm] [serif] [palatino] [default] [encoding=ec] \definetypeface [palatino] [ss] [sans] [modern] [default] [encoding=ec,rscale=1.075] \definetypeface [palatino] [tt] [mono] [modern] [default] [encoding=ec,rscale=1.075] \definetypeface [palatino] [mm] [math] [palatino] [default] \quittypescriptscanning \stoptypescript \usetypescript[palatino-ec] \setupbodyfont[palatino,12pt] \starttext test \ss Hello world! {\tfa\ss tfa} {\tfb\ss tfb} {\tfc\ss tfc} {\tfd\ss tfd} \stoptext ========= Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523
Hi again, On Oct 19, 2008, at 7:37 AM, Idris Samawi Hamid ادريس سماوي حامد wrote:
On Sat, 18 Oct 2008 20:10:02 -0600, Aditya Mahajan
wrote: What is wrong with my installation (or my document)?
Can you attach your log file? Does adding \usetypescriptfile[type- gyr] on top of the document help?
Adding that line doesn't change the behavior. I've attached a copy of the log. Your log file is exactly same as the log file that I get (but I go get correct font scaling).
Rory, if updating your old ConTeXt mkii is not an option, then try this. It's form is also instructive and may help you with future setups.
I took Idris's advice and updated ConTeXt (with % sudo ctxtools -- updatecontext). Now the sizing and sans serif commands work fine, with and without "\usetypescriptfile[type-gyr]". I apologize for wasting everyone's time with a problem that was merely due to my out-of-date installation. Idris: thanks for the typescript example. I find this topic very confusing and will enjoy working through it. Aditya: I'm sorry that I didn't think to get output with '\loggingall' before updating my ConTeXt installation. Cheers, Rory
========= \starttypescript [palatino-ec] % \definebodyfontenvironment %% optional % [palatino] % [default] % [interlinespace=2.7ex]
\definetypeface [palatino] [rm] [serif] [palatino] [default] [encoding=ec] \definetypeface [palatino] [ss] [sans] [modern] [default] [encoding=ec,rscale=1.075] \definetypeface [palatino] [tt] [mono] [modern] [default] [encoding=ec,rscale=1.075] \definetypeface [palatino] [mm] [math] [palatino] [default] \quittypescriptscanning \stoptypescript
\usetypescript[palatino-ec] \setupbodyfont[palatino,12pt]
\starttext
test
\ss Hello world!
{\tfa\ss tfa} {\tfb\ss tfb} {\tfc\ss tfc} {\tfd\ss tfd}
\stoptext =========
Best wishes Idris
-- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Hi Rory, Aditya Mahajan wrote:
On my local system, though, all the text is serif and at the same size. There is no size variation with \tfa, \tfb, etc. If I remove all the \ss commands then the sizing works again.
Sorry for being so slow with this, Aditya was right with his analysis. I just installed a texlive2008, and the problem is really a simple bug / omission in the pre-august context release, I should have spotted it without having to actually install a texlive myself. Anyway, from the Release Notes page for 2008.08.04: type-one.tex: * add an ss definition for palatino and fourier typescripts Because there is no fallback font defined either, you get 'nothing' when you switch to \ss in the older contexts. You could attempt to update your context installation, but this could introduce new problems, so it may be easiest to add a \definetypeface line for palatino ss in your document someplace before the \setupbodyfont. \definetypeface [palatino] [ss] [sans] [modern] [default] [encoding=ec,rscale=1.075] Best wishes, Taco
Taco Hoekwater wrote:
Hi Rory,
Hi Taco, Thanks for responding.
Because there is no fallback font defined either, you get 'nothing' when you switch to \ss in the older contexts. You could attempt to update your context installation, but this could introduce new problems, so it may be easiest to add a \definetypeface line
I've already updated my installation, which cleared up the problem. Is it risky in general to use 'ctxtool --updatecontext'?
for palatino ss in your document someplace before the \setupbodyfont.
\definetypeface [palatino] [ss] [sans] [modern] [default] [encoding=ec,rscale=1.075]
Oh, I see. This uses the Computer Modern sans. So if I understand things correctly, the various arguments are: [palatino]: the typeface being defined (or modified in this case) [ss]: the part of the typeface being defined (the \ss name) [sans]: refers to a part of the "modern" typeface [modern]: pick the "sans" part of the this typeface [default]: what's this bit? [encoding]: the encoding to use [rscale]: a scaling adjustment to make up for CM's smaller x-size. Is that the general idea? Cheers, Rory
Best wishes, Taco ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Rory Molinari wrote:
So if I understand things correctly, the various arguments are:
[palatino]: the typeface being defined (or modified in this case) [ss]: the part of the typeface being defined (the \ss name) [sans]: refers to a part of the "modern" typeface [modern]: pick the "sans" part of the this typeface [default]: what's this bit? [encoding]: the encoding to use [rscale]: a scaling adjustment to make up for CM's smaller x-size.
Is that the general idea?
Yes, spot on. The [default] is for font families with optical scaling instances and is only used with the computer modern fonts. When combined with a different font set, like palatino, it doesn't make much sense so it is usually left at [default]. Best wishes, Taco
Hi,
On Sat, 18 Oct 2008 17:13:04 -0600, Rory Molinari
Hi,
I'm having problems with Palatino sans serif in my documents.
Consider the following small file:
\usetypescript[palatino][ec] \setupbodyfont[palatino,10pt]
\starttext \ss Hello world!
{\tfa\ss tfa} {\tfb\ss tfb} {\tfc\ss tfc} {\tfd\ss tfd}
\stoptext
On live.contextgarden.net this renders correctly, with sans serif text and appropriate character sizes.
On my local system, though, all the text is serif and at the same size. There is no size variation with \tfa, \tfb, etc. If I remove all the \ss commands then the sizing works again.
I just tried your example; \ss works here just fine.
I'm using MacTeX 2008. Here are my version strings from texexec:
This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7) ConTeXt ver: 2008.04.11 00:07 MKII fmt: 2008.10.11 int: english/ english
What is wrong with my installation (or my document)?
Your ConTeXt is ancient. Try updating to the latest current version or beta. My beta is ConTeXt ver: 2008.10.12 22:46 MKII The latest beta should be safe since mkii is pretty much fixed, if not frozen. Best wishes -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523
On Sun, Oct 19, 2008 at 1:13 AM, Rory Molinari wrote:
Hi,
I'm having problems with Palatino sans serif in my documents.
Consider the following small file:
\usetypescript[palatino][ec] \setupbodyfont[palatino,10pt]
\starttext \ss Hello world!
{\tfa\ss tfa} {\tfb\ss tfb} {\tfc\ss tfc} {\tfd\ss tfd}
\stoptext
On live.contextgarden.net this renders correctly, with sans serif text and appropriate character sizes.
On my local system, though, all the text is serif and at the same size. There is no size variation with \tfa, \tfb, etc. If I remove all the \ss commands then the sizing works again.
I'm using MacTeX 2008. Here are my version strings from texexec:
This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7) ConTeXt ver: 2008.04.11 00:07 MKII fmt: 2008.10.11 int: english/ english
What is wrong with my installation (or my document)?
I don't know the cure. The same thing happens to me with or without \usetypescriptfile[type-gyr]. I have noticed that a map file that is present in TeX Liven 2007 is missing in TeX Live 2008 (also using MacTeX with some random version of ConTeXt). ss is not defined for Palatino. But what's also really annoying and might be connected - all my accented letters written in palatino (URWPalladio) are gone (š is ok, č looses accent, ž disappears, fi ligatures turn into some weird accents ...) when I post-process the document with Adobe Acrobat in order to reduce document size by downsampling photos. I tried to switch to TeXGyre, but then all the line/page breaks are broken. I need to lock my computer from me for a week. Maybe it will obey me better after it takes some break :) :) :) Maybe fixing a problem with map files might help, but I cannot think right now. Mojca
Mojca Miklavec wrote:
I don't know the cure. The same thing happens to me with or without \usetypescriptfile[type-gyr]. I have noticed that a map file that is present in TeX Liven 2007 is missing in TeX Live 2008 (also using MacTeX with some random version of ConTeXt).
The missing mapfile (ec-urw-palatino) is completely harmless. The file exists in the context minimals, and it contains the map lines for texfont-installed urw palatino metrics. But in texlive & mactex texfont is not used, these distributions use the berry names for the font metrics. Using these metrics is triggered by a \usetypescript[berry] in cont-sys.rme, and the associated fontmap definitions are in (the also automatically loaded) ec-base.map. So it is just a spurious warning.
But what's also really annoying and might be connected - all my accented letters written in palatino (URWPalladio) are gone (š is ok, č looses accent, ž disappears, fi ligatures turn into some weird accents ...) when I post-process the document with Adobe Acrobat in order to reduce document size by downsampling photos.
For this, can you send me a private message with before & after set of pdfs? If possible, ones generated with \nopdfcompression (because that is easier to debug). Afaict, it is unrelated to this problem, but still definately a bug.
I tried to switch to TeXGyre, but then all the line/page breaks are broken.
This is unavoidable, texgyre simply has different metrics from the URW version of the fonts. Best wishes, Taco
On Mon, Oct 20, 2008 at 11:54 AM, Taco Hoekwater wrote:
Mojca Miklavec wrote:
I don't know the cure. The same thing happens to me with or without \usetypescriptfile[type-gyr]. I have noticed that a map file that is present in TeX Liven 2007 is missing in TeX Live 2008 (also using MacTeX with some random version of ConTeXt).
The missing mapfile (ec-urw-palatino) is completely harmless. The file exists in the context minimals, and it contains the map lines for texfont-installed urw palatino metrics.
But in texlive & mactex texfont is not used, these distributions use the berry names for the font metrics. Using these metrics is triggered by a \usetypescript[berry] in cont-sys.rme, and the associated fontmap definitions are in (the also automatically loaded) ec-base.map.
So it is just a spurious warning.
But what's also really annoying and might be connected - all my accented letters written in palatino (URWPalladio) are gone (š is ok, č looses accent, ž disappears, fi ligatures turn into some weird accents ...) when I post-process the document with Adobe Acrobat in order to reduce document size by downsampling photos.
For this, can you send me a private message with before & after set of pdfs?
I have been trying to create a minimal example. Now that's bad: minimal example works OK with the same set of settings and same text. It's only the 60-pages document that fails. I'll send you the link, but it could just as well be that it's a bug in Acrobat.
If possible, ones generated with \nopdfcompression (because that is easier to debug).
How can I uncompress the files generated by Adobe?
Afaict, it is unrelated to this problem, but still definately a bug.
I only wonder if it's a bug in ConTeXt or Acrobat ... If it was a problem with maps or whatever, single-page example should have failed already.
I tried to switch to TeXGyre, but then all the line/page breaks are broken.
This is unavoidable, texgyre simply has different metrics from the URW version of the fonts.
I'm fully aware of that :( But I could think about that a few weeks ago. Mojca
For this, can you send me a private message with before & after set of pdfs?
If possible, ones generated with \nopdfcompression (because that is easier to debug). Afaict, it is unrelated to this problem, but still definately a bug.
The file is 26MB now. I will try to see what I can do to cut it down to some smaller size & still showing the bug, before filling the disk quota :) :) :) by sending uncompressed PDF. Mojca
Mojca Miklavec wrote:
For this, can you send me a private message with before & after set of pdfs?
If possible, ones generated with \nopdfcompression (because that is easier to debug). Afaict, it is unrelated to this problem, but still definately a bug.
The file is 26MB now. I will try to see what I can do to cut it down to some smaller size & still showing the bug, before filling the disk quota :) :) :) by sending uncompressed PDF.
I fetched the files (so you can delete them) and I am tempted to believe this is an AR (distiller) bug, because the /Encoding in the generated PDF is incomplete, and it was probably correct in the z-before.pdf (I did not decompress the file, but it must have been ok, otherwise that file would have displayed incorrectly as well). The "Slanted" entry in the z-after.pdf has: 341 0 obj <
endobj 342 0 obj <
endobj 344 0 obj <
endobj
Notice the big difference between the /Differences and the /CharSet. Despite the name of /Differences, this normally lists all the glyphs in the subset. When I manually add 14/Zcaron/zcaron at the start of /Differences, then suddenly the slanted accented z-s reappear. I suspect Acrobat Pro gets confused about the encoding because it probably has to merge more than one subset into a single one. Perhaps it believes all encodings are equal. This you could test by looking at an uncompressed generated pdf's Font objects in a text editor. Best wishes, Taco
On Mon, Oct 20, 2008 at 2:45 PM, Taco Hoekwater
Mojca Miklavec wrote:
For this, can you send me a private message with before & after set of pdfs?
If possible, ones generated with \nopdfcompression (because that is easier to debug). Afaict, it is unrelated to this problem, but still definately a bug.
The file is 26MB now. I will try to see what I can do to cut it down to some smaller size & still showing the bug, before filling the disk quota :) :) :) by sending uncompressed PDF.
I fetched the files (so you can delete them) and I am tempted to believe this is an AR (distiller) bug, because the /Encoding in the generated PDF is incomplete, and it was probably correct in the z-before.pdf (I did not decompress the file, but it must have been ok, otherwise that file would have displayed incorrectly as well).
The "Slanted" entry in the z-after.pdf has:
341 0 obj <
endobj 342 0 obj <
endobj 344 0 obj <
endobj
Notice the big difference between the /Differences and the /CharSet. Despite the name of /Differences, this normally lists all the glyphs in the subset. When I manually add
14/Zcaron/zcaron
at the start of /Differences, then suddenly the slanted accented z-s reappear.
I suspect Acrobat Pro gets confused about the encoding because it probably has to merge more than one subset into a single one. Perhaps it believes all encodings are equal. This you could test by looking at an uncompressed generated pdf's Font objects in a text editor.
!PS-AdobeFont-1.0: URWPalladioL-Roma 1.05%%CreationDate: Wed Dec 22 1999% Copyright (URW)++,Copyright 1999 by (URW)++ Design & Development% (URW)++,Copyright 1999 by (URW)++ Design & Development% See the file COPYING (GNU General Public License) for license conditions.% As a special exception, permission is granted to include this font% program in a Postscript or PDF file that consists of a document that% contains text to be displayed or printed using this font, regardless% of the conditions or license applying to the document itself.12 dict begin/FontInfo 10 dict dup begin/version (1.05) readonly def/Notice ((URW)++,Copyright 1999 by (URW)++ Design & Development. See the file COPYING (GNU General Public License) for license conditions. As a special exception, permission--> is granted to include this font program in a Postscript or PDF file that consists of a document that contains text to be displayed or printed using this font, regardless--> of the conditions or license applying to the document itself.) readonly def /Copyright (Copyright (URW)++,Copyright 1999 by (URW)++ Design & Development) readonly def /FullName (URW Palladio L Roman) readonly def /FamilyName (URW Palladio L) readonly def /Weight (Roman) readonly def /ItalicAngle -9.4809 def /isFixedPitch false def /UnderlinePosition -100 def /UnderlineThickness 50 def end readonly def /FontName /HFKCGX+URWPalladioL-Roma-Slant_167 def /PaintType 0 def /WMode 0 def /FontBBox {-166 -283 1021 943} readonly def /FontType 1 def /FontMatrix [0.001 0 0.000167 0.001 0 0 ] readonly def /Encoding StandardEncoding def currentdict end currentfile eexec And then "(nova.)-466(\016eleli)" for "nova. Želeli" where Ž is missing. I can at least do a bissection. Maybe some included PDF image is confusing things. Mojca
participants (5)
-
Aditya Mahajan
-
Idris Samawi Hamid ادريس سماوي ح امد
-
Mojca Miklavec
-
Rory Molinari
-
Taco Hoekwater