[Bug 680739] New: Texlive's copy of freefonts conflicts with the one from package freefont
https://bugzilla.novell.com/show_bug.cgi?id=680739 https://bugzilla.novell.com/show_bug.cgi?id=680739#c0 Summary: Texlive's copy of freefonts conflicts with the one from package freefont Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: i686 OS/Version: SuSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: auxsvr@yahoo.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (compatible; Konqueror/4.6) KHTML/4.6.0 (like Gecko) SUSE There are two different copies of freefont when both texlive and freefont are installed, one in /usr/share/texmf/fonts/truetype/public/gnu-freefont/ and another in /usr/share/texmf/fonts/truetype/. Them being different leads to spurious error messages when running xelatex on a file that uses the fonts: ** ERROR ** Invalid glyph index (gid 2447) Output file removed. and the cause is mentioned in [1] and may be verified by simply replacing the texlive copy with symlinks to the freefont package files. Another problem with the texlive copy is that xelatex files that would render perfectly with the previous version in oS 11.3 now display corrupted freefont glyphs, if the freefont package is removed. Installing the freefont package and replacing texlive's copy of freefont with symlinks, as described previously, fixes this also. [1] http://www.mail-archive.com/xetex@tug.org/msg03025.html Reproducible: Always Steps to Reproduce: 1.Install both texlive and freefont packages. 2.Attempt to invoke xelatex on a file that uses the freefont. Actual Results: Xelatex aborts with the aforementioned error message and deletes the resulting PDF file. Expected Results: Xelatex produces a PDF file with correct glyphs. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=680739 https://bugzilla.novell.com/show_bug.cgi?id=680739#c zj jia <zjjia@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@novell.com AssignedTo|bnc-team-screening@forge.pr |werner@novell.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=680739 https://bugzilla.novell.com/show_bug.cgi?id=680739#c1 --- Comment #1 from John McManaman <auxsvr@yahoo.com> 2011-03-18 07:37:16 UTC --- I should add that the problem also involves the freefont opentype files in /usr/share/texmf/fonts/opentype/public/gnu-freefont. In this case though, I need to remove the files, as freefont doesn't include the opentype version. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=680739 https://bugzilla.novell.com/show_bug.cgi?id=680739#c2 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |auxsvr@yahoo.com --- Comment #2 from Dr. Werner Fink <werner@novell.com> 2011-03-18 08:42:52 UTC --- OK ... now what should I do? I'm not the author of TeXLive nor of Xe(La)TeX. You, as user, could try to edit the configuration file /etc/fonts/conf.avail/09-texlive.conf e.g. to remove of comment out (by using <!-- at the start of a line and --> at the end of a line): <dir>/usr/share/texmf/fonts/truetype</dir> to see waht happens. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=680739 https://bugzilla.novell.com/show_bug.cgi?id=680739#c3 John McManaman <auxsvr@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|auxsvr@yahoo.com | --- Comment #3 from John McManaman <auxsvr@yahoo.com> 2011-03-18 09:47:38 UTC --- This works indeed, thanks. However, I need to exclude a specific subdirectory and I'm not familiar with the syntax of /etc/fonts/conf.avail/09-texlive.conf. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=680739 https://bugzilla.novell.com/show_bug.cgi?id=680739#c4 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Platform|i686 |All Resolution| |FIXED --- Comment #4 from Dr. Werner Fink <werner@novell.com> 2011-05-13 11:40:09 UTC --- Fixed for next openSUSE release -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=680739 https://bugzilla.novell.com/show_bug.cgi?id=680739#c5 John McManaman <auxsvr@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #5 from John McManaman <auxsvr@yahoo.com> 2011-10-22 13:08:00 UTC --- Just tested texlive-xetex-2010-12.9.noarch from factory, and I have the same problem again. Commenting out the line <dir>/usr/share/texmf/fonts/opentype</dir> in /etc/fonts/conf.d/09-texlive.conf fixes it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=680739 https://bugzilla.novell.com/show_bug.cgi?id=680739#c6 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO InfoProvider| |auxsvr@yahoo.com --- Comment #6 from Dr. Werner Fink <werner@suse.com> 2011-10-24 07:55:31 UTC --- The directory /usr/share/texmf/fonts/opentype does not include the truetype fonts ... as without the opentype entry the XeLaTeX engine will not work correct I'd like to ask if your initial bug report is really correct? Also in comment you've said that you commented out the truetype fonts and not the opentype fonts. Beside this you may try out TeXLive 2011 from http://download.opensuse.org/repositories/Publishing/openSUSE_Factory -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=680739 https://bugzilla.novell.com/show_bug.cgi?id=680739#c7 John McManaman <auxsvr@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED InfoProvider|auxsvr@yahoo.com | --- Comment #7 from John McManaman <auxsvr@yahoo.com> 2011-10-24 13:10:00 UTC --- Just tested this again with texlive-2010-12.9 from factory (oS 12.1 RC). If I add <dir>/usr/share/texmf/fonts/truetype</dir> in /etc/fonts/conf.d/09-texlive.conf, then no PDF file is produced, therefore the original bug report is valid. If <dir>/usr/share/texmf/fonts/opentype</dir> is not commented out, then the resulting PDF file has wrong glyphs in some cases, as viewed in okular, evince or acroread. If <dir>/usr/share/texmf/fonts/opentype</dir> is commented out, then everything is fine. This matches comment 1. I also searched for duplicate freefont otf files and none was found. I'll check TeXLive 2011 later. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=680739 https://bugzilla.novell.com/show_bug.cgi?id=680739#c8 --- Comment #8 from Dr. Werner Fink <werner@suse.com> 2011-10-24 14:09:17 UTC --- Just one remark: I'll not remove nor comment out the opentype font directory as in this case XeTeX will not work correct (compare with bug #588156) As /etc/fonts/conf.d/09-texlive.conf is part of texlive-xetex there should be no problems for all user which do not install texlive-xetex. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=680739 https://bugzilla.novell.com/show_bug.cgi?id=680739#c9 --- Comment #9 from John McManaman <auxsvr@yahoo.com> 2011-10-24 16:20:30 UTC --- What about marking texlive-xetex as conflicting with package freefont and every other font package, if the font in the package is also in texlive-xetex? Other fonts that should conflict like freefont are cm-unicode, LinuxLibertine and stix, although I haven't tested this. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=680739 https://bugzilla.novell.com/show_bug.cgi?id=680739#c10 --- Comment #10 from Dr. Werner Fink <werner@suse.com> 2011-10-25 08:58:09 UTC --- In other words users of XeTeX would be not allowed to use freefont ... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=680739 https://bugzilla.novell.com/show_bug.cgi?id=680739#c11 --- Comment #11 from John McManaman <auxsvr@yahoo.com> 2011-10-25 15:54:38 UTC --- Here are some observations with package freefont removed: 1. Having both lines <dir>/usr/share/texmf/fonts/truetype</dir> <dir>/usr/share/texmf/fonts/opentype</dir> in /etc/fonts/conf.d/09-texlive.conf makes the resulting PDF file have wrong or corrupted glyphs in some cases. 2. Fontmatrix lists two entries for each shape of the freefont family, one for the truetype font and another for the opentype one. 3. Removing either one (not both) of the aforementioned lines makes the resulting PDF file look fine, while freefont remains available for other uses; for example using freefont in oowriter works fine. Therefore, the following are safe to conclude: texlive becomes confused, because multiple copies of freefont are available. In order to make only one available, we need to set only one of /usr/share/texmf{true,open}type available and set texlive in conflict with freefont. This is in accordance with the original report and the link provided. One thing that confuses me is that the documentation of texlive suggests the presence of both the opentype and the freetype lines, although I never managed to make this work. Feel free to ask for more information, minimal examples etc. I may be busy for a couple of days, though. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=680739 https://bugzilla.novell.com/show_bug.cgi?id=680739#c12 --- Comment #12 from Dr. Werner Fink <werner@suse.com> 2011-10-25 17:02:07 UTC --- Sorry but I can not do that, I need a solution for both xetex and system fonts otherwise I'll beaten by other bug reports that xetex does not find the fonts below /usr/share/texmf/fonts/ Please make a report on texlive@tug.org (see my message with the ID <20111025115644.GA18112@boole.suse.de>) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=680739 https://bugzilla.novell.com/show_bug.cgi?id=680739#c13 --- Comment #13 from John McManaman <auxsvr@yahoo.com> 2011-10-28 09:50:48 UTC --- A cleaner workaround for the case of conflicting OTF-TTF versions of gnu-freefont is to define the font by its filename, which implies that one should also define the bold and italic shapes explicitly. I suppose one could use the full path to the font to work around the problem with the freefont package as well, but it would make the .tex file system-dependent. In my humble opinion, the solution in this case is to mark the package xetex as conflicting with package freefont. Making available both OTF and TTF copies of the same font via fontconfig has the disadvantage of potentially causing problems with other applications too. However, this is the choice of the texlive maintainer, and I see no way to avoid the problem unless this changes. See http://thread.gmane.org/gmane.comp.tex.live/30393/focus=30406 for more details. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=680739 https://bugzilla.novell.com/show_bug.cgi?id=680739#c14 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |UPSTREAM --- Comment #14 from Dr. Werner Fink <werner@suse.com> 2012-10-17 10:14:17 UTC --- This has to fixed upstream ... in the meanwhile I've tried to avoid this. For the new TeXLive 2012 from the project the fonts will be enabled by default using fc-cache(1) utility and also a file /etc/fonts/conf.d/58-<name>.conf is installed to be able to disable exactly the installed fonts from fontconfig. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com