Update X.md

This commit is contained in:
mayfrost 2018-12-30 22:55:23 -03:00 committed by GitHub
parent 4851e31773
commit 5f14785d05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

28
X.md
View File

@ -5,7 +5,7 @@ Set __X__ and a desktop environment fast.
2. [CONFIGURING X](#configuring-x)
2.1. [SCREEN RESOLUTION](#screen-resolution)
2.2. [SCREEN TEARING](#screen-tearing)
2.3. [FONTS](#fonts)
2.3. [CORE FONTS](#core-fonts)
3. [THEME](theme)
4. [NO DE](#no-de)
4.1. [XINITRC CONFIGURATION FILE](#xinitrc-configuration-file)
@ -128,8 +128,23 @@ Section "Device"
EndSection
```
### FONTS
Fonts can be added to the database on _"/etc/X11/xorg.conf"_ or in the separate file _"/etc/X11/xorg.conf.d/fonts.conf_":
### CORE FONTS
There are two ways of adding fonts, with __Fontconfig__ or with __X__ core fonts. The next deals with core fonts.
* Fonts can be added to the database on _"/etc/X11/xorg.conf"_ or in the separate file _"/etc/X11/xorg.conf.d/fonts.conf_".
* Supported font formats are _BDF_, binary _PCF_, and _SNF_.
* Scalable fonts must appear in the font path before the bitmap fonts when possible.
__STEP 1__: Create a font directory with font files and index files.
* If there are scalable fonts you might first need to correctly name them index first:
`mkfontscale ~/.fonts`
* To properly create a font index file:
`mkfontdir ~/.fonts`
Some files are creat with this
* The _fonts.dir_ lists the available fonts in this directory.
* The _fonts.alias_ provides aliases.
__STEP 2__: Inform __X__ where to look for font directories.
* Edit _"/etc/X11/xorg.conf"_ or in the separate file _"/etc/X11/xorg.conf.d/fonts.conf"_
```
Section "Files"
FontPath "/path/to/fonts/"
@ -138,6 +153,13 @@ EndSection
```
Where _"/path/to/fonts/"_ can be the default _/usr/local/share/fonts/_, a directory under _/usr/local/share/fonts/_, or any directory of your choosing.
__TEMPORARY CHANGES (OPTIONAL)__
To add fonts for a one time you can follow either of these steps.
* Temporarily add fonts first on the list:
`xset +fp /path/to/fonts`
* Temporarily add fonts last on the list:
`xset fp+ /path/to/fonts`
## THEME
To tweak the theme of your terminal emulator you need to tweak the _".Xresources"_ file.