1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-30 05:40:06 +00:00

Google has created a set of fonts for it's ChromeOS Operating system.

The three standard ones closely  mimic the most popular ones for
the Windows platform and the linuxso-called Liberation fonts but
are available under an OpenFont license.

Tinos, Arimo and Cousine, appear to be variations of the old
standard  Times, Arial and Courier.

PR:		ports/164229
Submitted by:	Pedro Giffuni
This commit is contained in:
Baptiste Daroussin 2012-01-19 23:13:34 +00:00
parent 5c67a7dbf0
commit f16cba880d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=289495
6 changed files with 90 additions and 0 deletions

View File

@ -18,6 +18,7 @@
SUBDIR += charis-compact
SUBDIR += code2000
SUBDIR += code2001
SUBDIR += croscorefonts-fonts-ttf
SUBDIR += cyberbit-ttfonts
SUBDIR += cyr-rfx
SUBDIR += dejavu

View File

@ -0,0 +1,56 @@
# New ports collection makefile for: ChromeOS fonts
# Date created: 17 May 2007
# Whom: Pedro Giffuni
#
# $FreeBSD$
#
PORTNAME= croscorefonts
PORTVERSION= 1.21.0
CATEGORIES= x11-fonts
MASTER_SITES= http://gsdview.appspot.com/chromeos-localmirror/distfiles/
MAINTAINER= office@FreeBSD.org
COMMENT= Fonts created from by Google for ChromeOS to replace MS TTF
LICENSE= OFL
LICENSE_NAME= SIL OPEN FONT LICENSE Version 1.1
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= auto-accept
BUILD_DEPENDS= mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale \
mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir
FETCH_ARGS= -Fpr
USE_XORG= x11
PLIST_SUB= FONTDIR="${FONTDIR:S|${PREFIX}/||}"
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_LIST= FONTDIR=${FONTDIR}
FONTNAME= ChromeOS
FONTDIR= ${PREFIX}/lib/X11/fonts/${FONTNAME}
INSTDAT= LICENSE fonts.dir fonts.scale
MKFONTSCL_CMD= ${LOCALBASE}/bin/mkfontscale
MKFONTDIR_CMD= ${LOCALBASE}/bin/mkfontdir
do-build:
cd ${WRKSRC} && ${MKFONTSCL_CMD}
${REINPLACE_CMD} -e 's|-misc-|-google-|' ${WRKSRC}/fonts.scale
cd ${WRKSRC} && ${MKFONTDIR_CMD}
do-install:
${MKDIR} ${FONTDIR}
cd ${WRKSRC} && \
${INSTALL_DATA} ${INSTDAT} *.ttf ${FONTDIR}
post-install:
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (croscorefonts-1.21.0.tar.gz) = 370e55428729174f2801e9cfb4bce0f20b6f5b26c08d6488ac8b5b765c322703
SIZE (croscorefonts-1.21.0.tar.gz) = 2605014

View File

@ -0,0 +1,5 @@
You can start using the fonts by following these instructions:
Add the following line to the "Files" section of your x.org configuration file:
FontPath "%%FONTDIR%%/"

View File

@ -0,0 +1,8 @@
Google has created a set of fonts for it's ChromeOS Operating system.
The three standard ones closely mimic the most popular ones for
the Windows platform and the linuxso-called Liberation fonts but
are available under an OpenFont license.
Tinos, Arimo and Cousine, appear to be variations of the old
standard Times, Arial and Courier.

View File

@ -0,0 +1,18 @@
%%FONTDIR%%/Arimo-Bold.ttf
%%FONTDIR%%/Arimo-BoldItalic.ttf
%%FONTDIR%%/Arimo-Italic.ttf
%%FONTDIR%%/Arimo-Regular.ttf
%%FONTDIR%%/Cousine-Bold.ttf
%%FONTDIR%%/Cousine-BoldItalic.ttf
%%FONTDIR%%/Cousine-Italic.ttf
%%FONTDIR%%/Cousine-Regular.ttf
%%FONTDIR%%/LICENSE
%%FONTDIR%%/SymbolNeu.ttf
%%FONTDIR%%/Tinos-Bold.ttf
%%FONTDIR%%/Tinos-BoldItalic.ttf
%%FONTDIR%%/Tinos-Italic.ttf
%%FONTDIR%%/Tinos-Regular.ttf
%%FONTDIR%%/fonts.dir
%%FONTDIR%%/fonts.scale
@unexec rm %D/%%FONTDIR%%/fonts.cache-1 2>/dev/null || /usr/bin/true
@dirrm %%FONTDIR%%