Install font linux fedora

🤼♂️ Как добавить новые шрифты в Fedora

Шрифты всегда помогают вам выразить свои чувства более креативным способом через дизайн.

Независимо от того, пишете ли вы в изображенит, создаете презентацию или создаете рекламу или приветствие, шрифты могут улучшить вашу идею до более высокого уровня.

К счастью, Fedora упрощает установку, как описано в этой статье.

Есть несколько основных шрифтов, включенных в стандартную установку Fedora Linux

Если вы планируете использовать Fedora для повседневной деятельности, такой как создание графического дизайна и набор текста, вы можете добавить дополнительные шрифты.

Установка новых шрифтов с DNF на Fedora

Чтобы установить новые шрифты в системе Fedora, вам необходимо включить репозиторий RPMfusion в вашей системе с помощью менеджера пакетов dnf.

Этот метод установки шрифтов дает вам контроль над пакетами шрифтов в будущем, такими как обновление или удаление шрифтов из системы.

После установки репозитория RPMfusion вы можете перечислить все доступные пакеты шрифтов.

Затем установите пакет шрифтов, который вам нужен.

Для получения дополнительной информации следующая команда перечислит все доступные пакеты шрифтов вместе с их описаниями.

Установка новых шрифтов вручную в Fedora

Этот метод установки шрифтов работает лучше, если вы загрузили шрифты в поддерживаемом формате, например .ttf, .otf, .ttc, .pfa, .pfb или .pcf.

Эти шрифты нельзя установить в масштабе всей системы, но вы можете установить эти шрифты вручную, переместив файлы шрифтов в каталог системных шрифтов и обновив кэш шрифтов.

Приведенная выше команда fc-cache -v перестроит кэши шрифтов, которые помогут системе Fedora найти и ссылаться на те шрифты, которые она может использовать.

Вам также может понадобиться перезапустить приложение, чтобы начать использовать новые шрифты.

Источник

How to Add New Fonts in Fedora

Fonts always assist you to express your feelings in more creative ways through design. Whether you are captioning a picture, creating a presentation, or designing an advertisement or greeting, fonts can improve your idea to the higher level.

It’s easy to fall in love with fonts for their own artful qualities. Fortunately, Fedora makes installation easy as explained in this article. There are several basic fonts included in the default installation of the Fedora Linux. If you are planning to use Fedora for daily activities such as creating graphic design and typesetting, you can add additional fonts.

Installing New Fonts with DNF on Fedora

To install new fonts on Fedora system, you need to enable the RPMfusion repository on your system with dnf package manager. As, this method of font installation gives you control over the font packages in the future, such as updating or removing fonts from the system.

Once RPMfusion repository installed, you can list all available font packages.

Then install the font package you need.

For more information, the following command will list all available font packages along with their descriptions.

Читайте также:  Патчер mac os mojave

Installing New Fonts Manually on Fedora

This method of font installation works better if you have downloaded fonts in supported format such as .ttf , .otf , .ttc , .pfa , .pfb or .pcf . These fonts can’t be installed in a system-wide, but you can install these fonts manually by moving the font files into a system font directory and updating the font cache.

The above fc-cache -v command will rebuild font caches that help Fedora system to locate and reference the fonts it can use. You might also need to restart an application in order to start using new fonts.

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

We are thankful for your never ending support.

Источник

Adding new fonts in Fedora

Fedora pre-installs several basic fonts by default. This page explains how to add new fonts to a Fedora installation.

Packaged fonts

Did you know Fedora packages several freely-licensed fonts? There are several supplementary fonts to preview and try out that are not installed by default. Like all fonts on Fedora, these fonts are not encumbered with licenses or restrictions.

An added benefit of packaged fonts is they give you control over the font package in the future. You will receive future updates and can easily uninstall it later if you decide it is not the font for you.

GNOME Software

This section uses a Graphical User Interface (G.U.I.) for managing fonts.

The easiest way to preview and install new fonts is to use GNOME Software . Search for a specific font or search «fonts» in GNOME Software to see what other freely-licensed fonts are available.

DNF package manager

This section uses a Command Line Interface (C.L.I.) for managing fonts.

If you prefer working in a C.L.I., you can also install fonts with dnf .

Many fonts are available from the RPM Fusion repository. To enable the repository on your system, follow these instructions.

List all available font packages from enabled repositories

sudo dnf search fonts

Install the font package you need

sudo dnf install libreoffice-opensymbol-fonts

Unpackaged fonts

In many cases, you may want to use a specific font that is not available in Fedora or is not made available under Free Culture licenses.

Unpackaged fonts are not managed by a package manager. You will not automatically receive updates or optimizations. If a font is provided by a distribution package, you should always use a packaged version of a font.

System fonts

System fonts are installed for all users. Anyone with an account on the machine will be able to use these fonts.

sudo mkdir /usr/share/fonts/robofont

Copy font files (e.g. .ttf files) to the new directory

Update the font cache

User fonts

User fonts are installed for an individual user. Only the user who installs the fonts on the machine will be able to use these fonts. This is also convenient if you do not have superuser (i.e. root ) access on the machine.

Читайте также:  Windows task scheduler events

There are two ways to install user fonts.

GNOME Font Viewer

This section uses a Graphical User Interface (G.U.I.) for managing fonts.

The GNOME Font Viewer is an application to display the fonts installed on the system. It also allows you to locally install fonts. Follow these steps to add new user fonts with GNOME Font Viewer :

Install GNOME Font Viewer .

Use GNOME Software or use the command line ( sudo dnf install gnome-font-viewer )

Open a file browser.

Double-click on a font file to open it in GNOME Font Viewer .

Click on the blue Install button on the top bar.

Currently, there is a bug in the application. When you click on the Install button, it does not inform whether the installation succeeded.

GNOME Font Viewer does two things to install fonts:

Copy font files to a font directory in the user’s home directory .local/share/fonts .

Update the font cache.

Command line

This section uses a Command Line Interface (C.L.I.) for managing fonts.

If you prefer a command line interface, you can install user fonts manually. Follow these steps in a terminal window to install a font locally:

/.local/share/fonts/ / for the new font family

Copy font files (e.g. .ttf files) to the new directory

Update the font cache

All Fedora Documentation content available under CC BY-SA 4.0 or, when specifically noted, under another accepted free and open content license.

Источник

ervinb / how-to-install-mscorefonts-on-fedora.md

How to install MS Core fonts on Fedora

# This is the msttcorefonts spec file as distributed from
# http://corefonts.sourceforge.net/.
%define name msttcorefonts
# nowdays most (all?) distributions seems to use this. Oh the joys of the FHS
%define ttmkfdir /usr/bin/ttmkfdir
%define fontdir /usr/share/fonts/%
Summary: TrueType core fonts for the web
Name: %
Version: 2.5
Release: 1
License: Spec file is GPL, binary rpm is gratis but non-distributable
Group: User Interface/X
BuildArch: noarch
BuildRoot: /var/tmp/%< name >-root
BuildRequires: %
BuildRequires: wget
BuildRequires: cabextract
Packager: Noa Resare noa@resare.com >
%description
The TrueType core fonts for the web that was once available from
http://www.microsoft.com/typography/fontpack/. The src rpm is cleverly
constructed so that the actual fonts are downloaded from Sourceforge’s site
at build time. Therefore this package technically does not ‘redistribute’
the fonts, it just makes it easy to install them on a linux system.
%prep
mkdir -p %< name >/downloads
cd %< name >/downloads
# this is the sourceforge mirrorlist as of 2012-09-06. If someone spots changes
# over at sourceforge, feel free to email me and I’ll update the list
mirrors = «aarnet+cdnetworks-kr-1+citylan+dfn+freefr+garr+heanet+hivelocity+ignum+internode+iweb+jaist+nchc+netcologne+space+superb-dca2+superb-dca3+superb-sea2+switch+tenet+ufpr+voxel+waix»
mirror_count = 23
andale32_md5 = «cbdc2fdd7d2ed0832795e86a8b9ee19a andale32.exe»
arial32_md5 = «9637df0e91703179f0723ec095a36cb5 arial32.exe»
arialb32_md5 = «c9089ae0c3b3d0d8c4b0a95979bb9ff0 arialb32.exe»
comic32_md5 = «2b30de40bb5e803a0452c7715fc835d1 comic32.exe»
courie32_md5 = «4e412c772294403ab62fb2d247d85c60 courie32.exe»
georgi32_md5 = «4d90016026e2da447593b41a8d8fa8bd georgi32.exe»
impact32_md5 = «7907c7dd6684e9bade91cff82683d9d7 impact32.exe»
times32_md5 = «ed39c8ef91b9fb80f76f702568291bd5 times32.exe»
trebuc32_md5 = «0d7ea16cac6261f8513a061fbfcdb2b5 trebuc32.exe»
webdin32_md5 = «230a1d13a365b22815f502eb24d9149b webdin32.exe»
verdan32_md5 = «12d2a75f8156e10607be1eaa8e8ef120 verdan32.exe»
download_files = «andale32.exe arial32.exe arialb32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe webdin32.exe verdan32.exe»
failures = 0
function set_mirror <
local r m
r = `expr $RANDOM % $mirror_count + 1`
m = `echo $mirrors |cut -d+ -f$r`
# mirror=»http://$.dl.sourceforge.net/project/corefonts/the%20fonts/final/»
mirror = «https://sourceforge.net/projects/mscorefonts/files/MS%20Core%20Fonts/win/»
>
function check_file <
matches =
if [ ! -r $1 ]
then
echo «$1 does not exist»
return
fi
local variable_name = `basename $1 .exe`_md5
local stored_checksum
eval stored_checksum = \$$variable_name
local computed_checksum = `md5sum $1`
if [ «$stored_checksum» = «$computed_checksum» ]
then
matches = yes
else
rm $1
matches =
fi
>
function download <
wget —timeout = 5 -O «$2» $1$2
>
set_mirror
for f in $download_files
do
check_file $f
while [ ! $matches ]
do
download $mirror $f
check_file $f
if [ ! $matches ]
then
echo «failed to download $mirror$f»
failures = `expr $failures + 1`
if [ $failures -gt 5 ]
then
echo «failed to download too many times.»
exit
fi
set_mirror
fi
done
done
%build
font_files = «andale32.exe arial32.exe arialb32.exe comic32.exe courie32.exe georgi32.exe impact32.exe times32.exe trebuc32.exe webdin32.exe verdan32.exe»
cd %
rm -rf cab-contents fonts
mkdir cab-contents
mkdir fonts
for i in $font_files
do
if [ -f downloads/$i ]
then
cabextract —lowercase —directory = cab-contents downloads/$i
fi
cp cab-contents/*.ttf fonts
rm -f cab-contents/*
done
cd fonts
% < ttmkfdir >> fonts.dir
%install
[ » $RPM_BUILD_ROOT » != » / » ] && rm -rf $RPM_BUILD_ROOT
cd %< name >/fonts
mkdir -p $RPM_BUILD_ROOT /%
cp * .ttf fonts.dir $RPM_BUILD_ROOT /%
%clean
[ » $RPM_BUILD_ROOT » != » / » ] && rm -rf $RPM_BUILD_ROOT
%post
if [ -x /usr/sbin/chkfontpath -a $1 -eq 1 ] ; then
/usr/sbin/chkfontpath —add %
fi
# something has probably changed, update the font-config cache
if [ -x /usr/bin/fc-cache ] ; then
/usr/bin/fc-cache
fi
%preun
if [ -x /usr/sbin/chkfontpath -a $1 -eq 0 ] ; then
/usr/sbin/chkfontpath —remove %
fi
%files
%attr(-,root,root) %
% dir %
%changelog
* Sun Sep 09 2012 Noa Resare 2.5-1
— Various updates from Deven T. Corzine, mirrors etc
* Sun May 07 2006 Noa Resare 2.0-1
— checksums downloads
— random mirror
— use redistributable word 97 viewer as source for tahoma.ttf
* Mon Mar 31 2003 Daniel Resare 1.3-4
— updated microsoft link
— updated sourceforge mirrors
* Mon Nov 25 2002 Daniel Resare 1.3-3
— the install dir is now deleted when the package is uninstalled
— executable permission removed from the fonts
— executes fc-cache after install if it is available
* Thu Nov 07 2002 Daniel Resare 1.3-2
— Microsoft released a new service-pack. New url for Tahoma font.
* Thu Oct 24 2002 Daniel Resare 1.3-1
— removed python hack
— removed python hack info from description
— made tahoma inclusion depend on define
— added some info on the ttmkfdir define
* Tue Aug 27 2002 Daniel Resare 1.2-3
— fixed spec error when tahoma is not included
* Tue Aug 27 2002 Daniel Resare 1.2-2
— removed tahoma due to unclear licensing
— parametrized ttmkfdir path (for mandrake users)
— changed description text to reflect the new microsoft policy
* Thu Aug 15 2002 Daniel Resare 1.2-1
— changed distserver because microsoft no longer provides them
* Tue Apr 09 2002 Daniel Resare 1.1-3
— fixed post/preun script to actually do what they were supposed to do
* Tue Mar 12 2002 Daniel Resare 1.1-2
— removed cabextact from this package
— added tahoma font from ie5.5 update
* Fri Aug 25 2001 Daniel Resare
— initial version

This comment has been minimized.

Copy link Quote reply

gablex commented Dec 11, 2020

Works ok on Fedora 33

This comment has been minimized.

Copy link Quote reply

DragonEggBedrockBreaking commented May 19, 2021

Works fine on Fedora 34, but for me the second command ( mkdir -p $HOME/rpmbuild/ ) wasn’t necessary. And also, why did you add the file here and link to it here, rather than link to the original .spec file: http://corefonts.sourceforge.net/msttcorefonts-2.5-1.spec

This comment has been minimized.

Copy link Quote reply

DragonEggBedrockBreaking commented May 19, 2021

Oh, also, I forgot to mention, you need to install ‘cabextract’ at the start, as it is also a dependency

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

Читайте также:  Dexp wfa 601 kali linux
Оцените статью