Re: [XeTeX] wrong glyphs with FreeSerif Italic
2013/12/27 Khaled Hosny : > On Fri, Dec 27, 2013 at 11:41:19AM +0100, Zdenek Wagner wrote: >> The moral is that even XeTeX in TeX Live 2013 does not always obey the >> search order configured in fontconfig and it is unpredictable and >> unreproducible. > > It is FontConfig that does not, we just ask it for a list of fonts and > take whatever it gives us. > OK. I just was able to run xetex with --no-pdf and look which font was used. Anyway, fc-match always found the right font but xetex did not. I am not sure whether I will be able to reproduce it now. > Regards, > Khaled > > > -- > Subscriptions, Archive, and List information, etc.: > http://tug.org/mailman/listinfo/xetex -- Zdeněk Wagner http://hroch486.icpf.cas.cz/wagner/ http://icebearsoft.euweb.cz -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] wrong glyphs with FreeSerif Italic
On Fri, Dec 27, 2013 at 11:41:19AM +0100, Zdenek Wagner wrote: > The moral is that even XeTeX in TeX Live 2013 does not always obey the > search order configured in fontconfig and it is unpredictable and > unreproducible. It is FontConfig that does not, we just ask it for a list of fonts and take whatever it gives us. Regards, Khaled -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] wrong glyphs with FreeSerif Italic
2013/12/27 Julian Bradfield : > On 2013-12-27, Khaled Hosny wrote: >> On Thu, Dec 26, 2013 at 02:36:55PM +, Julian Bradfield wrote: >>> My xelatex version is >>> This is XeTeX, Version 3.1415926-2.3-0.9997.5 (TeX Live 2011) >>> (format=xelatex 20 >>> 12.11.27) >> >> There was a problem with old versions of XeTeX (probably < 0.9998) where >> having two different versions of the same font can lead to XeTeX using >> one to typeset the document while dvipdfmx is using the other to >> generate the PDF, which can lead to the shifted glyphs issue you see. > > Thank you very much! That was indeed the problem. > There were a bunch of 2010 Freefont files in the texmf directory, > while I'd put the 2012 files in the system directory. > I hadn't realized the old files were there. > After removing them, all is well. > > I understand kpathsea, but learning the interactions with fontconfig > is still to come! > If you need newer version of fonts than that distributed with TeX Live, you should remove the fonts from TeX Live. You can find my questions in the TeX Live list. The behaviour was so weird that no one was able to help me and finally I solved it myself. I configured fontconfig to use first fonts from my directory tree and then from TeX Live. It worked fine on my home computer but not on my office computer. After forced removal of the TeX Live fonts from the office computer it started to work. After updating some packages (TeX Live does not update binaries) it ceased to work on my home computer, I had to remove the TeX Live fonts. The moral is that even XeTeX in TeX Live 2013 does not always obey the search order configured in fontconfig and it is unpredictable and unreproducible. > > -- > Subscriptions, Archive, and List information, etc.: > http://tug.org/mailman/listinfo/xetex -- Zdeněk Wagner http://hroch486.icpf.cas.cz/wagner/ http://icebearsoft.euweb.cz -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] wrong glyphs with FreeSerif Italic
On 2013-12-27, Khaled Hosny wrote: > On Thu, Dec 26, 2013 at 02:36:55PM +, Julian Bradfield wrote: >> My xelatex version is >> This is XeTeX, Version 3.1415926-2.3-0.9997.5 (TeX Live 2011) >> (format=xelatex 20 >> 12.11.27) > > There was a problem with old versions of XeTeX (probably < 0.9998) where > having two different versions of the same font can lead to XeTeX using > one to typeset the document while dvipdfmx is using the other to > generate the PDF, which can lead to the shifted glyphs issue you see. Thank you very much! That was indeed the problem. There were a bunch of 2010 Freefont files in the texmf directory, while I'd put the 2012 files in the system directory. I hadn't realized the old files were there. After removing them, all is well. I understand kpathsea, but learning the interactions with fontconfig is still to come! -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] wrong glyphs with FreeSerif Italic
2013/12/27 Ross Moore : > > On 27/12/2013, at 9:39 AM, Zdenek Wagner wrote: > >> Sorry, I cannot reproduce it, there must be something wrong in your >> installation. I tried both with TeX Live 2011 and TeX Live 2013 and I >> get the expected result. > > Me too, with: > > This is XeTeX, Version 3.1415926-2.2-0.9997.4 (TeX Live 2010) > and > This is XeTeX, Version 3.1415926-2.4-0.9998 (TeX Live 2012) > > > With 2010 the font versions, as encoded in the font itself, are > FontForge 2.0 : Free Serif : 4-1-2009Version $Revision: 1.358 $ > FontForge 2.0 : Free Serif Italic : 4-1-2009 Version $Revision: 1.175 $ > 2009 version is too old, since that time a lot of bugs were fixed. > With 2012 the font versions, as encoded in the font itself, are > GNU: FreeSerif Normal: 2012 Version 0412.2263 > GNU: FreeSerif Italic: 2012 Version 0412.2268 > > > With the 2012 font, I get a lot of warnings about unsupported features; > viz. > I get the same warnings but correct output. The latest FreeFont from svn works without warnings. > * > * fontspec warning: "icu-feature-not-exist-in-font" > * > * OpenType feature 'Fractions=Off' (-frac) not available > * for font 'FreeSerif', > * with script 'Latin', and language 'Default'. > * > * > * fontspec warning: "icu-feature-not-exist-in-font" > * > * OpenType feature 'Fractions=Off' (-frac) not available > * for font 'FreeSerif', > * with script 'Latin', and language 'Default'. > * > * > * fontspec warning: "icu-feature-not-exist-in-font" > * > * OpenType feature 'Fractions=Off' (-frac) not available > * for font 'FreeSerif/B', > * with script 'Latin', and language 'Default'. > * > * > * fontspec warning: "icu-feature-not-exist-in-font" > * > * OpenType feature 'Fractions=Off' (-frac) not available > * for font 'FreeSerif/I', > * with script 'Latin', and language 'Default'. > * > * > * fontspec warning: "icu-feature-not-exist-in-font" > * > * OpenType feature 'Fractions=Off' (-frac) not available > * for font 'FreeSerif/BI', > * with script 'Latin', and language 'Default'. > * > * > * fontspec warning: "icu-feature-not-exist-in-font" > * > * OpenType feature 'Fractions=Off' (-frac) not available > * for font 'FreeSerif', > * with script 'Latin', and language 'Default'. > * > * > * fontspec warning: "icu-feature-not-exist-in-font" > * > * OpenType feature 'Fractions=Off' (-frac) not available > * for font 'FreeSerif', > * with script 'Latin', and language 'Default'. > * > * > * fontspec warning: "icu-feature-not-exist-in-font" > * > * OpenType feature 'Fractions=Off' (-frac) not available > * for font 'FreeSerif', > * with script 'Latin', and language 'Default'. > * > * > * fontspec warning: "icu-feature-not-exist-in-font" > * > * OpenType feature 'Fractions=Off' (-frac) not available > * for font 'FreeSerif', > * with script 'Latin', and language 'Default'. > * > > > >> >> 2013/12/26 Julian Bradfield : >>> This is probably FA, but I haven't found it by searching... >>> >>> I'm a first-time user of xelatex (but 30-year user of TeX in general), >>> and have used it to typeset a linguistic article with Charis SIL. I >>> then wanted to switch to GNU Freefont, and encountered the weird >>> symptom that all the glyphs are displaced by two codepoints in the >>> Italic version. >>> Here's a minimal example: >>> >>> \documentclass{article} >>> \usepackage{mathspec} >>> \setallmainfonts(Digits,Latin,Greek,Special)[Mapping=tex-text,Fractions=Off]{FreeSerif} >>> \begin{document} >>> ABCabc \it ABCabc >>> \end{document} >>> >>> >>> On processing, the PDF shows ABCabd CDEcde; the right character >>> metrics appear to have been used, but the glyphs are wrong. >>> >>> My xelatex version is >>> This is XeTeX, Version 3.1415926-2.3-0.9997.5 (TeX Live 2011) >>> (format=xelatex 20 >>> 12.11.27) >>> and the Freefont is the release of 20120503 (in either otf or ttf). > > Sorry, I don't have TeX Live 2011 installed, nor 2013. > Though I'd suspect the font itself for such a result. > > >> -- >> Zdeněk Wagner >> http://hroch486.icpf.cas.cz/wagner/ >> http://icebearsoft.euweb.cz > > > Hope this helps, > > Ross > > --
Re: [XeTeX] wrong glyphs with FreeSerif Italic
On Thu, Dec 26, 2013 at 02:36:55PM +, Julian Bradfield wrote: > My xelatex version is > This is XeTeX, Version 3.1415926-2.3-0.9997.5 (TeX Live 2011) (format=xelatex > 20 > 12.11.27) There was a problem with old versions of XeTeX (probably < 0.9998) where having two different versions of the same font can lead to XeTeX using one to typeset the document while dvipdfmx is using the other to generate the PDF, which can lead to the shifted glyphs issue you see. The easiest solution is to search the system for different copies of the font and making sure that only one version is accessible to XeTeX. Some thing like this should list all fonts with "free" in file name: fc-list --format="%{file}\n" | grep -i free Upgrading to the latest TeX Live should help as well (but generally it is a good idea to make sure only one version of any font is available to applications). Regards, Khaled -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] wrong glyphs with FreeSerif Italic
On 27/12/2013, at 9:39 AM, Zdenek Wagner wrote: > Sorry, I cannot reproduce it, there must be something wrong in your > installation. I tried both with TeX Live 2011 and TeX Live 2013 and I > get the expected result. Me too, with: This is XeTeX, Version 3.1415926-2.2-0.9997.4 (TeX Live 2010) and This is XeTeX, Version 3.1415926-2.4-0.9998 (TeX Live 2012) With 2010 the font versions, as encoded in the font itself, are FontForge 2.0 : Free Serif : 4-1-2009Version $Revision: 1.358 $ FontForge 2.0 : Free Serif Italic : 4-1-2009 Version $Revision: 1.175 $ With 2012 the font versions, as encoded in the font itself, are GNU: FreeSerif Normal: 2012 Version 0412.2263 GNU: FreeSerif Italic: 2012 Version 0412.2268 With the 2012 font, I get a lot of warnings about unsupported features; viz. * * fontspec warning: "icu-feature-not-exist-in-font" * * OpenType feature 'Fractions=Off' (-frac) not available * for font 'FreeSerif', * with script 'Latin', and language 'Default'. * * * fontspec warning: "icu-feature-not-exist-in-font" * * OpenType feature 'Fractions=Off' (-frac) not available * for font 'FreeSerif', * with script 'Latin', and language 'Default'. * * * fontspec warning: "icu-feature-not-exist-in-font" * * OpenType feature 'Fractions=Off' (-frac) not available * for font 'FreeSerif/B', * with script 'Latin', and language 'Default'. * * * fontspec warning: "icu-feature-not-exist-in-font" * * OpenType feature 'Fractions=Off' (-frac) not available * for font 'FreeSerif/I', * with script 'Latin', and language 'Default'. * * * fontspec warning: "icu-feature-not-exist-in-font" * * OpenType feature 'Fractions=Off' (-frac) not available * for font 'FreeSerif/BI', * with script 'Latin', and language 'Default'. * * * fontspec warning: "icu-feature-not-exist-in-font" * * OpenType feature 'Fractions=Off' (-frac) not available * for font 'FreeSerif', * with script 'Latin', and language 'Default'. * * * fontspec warning: "icu-feature-not-exist-in-font" * * OpenType feature 'Fractions=Off' (-frac) not available * for font 'FreeSerif', * with script 'Latin', and language 'Default'. * * * fontspec warning: "icu-feature-not-exist-in-font" * * OpenType feature 'Fractions=Off' (-frac) not available * for font 'FreeSerif', * with script 'Latin', and language 'Default'. * * * fontspec warning: "icu-feature-not-exist-in-font" * * OpenType feature 'Fractions=Off' (-frac) not available * for font 'FreeSerif', * with script 'Latin', and language 'Default'. * > > 2013/12/26 Julian Bradfield : >> This is probably FA, but I haven't found it by searching... >> >> I'm a first-time user of xelatex (but 30-year user of TeX in general), >> and have used it to typeset a linguistic article with Charis SIL. I >> then wanted to switch to GNU Freefont, and encountered the weird >> symptom that all the glyphs are displaced by two codepoints in the >> Italic version. >> Here's a minimal example: >> >> \documentclass{article} >> \usepackage{mathspec} >> \setallmainfonts(Digits,Latin,Greek,Special)[Mapping=tex-text,Fractions=Off]{FreeSerif} >> \begin{document} >> ABCabc \it ABCabc >> \end{document} >> >> >> On processing, the PDF shows ABCabd CDEcde; the right character >> metrics appear to have been used, but the glyphs are wrong. >> >> My xelatex version is >> This is XeTeX, Version 3.1415926-2.3-0.9997.5 (TeX Live 2011) >> (format=xelatex 20 >> 12.11.27) >> and the Freefont is the release of 20120503 (in either otf or ttf). Sorry, I don't have TeX Live 2011 installed, nor 2013. Though I'd suspect the font itself for such a result. > -- > Zdeněk Wagner > http://hroch486.icpf.cas.cz/wagner/ > http://icebearsoft.euweb.cz Hope this helps, Ross Ross Moore ross.mo...@mq.edu.au Mathematics Department office: E7A-206 Macquarie University tel: +61 (0)2 9850 8955 Sydney, Australia 2109 fax: +61 (0)2 9850 8114 --
Re: [XeTeX] wrong glyphs with FreeSerif Italic
Sorry, I cannot reproduce it, there must be something wrong in your installation. I tried both with TeX Live 2011 and TeX Live 2013 and I get the expected result. 2013/12/26 Julian Bradfield : > This is probably FA, but I haven't found it by searching... > > I'm a first-time user of xelatex (but 30-year user of TeX in general), > and have used it to typeset a linguistic article with Charis SIL. I > then wanted to switch to GNU Freefont, and encountered the weird > symptom that all the glyphs are displaced by two codepoints in the > Italic version. > Here's a minimal example: > > \documentclass{article} > \usepackage{mathspec} > \setallmainfonts(Digits,Latin,Greek,Special)[Mapping=tex-text,Fractions=Off]{FreeSerif} > \begin{document} > ABCabc \it ABCabc > \end{document} > > > On processing, the PDF shows ABCabd CDEcde; the right character > metrics appear to have been used, but the glyphs are wrong. > > My xelatex version is > This is XeTeX, Version 3.1415926-2.3-0.9997.5 (TeX Live 2011) (format=xelatex > 20 > 12.11.27) > and the Freefont is the release of 20120503 (in either otf or ttf). > > > -- > Subscriptions, Archive, and List information, etc.: > http://tug.org/mailman/listinfo/xetex -- Zdeněk Wagner http://hroch486.icpf.cas.cz/wagner/ http://icebearsoft.euweb.cz -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] wrong glyphs with FreeSerif Italic
HI Julian, I'm the maintainer of GNU FreeFont. This is the first I've ever heard of such an issue, and I have no idea what might cause it. I just tried your example on my system with the most recent development version of the font--the effect you describe doesn't happen. Tomorrow I'll try it with the 2012 version. Could you provide a PDF? On Thu, Dec 26, 2013 at 3:36 PM, Julian Bradfield wrote: > This is probably FA, but I haven't found it by searching... > > I'm a first-time user of xelatex (but 30-year user of TeX in general), > and have used it to typeset a linguistic article with Charis SIL. I > then wanted to switch to GNU Freefont, and encountered the weird > symptom that all the glyphs are displaced by two codepoints in the > Italic version. > Here's a minimal example: > > \documentclass{article} > \usepackage{mathspec} > \setallmainfonts(Digits,Latin,Greek,Special)[Mapping=tex-text,Fractions=Off]{FreeSerif} > \begin{document} > ABCabc \it ABCabc > \end{document} > > > On processing, the PDF shows ABCabd CDEcde; the right character > metrics appear to have been used, but the glyphs are wrong. > > My xelatex version is > This is XeTeX, Version 3.1415926-2.3-0.9997.5 (TeX Live 2011) (format=xelatex > 20 > 12.11.27) > and the Freefont is the release of 20120503 (in either otf or ttf). > > > -- > Subscriptions, Archive, and List information, etc.: > http://tug.org/mailman/listinfo/xetex -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
[XeTeX] wrong glyphs with FreeSerif Italic
This is probably FA, but I haven't found it by searching... I'm a first-time user of xelatex (but 30-year user of TeX in general), and have used it to typeset a linguistic article with Charis SIL. I then wanted to switch to GNU Freefont, and encountered the weird symptom that all the glyphs are displaced by two codepoints in the Italic version. Here's a minimal example: \documentclass{article} \usepackage{mathspec} \setallmainfonts(Digits,Latin,Greek,Special)[Mapping=tex-text,Fractions=Off]{FreeSerif} \begin{document} ABCabc \it ABCabc \end{document} On processing, the PDF shows ABCabd CDEcde; the right character metrics appear to have been used, but the glyphs are wrong. My xelatex version is This is XeTeX, Version 3.1415926-2.3-0.9997.5 (TeX Live 2011) (format=xelatex 20 12.11.27) and the Freefont is the release of 20120503 (in either otf or ttf). -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex