Skip to content

Commit

Permalink
Merge pull request #4813 from mozilla/demo__fulah-fonts
Browse files Browse the repository at this point in the history
Fix Bug 1360812 - Font display issue with Fulah (missing glyphs on bold text)
  • Loading branch information
craigcook committed Jul 17, 2017
2 parents ea37f2a + 9436950 commit 838a2c3
Show file tree
Hide file tree
Showing 16 changed files with 49 additions and 12 deletions.
19 changes: 10 additions & 9 deletions docs/l10n.rst
Expand Up @@ -380,17 +380,18 @@ Here's an example of ``intl.css``:
Localizers can specify locale-specific fonts in one of the following ways:

* Choose best-looking fonts widely used on major platforms, and specify those
with the ``src: local(name)`` syntax
with the ``src: local(name)`` syntax
* Find a best-looking free Web font, add the font files to ``/media/fonts/``,
and specify those with the ``src: url(path)`` syntax
and specify those with the ``src: url(path)`` syntax
* Create a custom Web font to complement missing glyphs in *Open Sans*, add the
font files to ``/media/fonts/``, and specify those with the ``src: url(path)``
syntax. The `M+ font family
<http://mplus-fonts.sourceforge.jp/mplus-outline-fonts/index-en.html>`_ offers
various international glyphs and looks similar to *Open Sans*. You can create a
subset of the *M+ 2c* font using a tool found on the Web. See `Bug 776967
<https://bugzilla.mozilla.org/show_bug.cgi?id=776967>`_ for the Fulah (ff)
locale's example.
font files to ``/media/fonts/l10n/``, and specify those with the
``src: url(path)`` syntax. `M+ 2c <http://mplus-fonts.osdn.jp/about-en.html>`_
offers various international glyphs and looks similar to Open Sans, while
`Noto Sans <https://www.google.com/get/noto/>`_ is good for the bold and
italic variants. You can create subsets of these alternative fonts in the WOFF
and WOFF2 formats using a tool found on the Web. See `Bug 1360812
<https://bugzilla.mozilla.org/show_bug.cgi?id=1360812>`_ for the Fulah (ff)
locale's example

Developers should use the ``.open-sans`` mixin instead of ``font-family: 'Open
Sans'`` to specify the default font family in CSS. This mixin has both *Open
Expand Down
42 changes: 39 additions & 3 deletions media/css/l10n/ff/intl.css
@@ -1,13 +1,49 @@
/* Bug 776967 */
/* Bug 776967, 1360812 */

@font-face {
font-family: X-LocaleSpecific-Light;
font-weight: normal;
src: url('/media/fonts/l10n/mplus-2c-light-fulah-subset.woff') format('woff');
font-style: normal;
src: url('/media/fonts/l10n/ff/mplus-2c-light-ff-sub.woff2') format('woff2'),
url('/media/fonts/l10n/ff/mplus-2c-light-ff-sub.woff') format('woff');
}

@font-face {
font-family: X-LocaleSpecific-Light;
font-weight: bold;
font-style: normal;
src: url('/media/fonts/l10n/ff/mplus-2c-medium-ff-sub.woff2') format('woff2'),
url('/media/fonts/l10n/ff/mplus-2c-medium-ff-sub.woff') format('woff');
}

@font-face {
font-family: X-LocaleSpecific;
font-weight: normal;
font-style: normal;
src: url('/media/fonts/l10n/ff/mplus-2c-regular-ff-sub.woff2') format('woff2'),
url('/media/fonts/l10n/ff/mplus-2c-regular-ff-sub.woff') format('woff');
}

@font-face {
font-family: X-LocaleSpecific;
font-weight: normal;
src: url('/media/fonts/l10n/mplus-2c-regular-fulah-subset.woff') format('woff');
font-style: italic;
src: url('/media/fonts/l10n/ff/notosans-italic-ff-sub.woff2') format('woff2'),
url('/media/fonts/l10n/ff/notosans-italic-ff-sub.woff') format('woff');
}

@font-face {
font-family: X-LocaleSpecific;
font-weight: bold;
font-style: normal;
src: url('/media/fonts/l10n/ff/notosans-bold-ff-sub.woff2') format('woff2'),
url('/media/fonts/l10n/ff/notosans-bold-ff-sub.woff') format('woff');
}

@font-face {
font-family: X-LocaleSpecific;
font-weight: bold;
font-style: italic;
src: url('/media/fonts/l10n/ff/notosans-bolditalic-ff-sub.woff2') format('woff2'),
url('/media/fonts/l10n/ff/notosans-bolditalic-ff-sub.woff') format('woff');
}
Binary file added media/fonts/l10n/ff/mplus-2c-light-ff-sub.woff
Binary file not shown.
Binary file added media/fonts/l10n/ff/mplus-2c-light-ff-sub.woff2
Binary file not shown.
Binary file added media/fonts/l10n/ff/mplus-2c-medium-ff-sub.woff
Binary file not shown.
Binary file added media/fonts/l10n/ff/mplus-2c-medium-ff-sub.woff2
Binary file not shown.
Binary file added media/fonts/l10n/ff/mplus-2c-regular-ff-sub.woff
Binary file not shown.
Binary file added media/fonts/l10n/ff/mplus-2c-regular-ff-sub.woff2
Binary file not shown.
Binary file added media/fonts/l10n/ff/notosans-bold-ff-sub.woff
Binary file not shown.
Binary file added media/fonts/l10n/ff/notosans-bold-ff-sub.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added media/fonts/l10n/ff/notosans-italic-ff-sub.woff
Binary file not shown.
Binary file added media/fonts/l10n/ff/notosans-italic-ff-sub.woff2
Binary file not shown.
Binary file removed media/fonts/l10n/mplus-2c-light-fulah-subset.woff
Binary file not shown.
Binary file removed media/fonts/l10n/mplus-2c-regular-fulah-subset.woff
Binary file not shown.

0 comments on commit 838a2c3

Please sign in to comment.