Summary: | print/texlive-base: TeXLive does not register opentype fonts for use by fontspec | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Roger Leigh <rleigh> | ||||||||
Component: | Individual Port(s) | Assignee: | Tex Mailing List (Nobody) <tex> | ||||||||
Status: | Closed Feedback Timeout | ||||||||||
Severity: | Affects Only Me | CC: | berend, bofh, jan.kokemueller, w.schwarzenfeld | ||||||||
Priority: | Normal | ||||||||||
Version: | Latest | ||||||||||
Hardware: | Any | ||||||||||
OS: | Any | ||||||||||
Attachments: |
|
Description
Roger Leigh
2014-03-09 20:40:01 UTC
Responsible Changed From-To: freebsd-ports-bugs->hrs Over to maintainer (via the GNATS Auto Assign Tool) Created attachment 159959 [details]
Example configuration to register OpenType fonts.
Example configuration to register OpenType fonts. If this is dropped into /usr/local/etc/fonts/fonts/conf.d and "fc-cache -frsv" is run, it will register all texlive-provided OpenType fonts. The same thing could be done for TrueType and/or Type 1 fonts if desired.
If for example, the package providing the opentype directory under texmf/fonts could provide this file, and all packages providing fonts could run fc-cache, this would mean the texlive-provided fonts would work out of the box with e.g xetex/xelatex.
Note I'm not sure if this is the proper place for the file in the fontconfig sequence (46), but it works for me. Not clear if this is solved. If it is so, please close the PR. I've reopened this because it's still present and unaddressed (just checked to confirm). Not sure why it was closed given that it's clearly still present based on the information provided here. TeXLive needs to install a font configuration file into /usr/local/fonts/conf.d so that xetex can find the tex fonts via fontconfig. I provided an example file right here as an attachment. That's all that's needed to resolve this--just install this as part of the appropriate package (likely the one containing the opentype fonts). Created attachment 189878 [details]
Patch to fix install issue
Thanks for providing all I needed to create this patch! Please check it out.
Sorry, I erronousely closed it. Created attachment 189965 [details]
Updated patch to add fontconfig support
I found a few problems with the original patch (INSTALL_DATA used where INSTALL is needed; config file not included, etc.), so this patch contains everything I needed to successfully build and install the updated texlive-base (tested with poudriere).
Note that followup work includes:
- fc-cache needs running as a post-install step for each tex package providing opentype fonts
- tex-xetex is missing a dependency on tex-dvipdfmx which is required to create PDFs with the correct fonts using xelatex; without it fonts are missing from the created PDF
The tex-xetex issue was already reported in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=187403 TeX system has been updated to 2021. Please check if the issue still persists after update. |