<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wiki.rosa.ru/index.php?action=history&amp;feed=atom&amp;title=Fonts_policy</id>
	<title>Fonts policy - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.rosa.ru/index.php?action=history&amp;feed=atom&amp;title=Fonts_policy"/>
	<link rel="alternate" type="text/html" href="http://wiki.rosa.ru/index.php?title=Fonts_policy&amp;action=history"/>
	<updated>2026-05-08T10:40:53Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>http://wiki.rosa.ru/index.php?title=Fonts_policy&amp;diff=97&amp;oldid=prev</id>
		<title>PastorDi в 20:10, 13 марта 2025</title>
		<link rel="alternate" type="text/html" href="http://wiki.rosa.ru/index.php?title=Fonts_policy&amp;diff=97&amp;oldid=prev"/>
		<updated>2025-03-13T20:10:42Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 23:10, 13 марта 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l124&quot;&gt;Строка 124:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 124:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Some extra references==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Some extra references==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[http://www.faqs.org/faqs/fonts-faq/part15/ Subject: 10.3. X11 Font Formats]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Категория:Политики сборки пакетов]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>PastorDi</name></author>
	</entry>
	<entry>
		<id>http://wiki.rosa.ru/index.php?title=Fonts_policy&amp;diff=96&amp;oldid=prev</id>
		<title>PastorDi: Новая страница: «==Tools== ===fc-cache (fontconfig)=== From fc-cache(1) manpage:   fc-cache scans the font directories on the system and builds  font information cache files for applications using fontconfig  for their font handling.  Should be run in %post and %postun, after adding/removing the font directory to the configuration with chkfontpath (see below), to update the system&#039;s font cache.  NOTE: should be Required?  ===chkfontpath=== From chkfontpath(8) manpage:   chkf...»</title>
		<link rel="alternate" type="text/html" href="http://wiki.rosa.ru/index.php?title=Fonts_policy&amp;diff=96&amp;oldid=prev"/>
		<updated>2025-03-13T20:08:58Z</updated>

		<summary type="html">&lt;p&gt;Новая страница: «==Tools== ===fc-cache (fontconfig)=== From fc-cache(1) manpage:   fc-cache scans the font directories on the system and builds  font information cache files for applications using fontconfig  for their font handling.  Should be run in %post and %postun, after adding/removing the font directory to the configuration with chkfontpath (see below), to update the system&amp;#039;s font cache.  NOTE: should be Required?  ===chkfontpath=== From chkfontpath(8) manpage:   chkf...»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Tools==&lt;br /&gt;
===fc-cache (fontconfig)===&lt;br /&gt;
From fc-cache(1) manpage:&lt;br /&gt;
&lt;br /&gt;
 fc-cache scans the font directories on the system and builds&lt;br /&gt;
 font information cache files for applications using fontconfig&lt;br /&gt;
 for their font handling.&lt;br /&gt;
&lt;br /&gt;
Should be run in %post and %postun, after adding/removing the font directory to the configuration with chkfontpath (see below), to update the system&amp;#039;s font cache.&lt;br /&gt;
&lt;br /&gt;
NOTE: should be Required?&lt;br /&gt;
&lt;br /&gt;
===chkfontpath===&lt;br /&gt;
From chkfontpath(8) manpage:&lt;br /&gt;
&lt;br /&gt;
 chkfontpath is mainly used by rpm in its %post and %postun&lt;br /&gt;
 sections to add and remove new directories to the server&amp;#039;s&lt;br /&gt;
 config file at installation and de-installation time of&lt;br /&gt;
 packages containing fonts.&lt;br /&gt;
&lt;br /&gt;
In summary, this means something like:&lt;br /&gt;
&lt;br /&gt;
* In %post: %{_sbindir}/chkfontpath -q -a %{_datadir}/fonts/%{name}&lt;br /&gt;
* In %postun: %{_sbindir}/chkfontpath -q -r %{_datadir}/fonts/%{name}&lt;br /&gt;
&lt;br /&gt;
NOTE: should be Required?&lt;br /&gt;
&lt;br /&gt;
===freetype-tools (ttmkfdir)===&lt;br /&gt;
ttmkfdir is an alternative to mkfontdir, for Truetype fonts only. NOTE: Should it be used at all? Preferred? In which cases?&lt;br /&gt;
&lt;br /&gt;
===mkfontscale===&lt;br /&gt;
Should be used to generate fonts.scale, at build time.&lt;br /&gt;
&lt;br /&gt;
===mkfontdir===&lt;br /&gt;
Should be used to generate fonts.dir and encodings.dir, at build time, from fonts plus fonts.scale and fonts.alias.&lt;br /&gt;
&lt;br /&gt;
==Rules==&lt;br /&gt;
===Naming===&lt;br /&gt;
Package name should be like: fonts-$type-$name.&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$type would be one of:&lt;br /&gt;
  ttf&lt;br /&gt;
    TrueType fonts (*.ttf)&lt;br /&gt;
  type1&lt;br /&gt;
    Postscript Type1 fonts (*.pfb, *.pfa, *.afm, *.pfm)&lt;br /&gt;
  bitmap&lt;br /&gt;
    fixed size, bitmapped, fonts (*.pcf, *.bdf)&lt;br /&gt;
$name would be either:&lt;br /&gt;
  the font name&lt;br /&gt;
    fonts-type1-hebrew&lt;br /&gt;
  $foundryname-$fontname&lt;br /&gt;
    fonts-ttf-bitstream-vera&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Fonts subpackages of non-fonts main packages should follow these naming rules too, where $foundryname can be the main package name. See also the Location section below.&lt;br /&gt;
&lt;br /&gt;
==Files==&lt;br /&gt;
Type1 and bitmap font files should be compressed by gzip. TrueType fonts should not.&lt;br /&gt;
&lt;br /&gt;
===Location===&lt;br /&gt;
Each font package should put its fonts in its own subdirectory under /usr/share/fonts/. Like /usr/share/fonts/fonts-ttf-bitstream-vera.&lt;br /&gt;
&lt;br /&gt;
Programs providing their own fonts should package them in subpackage(s), following the naming rules in this policy, and without requiring the main package as far as possible. The subpackage(s) should install the fonts in its own subdirectory under /usr/share/fonts/, named after the main package. Like /usr/share/fonts/fonts-type1-lilypond, or /usr/share/fonts/fonts-bitmap-fluxbox-artwiz.&lt;br /&gt;
&lt;br /&gt;
For a fonts only package (i.e. not a subpackage of a non-fonts package), referring to the font directory by %_datadir/fonts/%name should be valid.&lt;br /&gt;
&lt;br /&gt;
The following alternatives are possible:&lt;br /&gt;
&lt;br /&gt;
* %_datadir/fonts/fonts-ttf-bitstream-vera&lt;br /&gt;
* %_datadir/fonts/ttf/fonts-ttf-bitstream-vera&lt;br /&gt;
* %_datadir/fonts/ttf-bitstream-vera&lt;br /&gt;
* %_datadir/fonts/ttf/bitstream-vera&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Packages sharing directories====&lt;br /&gt;
Right now, some ttf packages put files in a shared /usr/share/fonts/TTF directory, others share /usr/share/fonts/ttf instead (small caps ttf...), others have their own subdirectory under /usr/share/fonts/ttf, others have their own subdirectory under /usr/share/fonts/...). Are there performance problems for having many fonts directories? See below (&amp;#039;Special files&amp;#039; and &amp;#039;NOTES&amp;#039;) for reasoning on per-package font directory.&lt;br /&gt;
&lt;br /&gt;
===Special files===&lt;br /&gt;
These files are created by the font management tools and should be packaged because:&lt;br /&gt;
&lt;br /&gt;
* avoiding unpackaged and/or %ghost files lost in the system&lt;br /&gt;
* reducing run time dependencies (on the tools that generate them)&lt;br /&gt;
* they (at least some of them) may be hand edited for fixing/tuning (see mkfontscale(1) and mkfontdir(1) manpages)&lt;br /&gt;
&lt;br /&gt;
See the cited manpages (specially mkfontdir(1)) for more information.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;fonts.scale&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
used by mkfontdir, created by mkfontscale, may be edited by hand.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;fonts.alias&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
created by hand, used by mkfontdir.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;fonts.dir&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
created by mkfontdir.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;encodings.dir&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
created by mkfontdir.&lt;br /&gt;
&lt;br /&gt;
===Configuration files===&lt;br /&gt;
&lt;br /&gt;
/etc/fonts/&lt;br /&gt;
&lt;br /&gt;
fontconfig configuration directory.&lt;br /&gt;
&lt;br /&gt;
/etc/X11/fs/config&lt;br /&gt;
&lt;br /&gt;
xfs configuration file, handled by chkfontpath.&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
&lt;br /&gt;
* fonts coming from Xorg are being named x11-font-$name-$type&lt;br /&gt;
#* should they be excepted from naming policy? or have own policy rules? or be adapted?&lt;br /&gt;
* fonts sharing directory must run mkfontscale and mkfontdir (or alikes) at %post and %postun.&lt;br /&gt;
* why some fonts require chkfontpath, while most simply test for and use if it exists?&lt;br /&gt;
* what is the relation of Xorg X chkfontpath?&lt;br /&gt;
* why Xorg fonts (x11-font-*) don&amp;#039;t run fc-cache in %post/%postun?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Some extra references==&lt;/div&gt;</summary>
		<author><name>PastorDi</name></author>
	</entry>
</feed>