From fcdd45f96cf99d6b6b3bac6d6847b7f47c32ca78 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Oct 13 2023 07:44:53 +0000 Subject: Add an evidence for font package naming There was some evidence how we should follow for the font package naming but it was dropped by 20983f3643f60e4c9ac769bc11189491042aae4a and the reference became a dead link since then. This isn't good thing because we are missing the reason why fonts-rpm-macros behave like that. We still need an evidence in our policy. --- diff --git a/guidelines/modules/ROOT/pages/Naming.adoc b/guidelines/modules/ROOT/pages/Naming.adoc index 09cbfb7..c077fe5 100644 --- a/guidelines/modules/ROOT/pages/Naming.adoc +++ b/guidelines/modules/ROOT/pages/Naming.adoc @@ -210,7 +210,21 @@ Large can refer to either size or quantity of files. Packages containing fonts must be named `+[foundryname-]projectname[-fontfamilyname]-fonts+`, in lowercase. -For a full explanation, see xref:FontsPolicy.adoc#_naming[Packaging/FontsPolicy#Naming]. + +=== Clarifications + +1. For Fedora purposes a “foundry” is an entity that publishes a set of fonts with consistent font QA rules. Thus a generic hosting service such as http://www.sf.net[Sourceforge] is not a foundry, but the http://openfontlibrary.org/[Open Font Library] is. +2. It is good practice to contract _foundryname-_ in a short prefix. +3. The _foundryname-_ prefix can optionally be skipped: +* for entities that never released more than one font family, or +* when the font project and the publishing entity are one and the same. +4. If _projectname_ or _foundryname_ are repeated in _fontfamilyname_, they can be dropped from _fontfamilyname_. +5. When _foundryname_, _projectname_ or _fontfamilyname_ contain the _font_ or _fonts_ affix, this affix should be dropped from themfootnote:[To avoid _foofont-fonts_ packages.]. +6. _-fontfamilyname_ should not be included in the srpm name of a package that includes several different font families. +7. If any element of the naming contains spaces, they should be replaced by “-”. +8. The use of the _-fonts_ suffix is not dependant on the actual number of font files in the package. + +When in doubt, ask the https://fedoraproject.org/wiki/Fonts_SIG_mailing_lists[mailing list] for clarification. == Addon Packages