Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 304824 Details for
Bug 442498
Enhancement Request: Add an wrapper script to generate font metric files
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Updated wrapper script for TTFReader and PFMReader
fop-fontmetricgen (text/plain), 2.11 KB, created by
Satoru SATOH
on 2008-05-08 02:27:29 UTC
(
hide
)
Description:
Updated wrapper script for TTFReader and PFMReader
Filename:
MIME Type:
Creator:
Satoru SATOH
Created:
2008-05-08 02:27:29 UTC
Size:
2.11 KB
patch
obsolete
>#! /bin/sh ># fop-fontmetricgen - A script to generate font metric file used with FOP. ># ># @see http://xmlgraphics.apache.org/fop/0.95/fonts.html ># > ># Source functions library >if [ -f /usr/share/java-utils/java-functions ] ; then > . /usr/share/java-utils/java-functions >else > echo "Can't find functions library, aborting" > exit 1 >fi > >usage () { > cat <<EOF >Usage: $0 [-t FONT_TYPE] [Options] FONT_FILE METRIC_FILE > > FONT_FILE font file path > METRIC_FILE font metric file to output > > -t FONT_TYPE Select font type; ttf (TrueType) or pfm (Type 1). > Guessed by font file extension if this option is not specified. > >Options: try $0 -t FONT_TYPE -h for option details of each font types. > >Examples: > # Generate a font metric file for sazanami-gothic.ttf > $0 /path/to/sazanami-gothic.ttf gothic.xml > > # Generate a font metric file for HGRGE.TTC > $0 -ttcname HGPGothicE ./HGRGE.TTC gothic.xml > > # Generate a font metric file for utmri8a.pfm > $0 /path/to/utmri8a.pfm nimbus.xml > > # show helps for each font types > $0 -t ttf -h > $0 -t pfm -h >EOF > exit 0 >} > > >show_help=false >class_prefix="org.apache.fop.fonts.apps." >reader_class=TTFReader > >if test $# -lt 2 -o x$1 = x"-h"; then > usage >elif test x$1 = x"-t"; then > case $2 in > pfm) reader_class=PFMReader ;; > ttf|ttc) reader_class=TTFReader ;; > *) show_help=true ;; > esac > shift 2 > args=$@ >else > args=$@ > > # expect the last but one is font file and the last is metric xml. > ind=$(( $# - 2 )) > shift $ind > fontfile=$1 > #metricxml=$2 > > # Detect font type by the font file extension. > fontext=`echo $fontfile | sed 's/^.*\.\([^.]*\)$/\1/' | tr A-Z a-z` > if test x$fontext = xpfm; then > reader_class=PFMReader > elif test x$fontext = xttf -o x$fontext = xttc; then > reader_class=TTFReader > else > show_help=true > fi >fi > >if $show_help; then > usage >fi > >MAIN_CLASS="$class_prefix""$reader_class" > > ># Configuration >set_jvm >set_classpath fop avalon-framework commons-logging commons-io xmlgraphics-commons >set_flags $BASE_FLAGS >set_options $BASE_OPTIONS > >export CLASSPATH=$CLASSPATH > >run $args
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 442498
:
302408
| 304824