Bug 1278049
Summary: | Default search directories do not include the location of TeX Live fonts | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Dimitrios Christidis <dimitrios> |
Component: | texlive | Assignee: | Tom "spot" Callaway <tcallawa> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | fonts-bugs, i18n-bugs, novyjindrich, pnemade, tagoh, tcallawa, than |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-01-22 21:23:16 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Dimitrios Christidis
2015-11-04 15:42:35 UTC
The problem is in texlive, which is not following Fedora packaging guidelines. They would ensure its fonts are properly published in fontconfig, app install, etc https://fedoraproject.org/wiki/Packaging:FontsPolicy It seems that I was also mistaken on the date of addition; the OTF files have been present for quite some time. I never noticed because fontspec would not find the fonts automatically. Am I using them in a wrong way? If so, this bug might be invalid. Nevertheless, I think it would be useful to make those fonts available to all applications. You're not using it the wrong way, it's texlive that installs its fonts for historical reasons in private locations no other software will look in. It used to annoy everyone but TEX users. However nowadays TEX is migrating to text engines that look for fonts in the same places as everyone else (because TEX users want to use the nice unicode opentype fonts available in standard locations), so now TEX warts are hitting TEX users too. The solution is to install TEX opentype fonts in standard locations fontconfig/rpm/etc look for them, as required by Fedora packaging guidelines. I'm worried that I'll break TeX (a much older and scarier system) by moving their fonts into unexpected locations, even if those locations are more reasonable for the rest of the world. Would a good compromise be to make symlinks to the OTF font files in /usr/share/fonts/%{name} (%{_fontdir}) in the texlive packages? That should works. but we need to do this change carefully so that this would means we'll see more fonts installed by default from POV of fontconfig. it may have a side-effect and gives different looks to users. (In reply to Akira TAGOH from comment #5) > That should works. but we need to do this change carefully so that this > would means we'll see more fonts installed by default from POV of > fontconfig. it may have a side-effect and gives different looks to users. I don't see a good way to avoid the side effects except being careful with font aliasing. And the aliasing can not be adjusted before fonts are actually there. But the fonts (at least all the otf and ttf ones) need to move to /usr/share/fonts/something since people (and apps) now expect this location, even though all of them have not realized yet what fontconfig is. All kind of apps poke in /usr/share/fonts directly nowadays without using system fontconfig. If you look at font questions on stackoverflow the standard answer now is to put fonts there, not to run xfs like people answered just a few years ago. spot has the right transitional answer, though determining when to get rid of the compat symlinks is going to be tricky. (In reply to Nicolas Mailhot from comment #6) > I don't see a good way to avoid the side effects except being careful with > font aliasing. And the aliasing can not be adjusted before fonts are > actually there. Right. well, was just a reminder to pay more attentions on this change. > spot has the right transitional answer, though determining when to get rid > of the compat symlinks is going to be tricky. Indeed. ideally it would be good to move the fonts under /usr/share/fonts without symlinks. need to test it carefully anyway. I noticed that the GFS and Linux Libertine fonts (and possibly others) have a separate package that installs the OTF files in /usr/share/fonts. Would this be a safer solution? (In reply to Dimitrios Christidis from comment #8) > I noticed that the GFS and Linux Libertine fonts (and possibly others) have > a separate package that installs the OTF files in /usr/share/fonts. Would > this be a safer solution? The otf package for those fonts conforms to Fedora font packaging guidelines I'm going to commit the symlink changes into rawhide's texlive. If there are conflicts or mistakes, please test there and let me know. The following texlive subpackages are affected: accanthis almfixed antt asana-math baskervaldx berenisadf cabin ccicons cm-unicode comicneue cyklop dantelogo drm ebgaramond erewhon fandol fbb fdsymbol fetamont fira fontawesome gfsartemisia gfsbaskerville gfsbodoni gfscomplutum gfsdidot gfsneohellenic gfsporson gfssolomos gillius gnu-freefont heuristica inconsolata iwona kurier libertine librebaskerville librecaslon lm lm-math lobster2 mdsymbol mintspirit mnsymbol newpx ocr-b-outline oldstandard phaistos philokalia playfair poltawski punknova quattrocento raleway semaphor skaknew sourcecodepro sourcesanspro sourceserifpro stix tex-gyre tex-gyre-math umtypewriter universalis xcharter xits This is now "fixed" in texlive-2015-21.20150728_r37987.fc24. |