font installation
Zdenek Wagner
zdenek.wagner at gmail.com
Thu Jun 20 12:07:14 CEST 2024
čt 20. 6. 2024 v 11:21 odesílatel Norbert Preining <norbert at preining.info>
napsal:
> Hi Peter, hi Zdenek,
>
> On Thu, 20 Jun 2024, Peter Flynn wrote:
> > > fc-cache is not called from cron, fontconfig does it itself via
> triggers
> > > as Norbert wrote.
> >
> > Ah, right, thanks. On this system, installing a TT/OT font by
> right-clicking
>
> Hmm, actually, I don't know how that works with fontconfig triggers. I
> am rather surprised, honestly.
>
> > and picking Open With > Fonts installs the font into
> ~/.local/share/fonts.
> > The font works in LibreOffice and in XeLaTeX.
>
> I assume that the file browser you used called fc-cache in the
> background.
>
> Honestly, I don't see fc-cache running automatically.
>
> You can test it easily by simply **copying** on the command line fonts
> to ~/.local/share/fonts and see whether they are available after a few
> min. I would be surprised (will try it out later myself, but need to
> tend to other issues now)
>
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 /usr/local/texlive/current/bin/x86_64-linux. If I decide
to change 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):
07-zwfonts.conf -> /usr/local/zwfonts/conf/zwfonts-fontconfig.conf
08-texmflocal.conf ->
/usr/local/texlive/texmf-local/fonts/conf/texmf-local-fontconfig.conf
09-texlive.conf ->
/usr/local/texlive/current/texmf-var/fonts/conf/texlive-fontconfig.conf
"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
ln -s 2024 current
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.
>
> > > XeTeX is somewhat special, it can use all system fonts without any Map
> > > file.
> >
> > Ideal, that's what I had concluded.
>
> It uses the fontconfig system to get fonts, so everything that is
> registered with fontconfig will be available to xetex
>
> > But if users get non-TL Type 1 fonts from elsewhere, they will still
> need to
> > use fontinst and go through the afm2tfm and vp2vf route and create the
> Map
> > file; or can XeLaTeX also use .pfb files without it?
>
> No.
>
> > What do people on Windows do without these utilities? I assume they
> exist on
> > Macs.
>
> No idea. I think we ship libfontconfig on Windows and there are some
> tooling, but I don't know the specifics.
> Mac - don't ask me, I have used it for years and still don't understand
> how this ....load of OS is actually working. Good Hardware, horrible
> Software.
>
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.
>
> Best regards
>
> Norbert
>
>
Zdeněk Wagner
https://www.zdenek-wagner.eu/
> --
> PREINING Norbert https://www.preining.info
> arXiv / Cornell University + IFMGA Guide + TU Wien + TeX Live
> GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex-live/attachments/20240620/33406a6c/attachment.htm>
More information about the tex-live
mailing list.