Sponsored Content
Operating Systems Linux How do we change the default font on Linux system? Post 303042357 by mohtashims on Sunday 22nd of December 2019 11:59:52 AM
Old 12-22-2019
Here you go:

Code:
[root@vultr lyx]# ls -l /usr/share/fonts/lyx/
total 392
-rw-r--r-- 1 root root  20688 May 28  2017 cmex10.ttf
-rw-r--r-- 1 root root  32036 May 28  2017 cmmi10.ttf
-rw-r--r-- 1 root root  26188 May 28  2017 cmr10.ttf
-rw-r--r-- 1 root root  28476 May 28  2017 cmsy10.ttf
-rw-r--r-- 1 root root  24316 May 28  2017 esint10.ttf
-rw-r--r-- 1 root root  23476 May 28  2017 eufm10.ttf
-rw-r--r-- 1 root root  26620 May 28  2017 msam10.ttf
-rw-r--r-- 1 root root  36460 May 28  2017 msbm10.ttf
-rw------- 1 root root    347 Dec 20 17:58 nohup.out
-rw-r--r-- 1 root root  10924 May 28  2017 rsfs10.ttf
-rw-r--r-- 1 root root  18740 May 28  2017 stmary10.ttf
-rw-r--r-- 1 root root 107988 Dec 22  2018 StRydeRegular.ttf
-rw-r--r-- 1 root root  20876 May 28  2017 wasy10.ttf
[root@vultr lyx]# ls -l /usr/share/fonts/
total 8
drwxr-xr-x 2 root root 4096 Dec 20 18:09 dejavu
drwxr-xr-x 2 root root 4096 Dec 20 17:22 lyx
[root@vultr lyx]# cat /etc/fonts/fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/fonts.conf file to configure system font access -->
<fontconfig>

<!--
        DO NOT EDIT THIS FILE.
        IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
        LOCAL CHANGES BELONG IN 'local.conf'.

        The intent of this standard configuration file is to be adequate for
        most environments.  If you have a reasonably normal environment and
        have found problems with this configuration, they are probably
        things that others will also want fixed.  Please submit any
        problems to the fontconfig bugzilla system located at fontconfig.org

        Note that the normal 'make install' procedure for fontconfig is to
        replace any existing fonts.conf file with the new version.  Place
        any local customizations in local.conf which this file references.

        Keith Packard
-->

<!-- Font directory list -->

        <dir>/usr/share/fonts</dir>
        <dir>/usr/share/X11/fonts/Type1</dir> <dir>/usr/share/X11/fonts/TTF</dir> <dir>/usr/local/share/fonts</dir>
        <dir prefix="xdg">fonts</dir>
        <!-- the following element will be removed in the future -->
        <dir>~/.fonts</dir>

<!--
  Accept deprecated 'mono' alias, replacing it with 'monospace'
-->
        <match target="pattern">
                <test qual="any" name="family">
                        <string>mono</string>
                </test>
                <edit name="family" mode="assign" binding="same">
                        <string>monospace</string>
                </edit>
        </match>

<!--
  Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
-->
        <match target="pattern">
                <test qual="any" name="family">
                        <string>sans serif</string>
                </test>
                <edit name="family" mode="assign" binding="same">
                        <string>sans-serif</string>
                </edit>
        </match>

<!--
  Accept deprecated 'sans' alias, replacing it with 'sans-serif'
-->
        <match target="pattern">
                <test qual="any" name="family">
                        <string>sans</string>
                </test>
                <edit name="family" mode="assign" binding="same">
                        <string>sans-serif</string>
                </edit>
        </match>

<!--
  Load local system customization file
-->
        <include ignore_missing="yes">/etc/fonts/conf.d</include>

<!-- Font cache directory list -->

        <cachedir>/var/cache/fontconfig</cachedir>
        <cachedir prefix="xdg">fontconfig</cachedir>
        <!-- the following element will be removed in the future -->
        <cachedir>~/.fontconfig</cachedir>

        <config>
<!--
  These are the default Unicode chars that are expected to be blank
  in fonts.  All other blank chars are assumed to be broken and
  won't appear in the resulting charsets
 -->
<!--            <blank> -->
                        <int>0x0020</int>       <!-- SPACE -->
                        <int>0x00A0</int>       <!-- NO-BREAK SPACE -->
                        <int>0x00AD</int>       <!-- SOFT HYPHEN -->
                        <int>0x034F</int>       <!-- COMBINING GRAPHEME JOINER -->
                        <int>0x0600</int>       <!-- ARABIC NUMBER SIGN -->
                        <int>0x0601</int>       <!-- ARABIC SIGN SANAH -->
                        <int>0x0602</int>       <!-- ARABIC FOOTNOTE MARKER -->
                        <int>0x0603</int>       <!-- ARABIC SIGN SAFHA -->
                        <int>0x06DD</int>       <!-- ARABIC END OF AYAH -->
                        <int>0x070F</int>       <!-- SYRIAC ABBREVIATION MARK -->
                        <int>0x115F</int>       <!-- HANGUL CHOSEONG FILLER -->
                        <int>0x1160</int>       <!-- HANGUL JUNGSEONG FILLER -->
                        <int>0x1680</int>       <!-- OGHAM SPACE MARK -->
                        <int>0x17B4</int>       <!-- KHMER VOWEL INHERENT AQ -->
                        <int>0x17B5</int>       <!-- KHMER VOWEL INHERENT AA -->
                        <int>0x180E</int>       <!-- MONGOLIAN VOWEL SEPARATOR -->
                        <int>0x2000</int>       <!-- EN QUAD -->
                        <int>0x2001</int>       <!-- EM QUAD -->
                        <int>0x2002</int>       <!-- EN SPACE -->
                        <int>0x2003</int>       <!-- EM SPACE -->
                        <int>0x2004</int>       <!-- THREE-PER-EM SPACE -->
                        <int>0x2005</int>       <!-- FOUR-PER-EM SPACE -->
                        <int>0x2006</int>       <!-- SIX-PER-EM SPACE -->
                        <int>0x2007</int>       <!-- FIGURE SPACE -->
                        <int>0x2008</int>       <!-- PUNCTUATION SPACE -->
                        <int>0x2009</int>       <!-- THIN SPACE -->
                        <int>0x200A</int>       <!-- HAIR SPACE -->
                        <int>0x200B</int>       <!-- ZERO WIDTH SPACE -->
                        <int>0x200C</int>       <!-- ZERO WIDTH NON-JOINER -->
                        <int>0x200D</int>       <!-- ZERO WIDTH JOINER -->
                        <int>0x200E</int>       <!-- LEFT-TO-RIGHT MARK -->
                        <int>0x200F</int>       <!-- RIGHT-TO-LEFT MARK -->
                        <int>0x2028</int>       <!-- LINE SEPARATOR -->
                        <int>0x2029</int>       <!-- PARAGRAPH SEPARATOR -->
                        <int>0x202A</int>       <!-- LEFT-TO-RIGHT EMBEDDING -->
                        <int>0x202B</int>       <!-- RIGHT-TO-LEFT EMBEDDING -->
                        <int>0x202C</int>       <!-- POP DIRECTIONAL FORMATTING -->
                        <int>0x202D</int>       <!-- LEFT-TO-RIGHT OVERRIDE -->
                        <int>0x202E</int>       <!-- RIGHT-TO-LEFT OVERRIDE -->
                        <int>0x202F</int>       <!-- NARROW NO-BREAK SPACE -->
                        <int>0x205F</int>       <!-- MEDIUM MATHEMATICAL SPACE -->
                        <int>0x2060</int>       <!-- WORD JOINER -->
                        <int>0x2061</int>       <!-- FUNCTION APPLICATION -->
                        <int>0x2062</int>       <!-- INVISIBLE TIMES -->
                        <int>0x2063</int>       <!-- INVISIBLE SEPARATOR -->
                        <int>0x206A</int>       <!-- INHIBIT SYMMETRIC SWAPPING -->
                        <int>0x206B</int>       <!-- ACTIVATE SYMMETRIC SWAPPING -->
                        <int>0x206C</int>       <!-- INHIBIT ARABIC FORM SHAPING -->
                        <int>0x206D</int>       <!-- ACTIVATE ARABIC FORM SHAPING -->
                        <int>0x206E</int>       <!-- NATIONAL DIGIT SHAPES -->
                        <int>0x206F</int>       <!-- NOMINAL DIGIT SHAPES -->
                        <int>0x2800</int>       <!-- BRAILLE PATTERN BLANK -->
                        <int>0x3000</int>       <!-- IDEOGRAPHIC SPACE -->
                        <int>0x3164</int>       <!-- HANGUL FILLER -->
                        <int>0xFEFF</int>       <!-- ZERO WIDTH NO-BREAK SPACE -->
                        <int>0xFFA0</int>       <!-- HALFWIDTH HANGUL FILLER -->
                        <int>0xFFF9</int>       <!-- INTERLINEAR ANNOTATION ANCHOR -->
                        <int>0xFFFA</int>       <!-- INTERLINEAR ANNOTATION SEPARATOR -->
                        <int>0xFFFB</int>       <!-- INTERLINEAR ANNOTATION TERMINATOR -->
<!--            </blank>   -->
<!--
  Rescan configuration every 30 seconds when FcFontSetList is called
 -->
                <rescan>
                        <int>30</int>
                </rescan>
        </config>

</fontconfig>
[root@vultr lyx]# ls -l /etc/fonts/conf.d
total 96
-rw-r--r-- 1 root root  1952 Dec 22 04:28 10-scale-bitmap-fonts.conf
-rw-r--r-- 1 root root  1259 Dec 22 04:28 20-unhint-small-vera.conf
-rw-r--r-- 1 root root  1160 Dec 22 04:28 25-no-bitmap-fedora.conf
-rw-r--r-- 1 root root  3256 Dec 22 04:28 25-unhint-nonlatin.conf
-rw-r--r-- 1 root root  5618 Dec 22 04:28 30-metric-aliases.conf
-rw-r--r-- 1 root root  1198 Dec 22 04:28 30-urw-aliases.conf
-rw-r--r-- 1 root root  5182 Dec 22 04:28 40-nonlatin.conf
-rw-r--r-- 1 root root  6261 Dec 22 04:28 45-latin.conf
-rw-r--r-- 1 root root   545 Dec 22 04:28 49-sansserif.conf
-rw-r--r-- 1 root root   673 Dec 22 04:28 50-user.conf
-rw-r--r-- 1 root root   189 Dec 22 04:28 51-local.conf
-rw-r--r-- 1 root root  1701 Dec 22 04:28 60-latin.conf
-rw-r--r-- 1 root root 10118 Dec 22 04:28 65-fonts-persian.conf
-rw-r--r-- 1 root root  7959 Dec 22 04:28 65-nonlatin.conf
-rw-r--r-- 1 root root   672 Dec 22 04:28 69-unifont.conf
-rw-r--r-- 1 root root   422 Dec 22 04:28 80-delicious.conf
-rw-r--r-- 1 root root  1691 Dec 22 04:28 90-synthetic.conf
-rw-r--r-- 1 root root   978 Dec 22 04:28 README
[root@vultr lyx]# ls -l /etc/fonts/conf.avail
ls: cannot access /etc/fonts/conf.avail: No such file or directory

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Hw to change the font of output in perl

Hw to change the font color and size of output in perl (2 Replies)
Discussion started by: trupti_rinku
2 Replies

2. Shell Programming and Scripting

How to change the font colour in unix ?

Could you pls tell me how to change the font colour in unix ? What is the syntax ? (3 Replies)
Discussion started by: sars
3 Replies

3. Shell Programming and Scripting

Font Color Change Using .profile

Does anyone know how can I change font color, background color etc for a particular user using .profile? Any help is appreciated. (0 Replies)
Discussion started by: fifo_vs_lifo23
0 Replies

4. UNIX for Dummies Questions & Answers

How to change the font or color of text

Hi Gurus, I have a small requirement where i want to change the color & font of some text in a file. i have a file error.txt which will be created in the script using egrep. After that iam adding these lines at head & tail to that file using the following code awk 'BEGIN{print"Please... (4 Replies)
Discussion started by: pssandeep
4 Replies

5. Shell Programming and Scripting

how to change font in mailx

I am writing sql reports to an oracle database, spooling them to a file and emailing them with mailx. I use the syntax below. The reports do not format properly, unless I use the Courier New font. How do I set this with mailx? mailx -s "MY REPORT, `date +'%D %r` " -r "REPORTING SYSTEM"... (2 Replies)
Discussion started by: guessingo
2 Replies

6. Shell Programming and Scripting

Perl::Gtk2 on Linux --- How to Find the Default Font Being Used?

Hello All, Wasn't sure if this was the correct thread to post this under but figured it has to do with Perl and Gtk2 so why not... Anyway.. How can I find out what the Default font being used is inside a Gtk2::Widget. In this case I'm trying to figure out the font being used inside a... (1 Reply)
Discussion started by: mrm5102
1 Replies

7. Programming

Change font in Motif

Does anyone know how to change the font size into a larger one, in a basic Motif application? (1 Reply)
Discussion started by: JenniferKuiper
1 Replies

8. UNIX for Dummies Questions & Answers

Change font

how do i change from employee= to employee= in ksh. in my shell script, i just want to employee= to BOLD. (3 Replies)
Discussion started by: lawsongeek
3 Replies

9. Ubuntu

How to change ffmpeg default font size?

Hello, I have a problem with Greek subtitle font size when I map a subtitle file into a video in ffmpeg. I ran below code: ffmpeg -i video.mp4 -sub_charenc CP1253 -i video_sub.srt -c:v copy -c:a copy \ -c:s mov_text -metadata:s:s:0 language=gr mapped_video.mp4 When I play it in VLC,... (2 Replies)
Discussion started by: baris35
2 Replies

10. UNIX for Beginners Questions & Answers

Send mail with font change

Hi All, I have a file that contains following entries. I want to highlight the line that has word as "FAILURE" while sending the email. File ------------------------------------------------------------ Job Name: ABC Start Time: 07/20/2019 07:32:39 End Time: 07/20/2019... (4 Replies)
Discussion started by: sdosanjh
4 Replies
All times are GMT -4. The time now is 02:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy