From af8a6b395dc72c8d13883e8a3a38e056b02111c7 Mon Sep 17 00:00:00 2001 From: arved Date: Wed, 14 Feb 2001 11:38:20 +0000 Subject: [PATCH] No longer required git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194072 13f79535-47bb-0310-9956-ffa450edef68 --- jpfop-0.17.0/makesample_jpfop.bat | 5 - jpfop-0.17.0/makesample_jpfop.sh | 8 - jpfop-0.17.0/readme.html | 276 ---------------------------- jpfop-0.17.0/readme_jp.html | 292 ------------------------------ jpfop-0.17.0/sample_jpfop.fo | 251 ------------------------- 5 files changed, 832 deletions(-) delete mode 100644 jpfop-0.17.0/makesample_jpfop.bat delete mode 100644 jpfop-0.17.0/makesample_jpfop.sh delete mode 100644 jpfop-0.17.0/readme.html delete mode 100644 jpfop-0.17.0/readme_jp.html delete mode 100644 jpfop-0.17.0/sample_jpfop.fo diff --git a/jpfop-0.17.0/makesample_jpfop.bat b/jpfop-0.17.0/makesample_jpfop.bat deleted file mode 100644 index 0c5b3114a..000000000 --- a/jpfop-0.17.0/makesample_jpfop.bat +++ /dev/null @@ -1,5 +0,0 @@ -set XERCES=..\lib\xerces.jar -set XALAN=..\lib\xalan.jar -set BSF=..\lib\bsf.jar - -java -cp ..\build\fop-0.16.0-jp.jar;%XERCES%;%XALAN%;%BSF%;..\lib\w3c.jar org.apache.fop.apps.CommandLine -d sample_jpfop.fo sample_jpfop.pdf diff --git a/jpfop-0.17.0/makesample_jpfop.sh b/jpfop-0.17.0/makesample_jpfop.sh deleted file mode 100644 index e190edd37..000000000 --- a/jpfop-0.17.0/makesample_jpfop.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -XERCES=../lib/xerces.jar -XALAN=../lib/xalan.jar -BSF=../lib/bsf.jar - -$JAVA_HOME/bin/java -cp ../build/fop-0.16.0-jp.jar:$XERCES:$XALAN:$BSF:../lib/w3c.jar org.apache.fop.apps.CommandLine -d sample_jpfop.fo sample_jpfop.pdf - diff --git a/jpfop-0.17.0/readme.html b/jpfop-0.17.0/readme.html deleted file mode 100644 index aeaf12375..000000000 --- a/jpfop-0.17.0/readme.html +++ /dev/null @@ -1,276 +0,0 @@ - - - - -JAPANIZED PATCH for FOP-0.16.0 - - - -

JAPANIZED PATCH for FOP-0.16.0

- - - -


-

1. Introduction

-

This patch supports the Type0 fonts for FOP-0.16.0 that is provided http://xml.apache.org/fop . When you have patched , you can use following family font name:

- -

This patch is tested for compile and create PDF file following environments :

- - -

NOTE: It is not possible that this patch works fine for other than Internationalized ( or Localized ) JDK . And if your machine does not support the japanese fonts , this patch can't create the PDF File that written in japanese .

- -


-

2. Installation

- -
    -
  1. Access http://xml.apache.org/dist/fop/ , and download fop-0_16_0.zip ( or fop-0_16_0.tar.gz ) .
  2. -
  3. Uncompress and extract fop-0_16_0.zip ( or .tar.gz ) .
  4. -
    This will create a directory named fop-0_16_0 .
    -
  5. Access http://www.sourceforge.net/projects/jpfop/ , and download jpfop_0_16_0.zip ( or jpfop_0_16_0.tar.gz ) .
  6. -
  7. Uncompress and extract jpfop-0.16.0.zip ( or .tar.gz ) under fop-0_16_0 directory .
  8. -
    This will create a directory named jpfop-0.16.0 under fop-0_16_0 directory .
    -
  9. Access http://xml.apache.org/dist/xalan-j/ , and download xalan-j_1_2_2.zip ( or xalan-j_1_2_2.tar.gz ) . -
  10. Bundle xerces.jar , xalan.jar and bsf.jar in xalan-j_1_2_2.zip ( or .tar.gz ) . -
    This patch can conveniently bundle xerces.jar , xalan.jar andbsf.jar, if you copy them to fop-0_16_0/lib directory .
  11. -
  12. -
    Run following command :
    -
    > cd fop-0_16_0
    -
    > build-jpfop ( ./build-jpfop.sh )
    -
  13. -
  14. The JAPANIZED Fop that named fop-0.16.0-jp.jar will be created after the Ant prints out BUILD SUCCESSED .
  15. -
  16. -
    Test JAPANIZED Fop following way :
    -
    > cd jpfop
    -
    > makesample_jpfop ( or ./makesample_jpfop.sh )
    -
    When no exception is thrown , following sample_jpfop.pdf file is created .
    -
  17. -
-
-

-Figure. sample_jpfop.pdf -
- -

Note: This patch only provides Japanese Font , but it is easy to support Chinese or Korea . If you want to use the other CJKFont that does not include in this patch , you can use them to create font information in fop-0_16_0/src/codegen/cidfont and fop-0_16_0/src/codegen/cmp and to added it to FontSetup.java and build-jpfop.xml .

- -

- - -


-

3. Sources

- -

3.1 Updated sources

- -

This patch have updated following classes .

-
-
org.apache.fop.layout.LineArea
-
org.apache.fop.pdf.PDFFontDescriptor
-
org.apache.fop.pdf.PDFDocument
-
org.apache.fop.render.pdf.PDFRenderer
-
org.apache.fop.render.pdf.FontSetup
-
- - -

3.1.1 org.apache.fop.layout.LineArea

-
-

The addText() method is updated . A Type0 composit font uses single-byte or multi-byte character codes that range is from 0 to 65535 . In FOP-0.16.0 , the character code is automatically transrated to "#" , if it is higher than 127 . I commented out that codes .

-

And I added new line code . In japanese , the words is not separated by whitespace , but currently fop only supports the new line algorithm that judges at every words . In this patch , when a line contains japanese , it breaks if overrun .

-
- - -

3.1.2 org.apache.fop.pdf.PDFFontDescriptor

-
-

The toPDF() method is updated . A type of return value for Rectangle.toPDF() was byte[] , so A PDF Rectangle format was not exactly . I think that this is FOP's BUG .

-
-
previous codes:
-
-p.append("\n/FontBBox "); p.append(fontBBox.toPDF()); -
-
updated codes:
-
-p.append("\n/FontBBox "); p.append(new String(fontBBox.toPDF())); -
-
-
- - -

3.1.3 org.apache.fop.pdf.PDFDocument

-
-

The makeFont() and makeFontDescriptor() methods is updated .

- -

makeFont() method: When the implemented Font object does not have FontDescriptor object and that Font object is the instance of CIDFont , create Type0 font object .

- -

makeFontDescriptor() method: I added the algorithm of OptionalFontDescriptor instance creation . And , in the original code of PDFFontDescriptor instance creation , the position of ItalicAngle and StemV was swapped . I think that this is FOP's BUG .

-
- - -

3.1.4 org.apache.fop.render.pdf.PDFRenderer

-
-

The renderInlineArea() method is updated . The code of Type0 font ( CIDFont ) is added . The UTF-8 strings is encoded to by specified file encoding in CIDFont . If the CIDType in CIDFont is CIDFontType2 , encoded string is written because it's code poing is TrueType .

- -

If the CIDType in CIDFont is CIDFontType0 , that cocoded strings is mapped to Adobe Type1 by CMap . When the font-style attribute in FO is specified Italic , Tm is written in PDF File . And/or if the font-weigth attribute is BOLD , TD is used .

-
- - -

3.1.5 org.apache.fop.render.pdf.FontSetup

-
-

The setup() method is updated . I added the japanese font informations .

-
- - -

-

3.2 Added classes and interfaces

- -

This patch have updated following classes or interfaces .

-
-
org.apache.fop.layout.OptionalFontDescriptor
-
org.apache.fop.pdf.PDFCIDFont
-
org.apache.fop.pdf.PDFOptionalFontDescriptor
-
org.apache.fop.pdf.PDFFontType0
-
org.apache.fop.render.pdf.CIDFont
-
org.apache.fop.render.pdf.CMap
-
- - -

3.2.1 org.apache.fop.layout.OptionalFontDescriptor

-
-

This interface is a FontDescriptor with optional attributes . For more details of FontDescriptor , see PDF1.3 Reference Manual [1] 7.11 Font descriptors page on 222 .

-
- - -

3.2.2 org.apache.fop.pdf.PDFCIDFont

-
-

This class is a CIDFont in a PDF file . For more details of CIDFont , see PDF1.3 Reference Manual [1] 7.8 CIDFonts page on 210 and Adobe CMap and CID Font Files Specification Version 1.0 [2] .

-
- - -

3.2.3 org.apache.fop.pdf.PDFOptionalFontDescriptor

-
-

This class is a FontDescriptor with optional attributes in a PDF file .

-
- - -

3.2.4 org.apache.fop.pdf.PDFFontType0

-
-

This class is a Type0 Font in a PDF file . For more details of Type0 Font , see PDF1.3 Reference Manual [1] 7.7.7 Type0 Fonts page on 207 .

-
- - -

3.2.5 org.apache.fop.render.pdf.CIDFont

-
-

This abstract class represents a CIDFont .

-
- - -

3.2.6 org.apache.fop.render.pdf.CIDFontWidthsEntry

-
-

This class is an entry of Width in a CIDFont . In CIDFonts , following two formats is used to specify the width of glyphs:

- -

For more details of the width of CIDFont , see PDF1.3 Reference Manual [1] 7.8.3 Character widths in CIDFonts page on 213 .

-
- - - -

3.2.7 org.apache.fop.render.pdf.CMap

-
-

The CMap classes must implement this interface . The mapping() methods in the implemtend classes maps code points to a font number . For more details of Japanese CMaps , see Adobe CMap and CID Font Files Specification Version 1.0 [2] and Adobe-Japan1-4 Character Collection for CID-Keyed Fonts [3] .

-
- -

3.2.8 org.apache.fop.render.pdf.Widths

-
-

This class is Width . This class can use Type1 , TruType , etc. , too .

-
- - -

-

3.3 codegens

- -

This patch automatically generates the following codes .

-
-
org.apache.fop.render.pdf.cmap._90ms_RKSJ_H
-
org.apache.fop.render.pdf.fonts.jp.GothicBBBMedium
-
org.apache.fop.render.pdf.fonts.jp.MSGothic
-
org.apache.fop.render.pdf.fonts.jp.MSGothicAlias
-
org.apache.fop.render.pdf.fonts.jp.MSGothicBold
-
org.apache.fop.render.pdf.fonts.jp.MSGothicBoldAlias
-
org.apache.fop.render.pdf.fonts.jp.MSGothicBoldItalic
-
org.apache.fop.render.pdf.fonts.jp.MSGothicBoldItalicAlias
-
org.apache.fop.render.pdf.fonts.jp.MSGothicItalic
-
org.apache.fop.render.pdf.fonts.jp.MSGothicItalicAlias
-
org.apache.fop.render.pdf.fonts.jp.MSMincho
-
org.apache.fop.render.pdf.fonts.jp.MSMinchoAlias
-
org.apache.fop.render.pdf.fonts.jp.MSMinchoBold
-
org.apache.fop.render.pdf.fonts.jp.MSMinchoBoldAlias
-
org.apache.fop.render.pdf.fonts.jp.MSMinchoBoldItalic
-
org.apache.fop.render.pdf.fonts.jp.MSMinchoBoldItalicAlias
-
org.apache.fop.render.pdf.fonts.jp.MSMinchoItalic
-
org.apache.fop.render.pdf.fonts.jp.MSMinchoItalicAlias
-
org.apache.fop.render.pdf.fonts.jp.Osaka
-
org.apache.fop.render.pdf.fonts.jp.RyuminLight
-
- - -


-

4. Known problems

- -

In this section , I write the known problems for this pathc . If you want to know about FOP's problems , see fop-dev@xml.apache.org and fop-cvs@xml.apache.org .

- - - - -


-

5. References

-
    -
  1. Portable Document Format Reference Manual Version 1.3:
    -http://partners.adobe.com/asn/developer/acrosdk/DOCS/PDFRef.pdf
  2. -
  3. Adobe CMap and CID Font Files Specification Version 1.0:
    -http://partners.adobe.com/asn/developer/PDFS/TN/5014.CMap_CIDFont_Spec.pdf
  4. -
  5. Adobe-Japan1-4 Character Collection for CID-Keyed Fonts:
    -http://partners.adobe.com/asn/developer/PDFS/TN/5078.Adobe-Japan1-4.pdf
  6. -
  7. Adobe Font Metrics File Format Specification Version 4.1:
    -http://partners.adobe.com/asn/developer/PDFS/TN/5004.AFM_Spec.pdf
  8. -
- - - diff --git a/jpfop-0.17.0/readme_jp.html b/jpfop-0.17.0/readme_jp.html deleted file mode 100644 index 78ec608a6..000000000 --- a/jpfop-0.17.0/readme_jp.html +++ /dev/null @@ -1,292 +0,0 @@ - - - - -FOP-0.16.0 $BF|K\8l2=%Q%C%A(B - - - -

FOP-0.16.0 $BF|K\8l2=%Q%C%A(B

- - - -


-

1. $B$O$8$a$K(B

-

$BK\%Q%C%A$O!"(Bhttp://xml.apache.org/fop $B$,Ds6!$7$F$$$k(B FOP-0.16.0 $B$GF|K\8l(B ( Type0 $B%U%)%s%H(B ) $B$rI=<(2DG=$K$9$k$?$a$N%Q%C%A$G$9!#K\%Q%C%A$K$h$j!"0J2<$N%U%!%_%j%U%)%s%HL>$,;HMQ2DG=$H$J$j$^$9!#(B

- -

$BK\%Q%C%A$O!"0J2<$N4D6-$G%3%s%Q%$%k$H(B PDF $B:n@.$NF0:n3NG'$r$7$F$*$j$^$9!#(B

- - -

$BCm0U!'(B$BK\%Q%C%A$O!"9q:]2=BP1~HG(B JDK $B$G$J$1$l$P!"@5$7$/ - -


-

2. $B%$%s%9%H!<%k(B

- -
    -
  1. http://xml.apache.org/dist/fop/ $B$h$j(B fop-0_16_0.zip ( or fop-0_16_0.tar.gz ) $B$r%@%&%s%m!<%I(B
  2. -
  3. fop-0_16_0.zip ( or .tar.gz ) $B$r2rE`(B
  4. -
  5. http://www.sourceforge.net/projects/jpfop/ $B$h$j(B jpfop_0_16_0.zip ( or jpfop_0_16_0.tar.gz ) $B$r%@%&%s%m!<%I(B
  6. -
  7. fop-0_16_0 $B%G%#%l%/%H%jG[2<$K(B jpfop_0_16_0.zip ( or .tar.gz ) $B$r2rE`(B
  8. -
  9. http://xml.apache.org/dist/xalan-j/ $B$h$j(B xalan-j_1_2_2.zip ( or xalan-j_1_2_2.tar.gz ) $B$r%@%&%s%m!<%I(B -
  10. xalan-j_1_2_2.zip ( or .tar.gz ) $BFb$N(B xerces.jar$B!"(Bxalan.jar$B!"(Bbsf.jar $B$r%/%i%9%Q%9$K4^$a$k!#(B -
    $BK\%Q%C%A$G$O!"4J0WE*$K!"(Bxerces.jar$B!"(Bxalan.jar$B!"(Bbsf.jar $B$r(B fop-0_16_0/lib $B%G%#%l%/%H%j$K%3%T!<$9$k$3$H$K$h$j!"<+F0E*$K$3$l$i(B jar $B%U%!%$%k$,%/%i%9%Q%9$K4^$^$l$^$9!#$b$7!"$=$l0J30$N>l=j$K(B jar $B%U%!%$%k$,$"$k>l9g$K$O!"(Bbuild-jpfop.bat $BFb$NJQ?t(B XERCES$B!"(BXALAN$B!"(BBSF $B$K(B jar $B%U%!%$%k$N>l=j$r;XDj$7$F2<$5$$!#(B
  11. -
  12. -
    $B%3%^%s%I%i%$%s$h$j(B
    -
    > cd fop-0_16_0
    -
    > build-jpfop ( or ./build-jpfop.sh )
    -
    $B$r -
  13. -
  14. BUILD SUCCESSED $B$HI=<($5$l$l$P!"F|K\8lBP1~HG(B fop-0.16.0-jp.jar $B40@.(B
  15. -
  16. -
    $BB3$1$F!"%3%^%s%I%i%$%s$h$j(B
    -
    > cd jpfop
    -
    > makesample_jpfop ( or ./makesample_jpfop.sh )
    -
    $B$H -
  17. -
-
-

-$B?^!%(Bsample_jpfop.pdf -
- -

$BCm0U!'(B$BK\%Q%C%A$O!"F|K\8l%U%)%s%H$7$+Ds6!$7$F$$$^$;$s$,!"4Z9q8l!"Cf9q8l$X$N3HD%$bMF0W$K=PMh$k$O$:$G$9!#$b$7!"K\%Q%C%A$,Ds6!$7$F$$$k0J30$N%U%)%s%H$r;HMQ$7$?$$>l9g!"(Bfop-0_16_0/src/codegen/cidfont $B$d(B fop-0_16_0/src/codegen/cmp $BG[2<$K>pJs$r:n@.$7!"(BFontSetup.java $B$H(B build-jpfop.xml $B$K$=$N>pJs$rDI2C$7$F2<$5$$!#(B

- -


-

3.1 $BF|K\?M3+H/ -

$B6/@)$G$O$"$j$^$;$s$,!"0J2<$K$D$$$F!"(Bjpfop-develop@lists.sourceforge.net $B$XJs9p$r$7$F$$$?$@$1$k$HHs>o$K=u$+$j$^$9!#K\%a!<%j%s%0%j%9%H$N>\:Y$O!"(Bhttp://lists.sourceforge.net/lists/listinfo/jpfop-develop $B$r;2>H$7$F2<$5$$!#(B

-
-
$B%3%s%Q%$%k$K$D$$$F(B
-
$B$"$J$?$N4D6-(B ( OS , JDK $B$J$I(B ) $B$G!"K\%Q%C%A$rMQ$$$F(B fop-0.16.0-jp.jar $B$,:n@.$G$-$?$+H]$+!#FC$K!"(BLinux$B!"(BBSD$B!"(BMachintosh$B!"(BHP-UX $BEy$N4D6-$G$NJs9p$OHs>o$K=u$+$j$^$9!#:n@.$G$-$J$+$C$?>l9g!"H/@8Nc30$bJs9p$7$F$$$?$@$1$k$H=u$+$j$^$9!#(B
-

-
$B
-
$B$"$J$?$N4D6-$GF|K\8l(B PDF $B$r:n@.$7$?:]!"LdBj$,$"$k$+H]$+!#K\%Q%C%A$O!"MM!9$J4D6-$G$N%F%9%H$,IT==J,$J$?$a!"$"$J$?$N4D6-$G$OLdBj$,$"$k$+$b$7$l$^$;$s!#Nc$($P!"(BWindows $B$H(B Machintosh $B$G$O!"%7%U%H(B JIS $B$N(B 0x8740 $BIU6a$N%3!<%I%]%$%s%H$,0[$J$C$F$$$^$9!#(B -
-$B$3$l$i$NJ8;z$r;HMQ$7$?:]!"J8;z2=$1Ey$NLdBj$,$"$k$+$b$7$l$^$;$s!#$7$+$7!";d$N -

-
$B1\Mw$K$D$$$F(B
-
$BK\%Q%C%A$N1\Mw$O!"8=:_!"(BWindows $BMQ(B Adobe Acrobat Reader 4.0/4.05a $B$G$N$_$7$+9T$C$F$$$^$;$s!#(BMachintosh $BMQ(B Acrobat Reader $B$d(B UNIX $BMQ(B Acrobat Reader ( acroread ) $B$G$N1\Mw$,@5>o$K9T$o$l$k$+$rJs9p$7$FD:$1$k$HHs>o$K=u$+$j$^$9!#$^$?!"LdBjJs9p$N:]$K$I$N%W%i%C%H%U%)!<%`$G:n@.$7$?(B PDF $B$r1\Mw=PMh$J$+$C$?$N$+$b=q$$$F$$$?$@$1$k$H=u$+$j$^$9!#(B
- -


-

3. $B%=!<%9(B

- -

3.1 $B=$@5$7$?%/%i%9(B

- -

$BK\%Q%C%A$G$O!"(Bfop-0.16.0 $B$N0J2<$N%/%i%9$r=$@5$7$F$$$^$9!#(B

-
-
org.apache.fop.layout.LineArea
-
org.apache.fop.pdf.PDFFontDescriptor
-
org.apache.fop.pdf.PDFDocument
-
org.apache.fop.render.pdf.PDFRenderer
-
org.apache.fop.render.pdf.FontSetup
-
- - -

3.1.1 org.apache.fop.layout.LineArea

-
-

$B=$@5$7$?$N$O(B addText() $B%a%=%C%I$G$9!#F|K\8l$O(B 2 $B%P%$%HJ8;z$J$N$G!"HO0O$O(B 0 $B$+$i(B 65535 $B$G$9!#=>Mh!"(B127 $B0J>e$NCM$r$H$kJ8;z$,$"$C$?>l9g!"<+F0E*$K(B "#" $B$KJQ49$7$F$$$?$N$G!"$=$N%3!<%I$r%3%a%s%H%"%&%H$7$^$7$?!#(B

-

$B$^$?!"=>Mh!"C18l$4$H$K2~9T$NH=Dj$r9T$C$F$$$^$7$?$,!"F|K\8l$G$OC18l$rH>3Q%9%Z!<%9$G6h@Z$i$J$$$?$a!"@5$7$/2~9T$,9T$o$l$^$;$s$G$7$?!#$=$N$?$a!"F|K\8l$N>l9g!"(B1 $B9T$KI=<($G$-$kJ8;z?t$r%*!<%P!<$7$?:]$K2~9T$9$k%3!<%I$rDI2C$7$^$7$?!#(B

-
- - -

3.1.2 org.apache.fop.pdf.PDFFontDescriptor

-
-

$B=$@5$7$?$N$O(B toPDF() $B%a%=%C%I$G$9!#(BRectangle.toPDF() $B$NLa$jCM$O!"(Bbyte[] $B$J$N$G!"4{B8$N%3!<%I$G$O(B Rectangle $B$KG[Ns$r@5$7$/I=<($7$F$$$J$$!#$3$l$O!"$*$=$i$/(B toPDF() $B%a%=%C%I$N(B BUG $B$G$7$g$&!#(B

-
-
$B=$@5A0!'(B
-
-p.append("\n/FontBBox "); p.append(fontBBox.toPDF()); -
-
$B=$@58e!'(B
-
-p.append("\n/FontBBox "); p.append(new String(fontBBox.toPDF())); -
-
-
- - -

3.1.3 org.apache.fop.pdf.PDFDocument

-
-

$B=$@5$7$?$N$O(B makeFont() $B%a%=%C%I$H(B makeFontDescriptor() $B%a%=%C%I$G$9!#(B

- -

makeFont() $B%a%=%C%I(B : FontDescriptor $B$,;XDj$5$l$F$$$J$$:]!"(BCIDFont $B$J$N$+H=Dj$7!"(BCIDFont $B$N>l9g!"(BType0 $B%U%)%s%H$HG'<1$9$k$h$&$K=$@5$7$^$7$?!#(B

- -

makeFontDescriptor() $B%a%=%C%I(B : $B%*%W%7%g%s$NB0@-$rDs6!$7$?(B OptionalFontDescriptor $B%/%i%9$,0z?t$GEO$5$l$?>l9g$H$=$&$G$J$$>l9g$N=hM}$rJ,$1$^$7$?!#$^$?!"(BPDFFontDescriptor $B%*%V%8%'%/%H$r%$%s%9%?%s%92=$9$k:]!"(BItalicAngle $B$H(B StemV $B$N0LCV$,5U$K$J$C$F$$$^$7$?!#$3$l$O!"$*$=$i$/(B BUG $B$G$7$g$&!#(B

-
- - -

3.1.4 org.apache.fop.render.pdf.PDFRenderer

-
-

$B=$@5$7$?$N$O(B renderInlineArea() $B%a%=%C%I$G$9!#(BType0 $B%U%)%s%H(B ( CIDFont ) $B$N>l9g$N=hM}$rDI2C$7$^$7$?!#$^$:!"(BUTF-8 $B$NJ8;zNs$r(B CIDFont $B$G;XDj$7$?%(%s%3!<%G%#%s%0$GJQ49$7$^$9!#(BCIDFontType2 $B$N>l9g!"%3!<%I%]%$%s%H$O(B TrueType $B$J$N$G$=$N$^$^=q$-=P$7$^$9!#(B

- -

CIDFontType0 $B$N>l9g!"%3!<%I%]%$%s%H$O(B Adobe Type1 $B$J$N$G!"(BCIDFont $B$G;XDj$7$?(B CMap $B$K4p$E$$$F%^%C%T%s%0$r9T$$$^$9!#$=$7$F!"(BItalic $B$N>l9g!"J8;z$rl9g!"0LCV$r$:$i$7$J$,$i(B 4 $B2s=q$/=hM}$r$7$^$9!#(B

-
- - -

3.1.5 org.apache.fop.render.pdf.FontSetup

-
-

$B=$@5$7$?$N$O(B setup() $B%a%=%C%I$G$9!#F|K\8l(B Font $B$rDI2C$7$^$7$?!#(B

-
- - -

-

3.2 $B?75,$KDI2C$5$l$k%/%i%9$H%$%s%?%U%'%$%9(B

- -

$BK\%Q%C%A$G$O!"(Bfop-0.16.0 $B$KBP$7$F0J2<$N%/%i%9$H%$%s%?%U%'%$%9$r?75,$KDI2C$7$^$9!#(B

-
-
org.apache.fop.layout.OptionalFontDescriptor
-
org.apache.fop.pdf.PDFCIDFont
-
org.apache.fop.pdf.PDFOptionalFontDescriptor
-
org.apache.fop.pdf.PDFFontType0
-
org.apache.fop.render.pdf.CIDFont
-
org.apache.fop.render.pdf.CMap
-
- - -

3.2.1 org.apache.fop.layout.OptionalFontDescriptor

-
-

$B%*%W%7%g%s$NB0@-$rDs6!$7$?(B FontDescriptor $B%$%s%?%U%'%$%9$G$9!#(BFontDescriptor $B$N>\:Y$K$D$$$F$O!"(BPDF1.3 Reference Manual [1] 7.11 Font descriptors p.222 $B$r;2>H$7$F2<$5$$!#(B

-
- - -

3.2.2 org.apache.fop.pdf.PDFCIDFont

-
-

PDF $BCf$N(B CIDFont $B%*%V%8%'%/%H$rI=$9%/%i%9$G$9!#(BCIDFont $B$N>\:Y$K$D$$$F$O!"(BPDF1.3 Reference Manual [1] 7.8 CIDFonts p.210 $B$d(B Adobe CMap and CID Font Files Specification Version 1.0 [2] $B$r;2>H$7$F2<$5$$!#(B

-
- - -

3.2.3 org.apache.fop.pdf.PDFOptionalFontDescriptor

-
-

PDF $BCf$N(B FontDescriptor $B$N%*%W%7%g%s$NB0@-$rI=$9%/%i%9$G$9!#(B

-
- - -

3.2.4 org.apache.fop.pdf.PDFFontType0

-
-

PDF $BCf$N(B Type0 $B%U%)%s%H$rI=$9%/%i%9$G$9!#(BType0 $B%U%)%s%H$N>\:Y$K$D$$$F$O!"(BPDF1.3 Reference Manual [1] 7.7.7 Type0 Fonts p.207 $B$r;2>H$7$F2<$5$$!#(B

-
- - -

3.2.5 org.apache.fop.render.pdf.CIDFont

-
-

CIDFont $B$rI=$9%/%i%9$G$9!#(B

-
- - -

3.2.6 org.apache.fop.render.pdf.CIDFontWidthsEntry

-
-

CIDFont $B$N(B Width $B$K4^$^$l$k%(%s%H%j$rI=$9%/%i%9$G$9!#(BCIDFont $B$G$O!"(B

-
    -
  • C [ W1 W2 ... Wn ]
  • -
  • Cfirst Clast W
  • -
-

$B$N(B 2 $B\:Y$O!"(BPDF1.3 Reference Manual [1] 7.8.3 Character widths in CIDFonts p.213 $B$r;2>H$7$F2<$5$$!#(B

-
- - - -

3.2.7 org.apache.fop.render.pdf.CMap

-
-

$B%3!<%I%]%$%s%H$rI=$9%$%s%?%U%'%$%9$G$9!#;XDj$5$l$?%3!<%I%]%$%s%H$r(B CMap $B$K=>$C$F%^%C%T%s%0$7$^$9!#F|K\8l$N(B Adobe $B%3!<%I%]%$%s%H$K$D$$$F$O!"(BAdobe-Japan1-4 Character Collection for CID-Keyed Fonts [3] $B$r;2>H$7$F2<$5$$!#(B

-
- -

3.2.8 org.apache.fop.render.pdf.Widths

-
-

Width $BB0@-$rI=$9%/%i%9$G$9!#(B

-
- - -

-

3.3 $B?75,$K:n@.$5$l$k%/%i%9(B

- -

$BK\%Q%C%A$G$O!"(Bfop-0.16.0 $B$KBP$7$F!"(Bcodegen $B$rMxMQ$7$F0J2<$N%/%i%9$,(B XML $B%U%!%$%k$+$i<+F0E*$K@8@.$5$l$^$9!#(B

-
-
org.apache.fop.render.pdf.cmap._90ms_RKSJ_H
-
org.apache.fop.render.pdf.fonts.jp.GothicBBBMedium
-
org.apache.fop.render.pdf.fonts.jp.MSGothic
-
org.apache.fop.render.pdf.fonts.jp.MSGothicAlias
-
org.apache.fop.render.pdf.fonts.jp.MSGothicBold
-
org.apache.fop.render.pdf.fonts.jp.MSGothicBoldAlias
-
org.apache.fop.render.pdf.fonts.jp.MSGothicBoldItalic
-
org.apache.fop.render.pdf.fonts.jp.MSGothicBoldItalicAlias
-
org.apache.fop.render.pdf.fonts.jp.MSGothicItalic
-
org.apache.fop.render.pdf.fonts.jp.MSGothicItalicAlias
-
org.apache.fop.render.pdf.fonts.jp.MSMincho
-
org.apache.fop.render.pdf.fonts.jp.MSMinchoAlias
-
org.apache.fop.render.pdf.fonts.jp.MSMinchoBold
-
org.apache.fop.render.pdf.fonts.jp.MSMinchoBoldAlias
-
org.apache.fop.render.pdf.fonts.jp.MSMinchoBoldItalic
-
org.apache.fop.render.pdf.fonts.jp.MSMinchoBoldItalicAlias
-
org.apache.fop.render.pdf.fonts.jp.MSMinchoItalic
-
org.apache.fop.render.pdf.fonts.jp.MSMinchoItalicAlias
-
org.apache.fop.render.pdf.fonts.jp.Osaka
-
org.apache.fop.render.pdf.fonts.jp.RyuminLight
-
- - -


-

4. $B4{CN$NF|K\8lBP1~%Q%C%A$NLdBj(B

- -

$BK\%I%-%e%a%s%H$G$O!"0lIt$r=|$-!"F|K\8lBP1~$K$*$1$k4{CN$NLdBj$N$_=q$+$l$F$$$^$9!#(BFOP $B$NLdBj$K$D$$$F$O!"(Bfop-dev@xml.apache.org $B$d(B fop-cvs@xml.apache.org $B$r;2>H$7$F2<$5$$!#(B

- -
    -
  • SVG $B$G$NF|K\8l(B -
    -$BK\%Q%C%A$G$O(B SVG $B$G$NF|K\8lI=<($r%5%]!<%H$7$F$$$^$;$s!#(B -
  • - -
  • $B%O%$%U%M!<%7%g%s(B -
    -$BF|K\8l$HF|K\8l0J30$,4^$^$l$kJ8=q$G!"F|K\8l0J30$NC18l$,9T$N:G8e$GJ,3d$5$l$k:]!"%O%$%U%M!<%7%g%s$r;XDj$7$F$b%O%$%U%M!<%7%g%s$=$NC18l$,%O%$%U%M!<%7%g%s$5$l$^$;$s!#$3$l$O!"F|K\8lJ8=q$G$O%O%$%U%M!<%7%g%s$r;HMQ$7$J$$$+$i$G$9!#(B -
  • - -
  • Unicode $BL$%5%]!<%H(B -
    -PDF1.3 Reference Manual [1] 7.7 Fonts p.199 $B$d(B 7.10.1 ToUnicode CMaps p.219 $B$K$h$k$H!"(BType0 $B%U%)%s%H$G$b(B ToUnicode $BB0@-$rMQ$$$k$3$H$K$h$jJ8;z%3!<%I$r(B Unicode $B$K%^%C%T%s%02DG=$H$J$C$F$$$^$9!#$7$+$7!"K\%Q%C%A$G$O$3$N5!G=$r%5%]!<%H$7$F$$$^$;$s!#$3$l$O!"F|K\8l2=%Q%C%A$H$$$&$h$j$b(B FOP $B$NLdBj$+$b$7$l$^$;$s!#(B -
  • - -
  • $BKd$a9~$_(B CMap $BL$%5%]!<%H(B -
    -PDF1.3 Reference Manual [1] 7.10 CMaps p.117 $B$K$h$k$H!"(BPDF $BJ8=qFb$K(B CMap $B$N>pJs$rKd$a9~$`$3$H$,$G$-$^$9!#$7$+$7!"K\%Q%C%A$G$O(B CMap $B>pJs$r(B PDF $BJ8=qFb$KKd$a9~$`$3$H$O$G$-$^$;$s!#(B -
  • - -
  • $BKd$a9~$_%U%)%s%HL$%5%]!<%H(B -
    -PDF1.3 Reference Manual [1] $B$N(B 7.11 Font descriptors p.223 $B$K$h$k$H!"(BFontDescriptor $B$G(B PDF $BJ8=qFb$K%U%)%s%H$rKd$a9~$`$3$H$,2DG=$H$J$C$F$$$^$9!#$7$+$7!"K\%Q%C%A$G$OF|K\8l%U%)%s%H$r(B PDF $BJ8=qFb$KKd$a9~$`$3$H$O$G$-$^$;$s!#$3$l$O!"F|K\8l2=%Q%C%A$H$$$&$h$j$b(B FOP $B$NLdBj$+$b$7$l$^$;$s!#(B -
  • - -
  • $B%U%)%s%H%5%V%;%C%HL$%5%]!<%H(B -
    -PDF1.3 Reference Manual [1] $B$N(B 7.7.4 Font Subsets p.204 $B$K$h$k$H!"(BFont $B$N(B BaseFont $B$d(B FontDescriptor $B$N(B FontName $B$NCM$N7A<0$O!"(BPostscript $BA0$K%f%K!<%/$J(B 6 $BBgJ8;z$rIU$1$k$H$J$C$F$$$^$9!#$7$+$7!"K\%Q%C%A$G$O%f%K!<%/$J(B 6 $BBgJ8;z$,IU$-$^$;$s!#(B -
  • - -
  • $B2<@~(B -
    -$BH>3Q%9%Z!<%9$G6h@Z$i$l$?J#?t$NC18l$K2<@~$r0z$/$H!"C18lKh$K2<@~$,ES@Z$l$F$7$^$7$^$9!#$3$l$O!"(BFOP $B$N%P%0$G$"$j!";~4|%P!<%8%g%s$G$O2~=$$5$l$^$9!#>\:Y$O!"(Bfop-dev@apache.org $B$r;2>H$7$F2<$5$$!#(B -
  • -
- - -


-

5. $B%j%U%!%l%s%9(B

-
    -
  1. Portable Document Format Reference Manual Version 1.3$B!'(B
    -http://partners.adobe.com/asn/developer/acrosdk/DOCS/PDFRef.pdf
  2. -
  3. Adobe CMap and CID Font Files Specification Version 1.0$B!'(B
    -http://partners.adobe.com/asn/developer/PDFS/TN/5014.CMap_CIDFont_Spec.pdf
  4. -
  5. Adobe-Japan1-4 Character Collection for CID-Keyed Fonts$B!'(B
    -http://partners.adobe.com/asn/developer/PDFS/TN/5078.Adobe-Japan1-4.pdf
  6. -
  7. Adobe Font Metrics File Format Specification Version 4.1:
    -http://partners.adobe.com/asn/developer/PDFS/TN/5004.AFM_Spec.pdf
  8. -
- - - diff --git a/jpfop-0.17.0/sample_jpfop.fo b/jpfop-0.17.0/sample_jpfop.fo deleted file mode 100644 index 7dda20fa1..000000000 --- a/jpfop-0.17.0/sample_jpfop.fo +++ /dev/null @@ -1,251 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - -FOP-0.16.0 日本語化パッチ p. - - - - - - - - - - - - - - - JAPANIZED FOP - - - - -本パッチは、Apache の FOP ( http://xml.apache.org/fop ) の日本語対応パッチです。本パッチは、FOP-0.16.0 に対して適用可能です。 -日本語 PDF 作成に関して、ベンダのサポートを受けたい場合には、本パッチではなく、他の商用製品を使用するようにしましょう! - - -使用可能ファミリフォント名一覧 - -MS明朝orMS-Mincho - - - - - ・ - - - ファミリフォント MS明朝 - - - - - - ・ - - - ファミリフォント MS-Mincho で BOLD を指定 - - - - - - ・ - - - ファミリフォント MS-Mincho でイタリックを指定 - - - - - - ・ - - - ファミリフォント MS明朝 で BOLD とイタリックを指定 - - - - - -MSゴシックorMS-Gothic - - - - - ・ - - - ファミリフォント MSゴシック - - - - - - ・ - - - ファミリフォント MS-Gothic で BOLD を指定 - - - - - - ・ - - - ファミリフォント MS-Gothic でイタリックを指定 - - - - - - ・ - - - ファミリフォント MSゴシック で BOLD とイタリックを指定 - - - - - -Ryumin-Light ( リュウミンL-KL ) - - - - - ・ - - - ファミリフォント Ryumin-Light - - - - - ・ - - - ファミリフォント Ryumin-Light で BOLD を指定 - - - - - ・ - - - ファミリフォント Ryumin-Light でイタリックを指定 - - - - - ・ - - - ファミリフォント Ryumin-Light で BOLD とイタリックを指定 - - - - -GothicBBB-Medium ( 中ゴシックBBB ) - - - - - ・ - - - ファミリフォント GothicBBB-Medium - - - - - ・ - - - ファミリフォント GothicBBB-Medium で BOLD を指定 - - - - - ・ - - - ファミリフォント GothicBBB-Medium でイタリックを指定 - - - - - ・ - - - ファミリフォント GothicBBB-Medium で BOLD とイタリックを指定 - - - - -Osaka - - - -ファミリフォント名による動作の違い - -ファミリフォントに、MS明朝 ( or MS-Mincho )、MSゴシック ( or MS-Gothic )、Osaka を指定した場合、CMap に基づく変換を行わないません。そのため、PDF ファイルに対してシフト JIS で日本語を書き込みます。 - -ファミリフォントに、Ryumin-Light、GothicBBB-Medium を指定した場合、CMap に基づく変換を行います。そのため、MS明朝やMSゴシックを指定する場合よりも処理時間が長くなりますが、PDF ファイルに対して CIDFont で日本語を書き込みます。 - -なお、本パッチでは、PDF ファイルに対するフォントの埋め込み機能は提供していません。 - - - - - -- 2.39.5