<div dir="ltr">čt 20. 6. 2024 v 11:21 odesílatel Norbert Preining <<a href="mailto:norbert@preining.info">norbert@preining.info</a>> napsal:<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Peter, hi Zdenek,<br>
<br>
On Thu, 20 Jun 2024, Peter Flynn wrote:<br>
> > fc-cache is not called from cron, fontconfig does it itself via triggers<br>
> > as Norbert wrote.<br>
> <br>
> Ah, right, thanks. On this system, installing a TT/OT font by right-clicking<br>
<br>
Hmm, actually, I don't know how that works with fontconfig triggers. I<br>
am rather surprised, honestly.<br>
<br>
> and picking Open With > Fonts installs the font into ~/.local/share/fonts.<br>
> The font works in LibreOffice and in XeLaTeX.<br>
<br>
I assume that the file browser you used called fc-cache in the<br>
background.<br>
<br>
Honestly, I don't see fc-cache running automatically.<br>
<br>
You can test it easily by simply **copying** on the command line fonts<br>
to ~/.local/share/fonts and see whether they are available after a few<br>
min. I would be surprised (will try it out later myself, but need to<br>
tend to other issues now)<br></blockquote><div><br></div><div>I am a "black window man". I install fonts from other sources just by unpacking or copuing them into the right directory known to fontconfig and fc-cach just happens automatically. I do not know exactly how it happens but fc-cache is run automatically by root. I fact, I have quite a complex system because I need (sometimes just for testin purposes) many versions of TL thus I have almost everything since 2007. Then I have /usr/local/textlive/current as a symlink to the currently used version and my PATH contains <span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">/usr/local/texlive/current/bin/x86_64-linux. If I decide to change </span>it, I change the symlink, but for temporary modification I manipulate PATH within the terminal. My /etc/fonts/conf.d contains the following symlinks (I have a collection of commercial fonts and free fonts downloaded from elsewhere):</span></div><div><span style="font-family:monospace"><br></span></div><div>07-zwfonts.conf -> /usr/local/zwfonts/conf/zwfonts-fontconfig.conf<br>08-texmflocal.conf -> /usr/local/texlive/texmf-local/fonts/conf/texmf-local-fontconfig.conf<br>09-texlive.conf -> /usr/local/texlive/current/texmf-var/fonts/conf/texlive-fontconfig.conf</div><div><br></div><div>"current" in the middle of the names works fine as the symlink. And when (after I complete important work) remove current (it is now symlinked to 2023) and issue</div><div><br></div><div>ln -s 2024 current</div><div><br></div><div>then as always before fc-cache will update the font cache automatically. In the past fc-cache was needed but now fontconfig takes care. You will need fc-cache if the font system gets corrupted for some reason.<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> > XeTeX is somewhat special, it can use all system fonts without any Map<br>
> > file.<br>
> <br>
> Ideal, that's what I had concluded.<br>
<br>
It uses the fontconfig system to get fonts, so everything that is<br>
registered with fontconfig will be available to xetex<br>
<br>
> But if users get non-TL Type 1 fonts from elsewhere, they will still need to<br>
> use fontinst and go through the afm2tfm and vp2vf route and create the Map<br>
> file; or can XeLaTeX also use .pfb files without it?<br>
<br>
No.<br>
<br>
> What do people on Windows do without these utilities? I assume they exist on<br>
> Macs.<br>
<br>
No idea. I think we ship libfontconfig on Windows and there are some<br>
tooling, but I don't know the specifics.<br>
Mac - don't ask me, I have used it for years and still don't understand<br>
how this ....load of OS is actually working. Good Hardware, horrible<br>
Software.<br></blockquote><div><br></div><div>I still do not know how to work with fonts on Mac, it sometimes works with symlinks, sometimes not. The old models of Raspberry have low power consumption so that they can be powered frm Macbook's USB and connected via an ethernet cable (Macbook detects the polarity so you do not care which type to use). My Raspberries are configured to get the IP address from DHCP thus I configured the DHCP server on Mac but only on ethernet, not on WiFi. Thus I know how to find the IP address of the Raspberry and can ssh to it. I have a SSH server running on Mac thus when I am on the Raspberry, I can mount a directory from the Mac via sshfs. I thus run TeX on the Raspberry using the mounted directory and use a text editor and PDF viewver on the Mac. And all my fonts are in texmf-local and due to limited space, I have only one version of TL on the Raspberry. My texmf-local is on my subversion server. Thus I install the fonts into texmf-local on one of my Linux computers, do "svn ci" and after "svn up" on the Raspberry fc-cache just happens and the fonts are known to Xe(La)TeX. I do not know how it works internaly but it works. <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Best regards<br>
<br>
Norbert<br>
<br></blockquote><div><div dir="ltr"><br clear="all"><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Zdeněk Wagner</div><div><a href="https://www.zdenek-wagner.eu/" target="_blank">https://www.zdenek-wagner.eu/</a></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr"><br></div></div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
--<br>
PREINING Norbert <a href="https://www.preining.info" rel="noreferrer" target="_blank">https://www.preining.info</a><br>
arXiv / Cornell University + IFMGA Guide + TU Wien + TeX Live<br>
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13<br>
</blockquote></div></div>