![]() Registered Member ![]()
|
Question 1
KDE System Settings -> Font -> Fonts shows the settings for "General" (Sans Serif 10), "Fixed width" (Monospace 10), "Small" (Sans Serif ![]() I want to know exactly which font file is being used for each of these. Looking at General, which is "Sans Serif 10", I head over to "Font Management" and see no font group "Sans Serif". I want another machine to look like this one does, but I have no files in /usr/share/fonts that just say "Sans Serif", and Font Management shows no font names just called "Sans Serif". Question 2 I installed Fedora 22 minimal, and later installed 15 font packages. I didn't choose these exactly, I performed "sudo dnf install @fonts --exclude paktype* --exclude lohit* --exclude thai* --exclude jomolhari* --exclude vlgothic* --exclude smc* --exclude sil* --exclude paratype* --exclude lklug* --exclude khmeros* --exclude adobe-source* --exclude naver* --exclude tabish*", excluding ones not needed. So, the ones installed were: (1) abattis-cantarell-fonts; (2) dejavu-sans-fonts; (3) dejavu-sans-mono-fonts; (4) dejavu-serif-fonts; (5) gnu-free-mono-fonts; (6) gnu-free-sans-fonts; (7) gnu-free-serif-fonts; (8) google-noto-sans-lisu-fonts; (9) google-noto-sans-mandaic-fonts; (10) google-noto-sans-tagalog-fonts; (11) google-noto-sans-tai-tham-fonts; (12) google-noto-sans-tai-viet-fonts; (13) liberation-mono-fonts; (14) liberation-sans-fonts; and (15) liberation-serif-fonts; stix-fonts. 6 of these easily match up their installed files against what shows up in KDE System Settings -> Font -> Font Management. What I view for abattis-cantarell-fonts, dejavu-serif-fonts, gnu-free-sans-fonts, gnu-free-serif-fonts, liberation-sans-fonts, and stix-fonts nicely match up. Fonts->Choose shows font names paralleling the package names and the font names in Font Management. There are 2, 8, 3, 4, 4, and 4 font files installed by each package respectively, and that matches how many font styles each of those fonts shows in Font->Choose and Font Management where it says "Font name [NUMBER OF STYLES]", which you can expand out to see each style. Then, the rest make no sense. As shown below, I have 34 font files that aren't identifiable in Fonts->Choose or Font Management. I have 9 font-styles in Fonts->Choose that don't appear to correspond to installed font files and aren't in Font Management. And, I have 4 font-styles in Font Management that don't appear to correspond to installed font files and aren't in Fonts->Choose. What's going on? There are 34 font-styles installed (in 11 font packages) that don't match up with what I see in Fonts->Choose or Font Management:
There are 3 fonts (9 font-styles) in Fonts->Choose that don't correspond to unmatched filenames listed above, and these font names don't even show up in Font Management:
And, finally, there are 4 font-styles in Font Management that I don't see filenames for, and don't show up in Fonts->Choose:
|
![]() ![]()
|
There're more font path than /usr/share/fonts, also this is not organized by subdirs but font metadata. Oxygen is installed to /usr/share/fonts/TTF/Oxygen* here, but as mentioned, it could be in *random* other locations on your side (paths are freely configurable for the X11 server/fontconfig)
Noto-sans seems google noto. To see a font/file mapping, run "fc-list" (in konsole) Sans, sans serif & mono are generic aliases to systemwide configured fonts. If you want to use a specific font across alls systems, either don't choose them (eg. ubuntu will have another font aliased than fedora) or resolve them to the same actual font on all systems. (/etc/fonts resp. ~/.config/fontconfig - the configutration file will contain some "prefer" tag.) |
![]() Registered Member ![]()
|
Thanks!
How do I figure out which font file is being used for the generic "Monospace" alias? fc-list shows 30 files, but fc-list | grep -I monospace shows nothing. fc-match --all shows 30 files, but likewise, fc-match | grep -I monospace shows nothing. ls -la ~/.config | grep font shows nothing. (No ~/.config/fontconfig) /etc/fonts.conf lists font directories, accepts deprecated aliases, and points to /etc/fonts/conf.d. /etc/fonts/conf.d/60-latin.conf is an XML file with element alias, with child family ("monospace") and prefer families ("Bitstream Vera Sans Mono", "DejaVu Sans Mono", "Incolsolata", "Andale Mono", "Courier New", "Cumberland AMT", "Luxi Mono", "Nimbus Mono L", Nimbus Mono", and "Courier"). /etc/fonts/conf.d/61-oxygen-mono.conf has child family ("monospace") and prefer family ("Oxygen Mono"). /etc/fonts/conf.d/69-gnu-free-mono has child family ("monospace") and prefer family ("FreeMono"). /etc/fonts/conf.d/69-unifont.conf has child family ("monospace") and prefer family ("FreeMono"). Now, in this case, the only prefer family quoted above that is installed is "Oxygen Mono" (in OxygenMono-Regular.ttf), so the system must be using that font. But, what if some of the other prefer families were installed? Is there a command that lets you see what a generic system alias like "Monospace" is mapped to? I only see fc-{cache, cat, list, match, pattern, query, scan, and validate} on my system, and the only two that looks like they might perform this (list, match) don't seem to have this feature. |
![]() ![]()
|
> Is there a command that lets you see what a generic system alias like "Monospace" is mapped to?
it's actually as simple as "fc-match monospace" |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]