ການເພີ່ມຟອນໃໝ່ໃນ Fedora
Fedora ໄດ້ຕິດຕັ້ງຟອນພື້ນຖານມາໃຫ້ແລ້ວຫຼາຍອັນໂດຍເລີ່ມຕົ້ນ. ໜ້ານີ້ຈະອະທິບາຍວິທີການເພີ່ມຟອນໃໝ່ເຂົ້າໃນການຕິດຕັ້ງ Fedora.
ຟອນທີ່ມາໃນຮູບແບບແພັກເກດ
Fedora includes several supplementary fonts in its official repositories that are not installed by default. These fonts are all freely licensed.
Installing packaged fonts has the advantage of being managed by DNF. The system receives future updates automatically and you can uninstall the font cleanly at any time.
GNOME Software
The easiest way to preview and install packaged fonts is through the desktop environment’s software mangement tool, such as GNOME Software or KDE Discover.
Search for a specific font name, or search "fonts" to browse what is available.
ຕົວຈັດການແພັກເກດ DNF
To install fonts from the command line, use dnf.
List all available font packages from enabled repositories:
$ dnf search fonts
Install the font package you need:
$ sudo dnf install <font-package-name>
For example:
$ sudo dnf install google-roboto-fonts
Additional fonts are also available from third-party repositories such as RPM Fusion. Enable the repository first, then use dnf search fonts to find what is available.
|
ຟອນທີ່ບໍ່ໄດ້ມາໃນຮູບແບບແພັກເກດ
If you need a font that is not available in Fedora’s repositories, you can install it manually.
|
Manually installed fonts are not managed by DNF. You will not receive updates automatically. Where a packaged version of a font exists, use it instead. |
ຟອນຂອງລະບົບ
System fonts are installed for all users on the system.
Create a directory in the system fonts path and copy the font files there:
$ sudo mkdir -p /usr/local/share/fonts/robofont
$ sudo cp ~/Downloads/robofont.ttf /usr/local/share/fonts/robofont/
Set permissions and update SELinux labels:
$ sudo chown -R root: /usr/local/share/fonts/robofont
$ sudo chmod 644 /usr/local/share/fonts/robofont/*
$ sudo restorecon -vFr /usr/local/share/fonts/robofont
Update the font cache:
$ sudo fc-cache -v
ຟອນຂອງຜູ້ໃຊ້
User fonts are installed for a single user only. This approach does not require superuser access.
GNOME Font Viewer
Install GNOME Font Viewer if it is not already present:
$ sudo dnf install gnome-font-viewer
To install a font:
-
Open a file manager and navigate to the downloaded font file.
-
Double-click the font file to open it in GNOME Font Viewer.
-
Click the btn:[Install] button in the top bar.
GNOME Font Viewer copies the font file to ~/.local/share/fonts/ and updates the font cache automatically.
ການຈັດການຟອນຂອງ KDE
KDE Plasma includes a font management tool in System Settings.
-
Open System Settings.
-
Search for "fonts" or navigate to Appearance → Text and Fonts → Font Management.
-
Click Install from File and select the downloaded font file.
-
Choose whether to install the font for your user only or system-wide.
Want to help? Learn how to contribute to Fedora Docs ›