FreeBSD Bugzilla – Attachment 22728 Details for
Bug 39342
Add automatic truetype support to Mozilla build
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
truetype.sh
truetype.sh (text/plain), 1.24 KB, created by
Joe Kelsey
on 2002-09-12 19:41:21 UTC
(
hide
)
Description:
truetype.sh
Filename:
MIME Type:
Creator:
Joe Kelsey
Created:
2002-09-12 19:41:21 UTC
Size:
1.24 KB
patch
obsolete
>#!/bin/sh ># Allow passing truetype font list as parameter or in ># variable WITH_TRUETYPE_FONTS >if [ -n "$1" ] >then > WITH_TRUETYPE_FONTS=$1 >fi >X11_FONTDIR=${PREFIX:-/usr/X11R6}/lib/X11/fonts >if [ -z "$WITH_TRUETYPE_FONTS" ] >then > if [ -d $X11_FONTDIR/TTF ] > then > WITH_TRUETYPE_FONTS=$X11_FONTDIR/TTF > if [ -d $X11_FONTDIR/TrueType ] > then > WITH_TRUETYPE_FONTS=$WITH_TRUETYPE_FONTS:$X11_FONTDIR/TrueType > fi > elif [ -d $X11_FONTDIR/TrueType ] > then > WITH_TRUETYPE_FONTS=$X11_FONTDIR/TrueType > fi >fi ># If called from ports Makefile, PREFIX will be /usr/X11R6. ># MOZILLA_FIVE_HOME may or may not be set. >UNIXJS=${MOZILLA_FIVE_HOME:-${PREFIX:-/usr/X11R6}/lib/mozilla}/defaults/pref/unix.js ># We just append new pref settings to unix.js. ># Turn truetype fonts on >echo 'pref("font.FreeType2.enable", true);' >> $UNIXJS ># If WITH_TRUETYPE_FONTS contains a colon, do special loop >ifsSave="$IFS" >if expr $WITH_TRUETYPE_FONTS : ".*:.*" >/dev/null >then > n=1 > IFS=: > for i in $WITH_TRUETYPE_FONTS > do IFS="$ifsSave" > echo 'pref("font.directory.truetype.'$n'","'$i'");' >> $UNIXJS > n=$(($n+1)) > done > IFS="$ifsSave" ># Otherwise, single font directory. >else > echo 'pref("font.directory.truetype.1","'$WITH_TRUETYPE_FONTS'");' >> $UNIXJS >fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 39342
: 22728