When I enter Garamond as a Font in Libreoffice, I get a nice font which is not listed in the installed fonts. Actually, as Garamond is a paid font, the one displayed on screen is a fallback font. I would like to know how to determine which font is used as a fallback by Ubuntu/Libreoffice. I would also like to find the .ttf file of this font
I would like to know by the way what are the fonts that support natively all Unicodes from Latin Extended Characters.
system used:
- Ubuntu 18.04
- Libreoffice 6.0.7.3
On the image bellow, you can see that Garamond is recognised, and displayed in the first paragraph. But it is actually a fallback font.
remarks - what I have already tried
This question has already been asked a number of times but all the answers are general and don't provide a satisfying answer.
- archlinux wiki - The "Garamond No. 8" is not the one I can see.
- Libre Writer recognises 'Garamond' font... - I have tested EB-Garamont and FreeSerif as proposed but it's still not the font I'm looking for. And I don't want to set up a fallback font on Tools > Options > Fonts.
- OpenOffice (not LibreOffice) font fallback I tried what is written with no success.
- I have actually to look at the .ttf file directly on linux. I tried with
fc-list
,fc-list | grep "garamond"
and by direct explorations of the directories and config files such ascat fonts.alias | grep "mo"
,cd /usr/share/fonts
with no success. This is comprehensible since I'm not actually looking for the true garamond.ttf file but for its fallback font. - I have been searching for fallback font config files. I couldn't find a
VCL.xcu
file (which is for OpenOffice, not LibreOffice). Thefonts.alias
doesn't provide the info I'm looking for. - How to locate font on Ubuntu Was helpful but the
fonts.conf
file doesn't provides the info I want. - Libre Office shows Garamond but font manager doesn't A very similar question but the 2 answers are not relevant to my problem.
edit 1
Here is what is proposed by @Rinzwind :
❮ onyr ★ kenzae❯ ❮ aedoras❯❯ unzip -p garamond_pure.odt styles.xml | xmllint --format - | grep "font-face style:name" | sort -u
I/O error : Permission denied
I/O error : Permission denied
<style:font-face style:name="Garamond" svg:font-family="Garamond" style:font-family-generic="roman"/>
<style:font-face style:name="Liberation Sans" svg:font-family="'Liberation Sans'" style:font-family-generic="swiss" style:font-pitch="variable"/>
<style:font-face style:name="Liberation Serif" svg:font-family="'Liberation Serif'" style:font-family-generic="roman" style:font-pitch="variable"/>
<style:font-face style:name="Lohit Devanagari1" svg:font-family="'Lohit Devanagari'"/>
<style:font-face style:name="Lohit Devanagari" svg:font-family="'Lohit Devanagari'" style:font-family-generic="system" style:font-pitch="variable"/>
<style:font-face style:name="Noto Sans CJK SC" svg:font-family="'Noto Sans CJK SC'" style:font-family-generic="system" style:font-pitch="variable"/>
It gives back a list of fonts used in the .odt document. However the font I want it still written "Garamond" even if what I want is its fallback. I'm going to try the other part of the answer.
For the second method :
Definition of the font default table for your language requires the modification of the file officecfg/registry/data/org/openoffice/VCL.xcu in the source code. The individual VCL.xcu file cannot be found in the installed product. Its contents are merged into /share/registry/main.xcd (where is the directory in which LibreOffice is installed).
I don't know what to do with officecfg. I can't find the /registry directory where my LibreOffice is installed. What should I do ?
❮ onyr ★ kenzae❯ ❮ share❯❯ ls -alt
total 12
drwxr-xr-x 6 root root 4096 sept. 28 2019 ..
drwxr-xr-x 2 root root 4096 sept. 28 2019 config
drwxr-xr-x 3 root root 4096 juil. 25 2018 .