Updated Noto font recipes

* Noto: remove the UI variants. According to the FAQ [1]:

  "The UI fonts were initially prepared for use in Android’s UI. They
   have tighter vertical metrics, and some glyphs that would be clipped
   are redrawn to fit within the constrained space."

  As they look pretty much identical to the non-UI versions, we'll
  keep them out of the package for the time being. If we see any clipping
  they could be re-added (or put in their own sub-package).

* Noto CJK: put the Japanese CJK in a correctly named sub-package.
  The 'main package' (declared in PROVIDES) is emtpy and shouldn't be
  uploaded to a repo. Haikuporter could be changed to not create a
  package, if the PROVIDES is empty.

[1] https://github.com/googlei18n/noto-fonts/blob/master/FAQ.md
This commit is contained in:
Humdinger
2016-10-12 08:12:37 +02:00
parent b41293c599
commit 9847e0c17a
2 changed files with 45 additions and 18 deletions

View File

@@ -1,21 +1,32 @@
SUMMARY="The Noto font"
DESCRIPTION="Noto's goal is providing a beautiful reading experience for everyone \
and for all languages. With visual harmony when multiple languages share a page. With \
multiple styles and weights. Freely available to all."
DESCRIPTION="The Noto fonts have superseded the Droid fonts, which were \
originally designed for the use in Google's Android. Noto's aim is to be a \
free for everyone, with beautiful glyphs for all languages, looking good \
especially when multiple styles and weights and even languages are mixed on \
a page.
This package contains the 'sans-serif' and 'serif' typefaces in various \
styles, as well as a 'monospaced' version."
SUMMARY_chroscore="The Noto font (Chrome OS core font)"
DESCRIPTION_chroscore="Noto's goal is providing a beautiful reading experience for everyone \
and for all languages. With visual harmony when multiple languages share a page. With \
multiple styles and weights. Freely available to all.
DESCRIPTION_chroscore="The Noto fonts have superseded the Droid fonts, which \
were originally designed for the use in Google's Android. Noto's aim is to be \
a free for everyone, with beautiful glyphs for all languages, looking good \
especially when multiple styles and weights and even languages are mixed on \
a page.
This package contains the Chrome OS core fonts: Arimo, Cousine and Tinos"
This package contains the Chrome OS core fonts: Arimo and Cousine have a \
'sans-serif' typeface, Tinos is a 'serif' font."
SUMMARY_regional="The Noto font (special language/region version)"
DESCRIPTION_regional="Noto's goal is providing a beautiful reading experience for everyone \
and for all languages. With visual harmony when multiple languages share a page. With \
multiple styles and weights. Freely available to all.
DESCRIPTION_regional="The Noto fonts have superseded the Droid fonts, which were \
originally designed for the use in Google's Android. Noto's aim is to be a \
free for everyone, with beautiful glyphs for all languages, looking good \
especially when multiple styles and weights and even languages are mixed on \
a page.
This package contains the Noto fonts for:
This package contains the Noto fonts ('sans-serif' and where applicable \
'serif') for:
Arabic, Armenian
Bengali
@@ -70,6 +81,7 @@ INSTALL()
FONTDIR=$fontsDir/ttfonts
mkdir -p ${FONTDIR}
rm hinted/*UI-*.ttf # remove unneeded UI versions
cp hinted/*.ttf ${FONTDIR}
packageEntries chroscore \

View File

@@ -1,16 +1,21 @@
SUMMARY="The Noto font for CJK languages (default Japanese)"
SUMMARY="The Noto font for CJK languages"
SUMMARY_jp="The Noto font for CJK languages (default Japanese)"
SUMMARY_kr="The Noto font for CJK languages (default Korean)"
SUMMARY_sc="The Noto font for CJK languages (default Simple Chinese)"
SUMMARY_tc="The Noto font for CJK languages (default Traditional Chinese)"
DESCRIPTION="Noto's goal is providing a beautiful reading experience for \
everyone and for all languages. With visual harmony when multiple languages \
share a page. With multiple styles and weights. Freely available to all.
DESCRIPTION="The Noto fonts have superseded the Droid fonts, which were \
originally designed for the use in Google's Android. Noto's aim is to be a \
free for everyone, with beautiful glyphs for all languages, looking good \
especially when multiple styles and weights and even languages are mixed on \
a page.
This package supports Japanese, Korean and simple/traditional Chinese."
This package supports Japanese, Korean and simple/traditional Chinese.
Included are various weights and two 'monospaced' typefaces ('regular' and \
'bold')."
HOMEPAGE="https://www.google.com/get/noto/"
COPYRIGHT="2012 Google Inc."
LICENSE="SIL Open Font License v1.1"
REVISION="1"
REVISION="2"
baseURL="https://raw.githubusercontent.com/googlei18n/noto-cjk"
srcGitRev="f36eda03dfa5582a6d49abbfb5c83d0209584158"
# Japanese
@@ -95,11 +100,18 @@ SOURCE_DIR=""
ARCHITECTURES="any"
DISABLE_SOURCE_PACKAGE=yes
# noto_sans_cjk-$portVersion-any.hpkg is intentionally empty and can be removed.
PROVIDES="
noto_sans_cjk=$portVersion # Japanese default
noto_sans_cjk=$portVersion # empty. ToDo: prevent creating empty hpkg
"
REQUIRES=""
PROVIDES_jp="
noto_sans_cjk_jp=$portVersion # Japanese default
"
REQUIRES_jp=""
PROVIDES_kr="
noto_sans_cjk_kr=$portVersion # Korean default
"
@@ -130,6 +142,9 @@ INSTALL()
cp ../sources*/*.otf ${FONTDIR}
packageEntries jp \
${FONTDIR}/*CJKjp*.otf
packageEntries kr \
${FONTDIR}/*CJKkr*.otf