1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Caladea is metric-compatible with Cambria font.

This font is sans-serif typeface family based on Lato.

WWW: https://code.google.com/p/chromium/issues/detail?id=168879
This commit is contained in:
Jung-uk Kim 2014-05-06 04:44:22 +00:00
parent 302280a4db
commit c2570e0d56
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=353059
6 changed files with 62 additions and 0 deletions

View File

@ -26,6 +26,7 @@
SUBDIR += comic-neue
SUBDIR += consolamono-ttf
SUBDIR += croscorefonts-fonts-ttf
SUBDIR += crosextrafonts-caladea-ttf
SUBDIR += cyberbit-ttfonts
SUBDIR += cyr-rfx
SUBDIR += dejavu

View File

@ -0,0 +1,42 @@
# $FreeBSD$
PORTNAME= crosextrafonts
PORTVERSION= 20130214
CATEGORIES= x11-fonts
MASTER_SITES= http://gsdview.appspot.com/chromeos-localmirror/distfiles/
PKGNAMESUFFIX= -caladea
MAINTAINER= office@FreeBSD.org
COMMENT= Font created by Google for ChromeOS to replace MS Cambria
LICENSE= APACHE20
BUILD_DEPENDS= mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
USE_XORG= x11
PLIST_SUB= FONTDIR="${FONTDIR:S|${PREFIX}/||}"
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_LIST= FONTDIR=${FONTDIR}
FONTNAME= Caladea
FONTDIR= ${PREFIX}/lib/X11/fonts/${FONTNAME}
INSTDAT= 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} ${STAGEDIR}${FONTDIR}
cd ${WRKSRC} && \
${INSTALL_DATA} ${INSTDAT} *.ttf ${STAGEDIR}${FONTDIR}
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (crosextrafonts-20130214.tar.gz) = c48d1c2fd613c9c06c959c34da7b8388059e2408d2bb19845dc3ed35f76e4d09
SIZE (crosextrafonts-20130214.tar.gz) = 112756

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,4 @@
Caladea is metric-compatible with Cambria font.
This font is sans-serif typeface family based on Lato.
WWW: https://code.google.com/p/chromium/issues/detail?id=168879

View File

@ -0,0 +1,8 @@
%%FONTDIR%%/Caladea-Bold.ttf
%%FONTDIR%%/Caladea-BoldItalic.ttf
%%FONTDIR%%/Caladea-Italic.ttf
%%FONTDIR%%/Caladea-Regular.ttf
%%FONTDIR%%/fonts.dir
%%FONTDIR%%/fonts.scale
@unexec rm %D/%%FONTDIR%%/fonts.cache-1 2>/dev/null || /usr/bin/true
@dirrm %%FONTDIR%%