<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
code
        {mso-style-priority:99;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.apple-converted-space
        {mso-style-name:apple-converted-space;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:17776735;
        mso-list-template-ids:-1708764094;}
@list l0:level3
        {mso-level-number-format:bullet;
        mso-level-text:\F0A7;
        mso-level-tab-stop:108.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level2 lfo2
        {mso-level-start-at:0;
        mso-level-number-format:bullet;
        mso-level-numbering:continue;
        mso-level-text:\F0A7;
        mso-level-tab-stop:72.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        mso-ansi-font-size:10.0pt;
        font-family:Wingdings;}
@list l0:level2 lfo3
        {mso-level-start-at:0;
        mso-level-numbering:continue;
        mso-level-tab-stop:72.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="PT-BR" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Following the Helvetica Neue topic previously discussed in the mailing list, I think we have another issue with fonts here.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">In the current [wok] branch there’s a folder called “Fontello” within the ui assets with some ttf, svg, woff and eot files. Fontello is a service that allows you to choose characters from different font families.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">According to Fedora Fonts Policy:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:38.4pt;text-indent:-18.0pt;line-height:13.7pt;mso-list:l0 level1 lfo1;background:white">
<![if !supportLists]><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">Fonts released upstream in separate archives<span class="apple-converted-space"> </span><b>MUST</b><span class="apple-converted-space"> </span>be
packaged in separate source packages (<i>src.rpm</i>), unless they belong to the same font family.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:38.4pt;text-indent:-18.0pt;line-height:13.7pt;mso-list:l0 level1 lfo1;background:white">
<![if !supportLists]><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">Packagers<span class="apple-converted-space"> </span><b>SHOULD</b><span class="apple-converted-space"> </span>ask upstream to release each font
family in a separate versioned archive, when it bundles in a common release archive:<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:1.2pt;margin-left:76.8pt;text-indent:-18.0pt;line-height:18.0pt;mso-list:l0 level2 lfo1;background:white">
<![if !supportLists]><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">fonts with other material such as application code, or<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:1.2pt;margin-left:76.8pt;text-indent:-18.0pt;line-height:18.0pt;mso-list:l0 level2 lfo1;background:white">
<![if !supportLists]><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">different font families.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:1.2pt;margin-left:56.4pt;text-indent:-18.0pt;line-height:18.0pt;mso-list:l0 level2 lfo2;background:white">
<![if !supportLists]><span lang="EN-US" style="font-size:10.0pt;font-family:Wingdings;color:black"><span style="mso-list:Ignore">§<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">As an exception, when a project is the upstream of several font families, which are all licensed the same way, and released on the same date,
with the same version, the use of a common release archive is tolerated.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:38.4pt;text-indent:-18.0pt;line-height:13.7pt;mso-list:l0 level1 lfo2;background:white">
<![if !supportLists]><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"><span style="mso-list:Ignore">3.<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">Packagers<span class="apple-converted-space"> </span><b>MUST</b><span class="apple-converted-space"> </span>package each font family in a separate
(<i>noarch.rpm</i>) (sub)package, notwithstanding on how they applied the previous source package (<i>src.rpm</i>) rules.
</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">The only admitted exceptions are:<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:1.2pt;margin-left:76.8pt;text-indent:-18.0pt;line-height:18.0pt;mso-list:l0 level2 lfo3;background:white">
<![if !supportLists]><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"><span style="mso-list:Ignore">0.<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">source packages that only include one font family and no other code or content (font documentation excepted), in which case a simple package
is fine,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:76.8pt;text-indent:-18.0pt;line-height:18.0pt;mso-list:l0 level2 lfo3;background:white">
<![if !supportLists]><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">font families which are designed to extend other font families with larger Unicode coverage (for example<span class="apple-converted-space"> </span><i>Arial
Unicode</i>,<span class="apple-converted-space"> </span><i>Droid Sans Fallback</i>), in which case grouping the font family and its extension in a single (sub)package is acceptable.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:94.8pt;text-indent:-18.0pt;line-height:18.0pt;mso-list:l0 level3 lfo3;background:white">
<![if !supportLists]><span lang="EN-US" style="font-size:10.0pt;font-family:Wingdings;color:black"><span style="mso-list:Ignore">§<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">such cases should be notified to the fontconfig maintainer and the Fedora<span class="apple-converted-space"> </span></span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"><a href="https://fedoraproject.org/wiki/Fonts_SIG_mailing_lists" title="Fonts SIG mailing lists"><span lang="EN-US" style="color:#729FCF;text-decoration:none">fonts
list</span></a></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">, so the font family split can be eventually hidden from users.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:1.2pt;margin-left:76.8pt;text-indent:-18.0pt;line-height:18.0pt;mso-list:l0 level2 lfo3;background:white">
<![if !supportLists]><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">fonts that use a format that bundles different font families in a single file.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:38.4pt;text-indent:-18.0pt;line-height:13.7pt;mso-list:l0 level1 lfo3;background:white">
<![if !supportLists]><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"><span style="mso-list:Ignore">4.<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">On the other hand, the different faces of a font family<span class="apple-converted-space"> </span><b>MUST</b><span class="apple-converted-space"> </span>be
packaged together in a common (<i>noarch.rpm</i>) (sub)package, and not spread over different (sub)packages</span><sup id="cite_ref-2"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"><a href="https://fedoraproject.org/wiki/Packaging:FontsPolicy#cite_note-2"><span lang="EN-US" style="color:#729FCF;text-decoration:none">[3]</span></a></span></sup><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="https://fedoraproject.org/wiki/Packaging:FontsPolicy">https://fedoraproject.org/wiki/Packaging:FontsPolicy</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">And Web Assets Packaging:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p style="mso-margin-top-alt:0cm;margin-right:30.0pt;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;line-height:13.7pt;background:white">
<span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">All system fonts (available in<span class="apple-converted-space"> </span></span><code><span lang="EN-US" style="font-size:10.0pt;color:black;background:#F9F9F9">%{_datadir}/fonts</span></code><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">)
are automatically made available in<span class="apple-converted-space"> </span></span><code><span lang="EN-US" style="font-size:10.0pt;color:black;background:#F9F9F9">%{_webassetdir}/fonts/</span></code><span class="apple-converted-space"><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"> </span></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">via
a symlink. For more information on packaging system fonts, see the<span class="apple-converted-space"> </span></span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"><a href="https://fedoraproject.org/wiki/Packaging:FontsPolicy" title="Packaging:FontsPolicy"><span lang="EN-US" style="color:#729FCF">font
guidelines</span></a></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">. Please note that [Web_Assets/Fonts|only fonts available in the Fedora package collection are made available on HTTP servers by default].<o:p></o:p></span></p>
<p style="mso-margin-top-alt:6.0pt;margin-right:30.0pt;margin-bottom:6.0pt;margin-left:0cm;line-height:13.7pt;background:white;orphans: auto;text-align:start;widows: 1;-webkit-text-stroke-width: 0px;word-spacing:0px">
<span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">Please note that those guidelines prohibit packaging fonts elsewhere. There is no compelling reason to support other font formats, as most browsers that support web fonts
support the TTF or OTF formats used by system fonts, therefore alternative web font formats like WOFF are prohibited.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="https://fedoraproject.org/wiki/Packaging:Web_Assets#Fonts">https://fedoraproject.org/wiki/Packaging:Web_Assets#Fonts</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">So, instead of putting font files within Kimchi project, we have to use a package. From the list of icons used to build this Fontello.ttf file, only Font Awesome has a Fedora Package. The problem is that this font uses
trademarked icons such as Windows, Spotify, Skype, Facebook, Twitter and other brands when you download it, not sure if they removed from their RPM.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">We would also have to provide a service that exposes the TTF and OTF files in the same URL, protocol and port that Kimchi is running, something like
<a href="https://localhost:8001/fonts/font-awesome.ttf">https://localhost:8001/fonts/font-awesome.ttf</a> for instance.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">As for TTF and OTF support, according to this support table, we got all A-grade browsers:
<a href="http://caniuse.com/#feat=ttf">http://caniuse.com/#feat=ttf</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The same goes for Open Sans font and an alternative to Traditional Chinese and Simplified Chinese from Adobe called Source Han Sans:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="https://apps.fedoraproject.org/packages/open-sans-fonts/overview/">https://apps.fedoraproject.org/packages/open-sans-fonts/overview/</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="https://apps.fedoraproject.org/packages/adobe-source-han-sans-tw-fonts">https://apps.fedoraproject.org/packages/adobe-source-han-sans-tw-fonts</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="https://apps.fedoraproject.org/packages/adobe-source-han-sans-cn-fonts">https://apps.fedoraproject.org/packages/adobe-source-han-sans-cn-fonts</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The other solution for our icons would be export each glyph we want to use in SVG format (and keep font-awesome license within). It seems that this is ok with Font-Awesome but not with the other fonts available in Fontello.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">So, for now I’m removing all font files from [wok] branch and I’ll submit a patch later.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">What are your thoughts? Any advice?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Samuel<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>