RE: Japanese fonts do not appear in desired weights

2003-12-08 Thread Glen Mazza
--- Graham Hannington [EMAIL PROTECTED] wrote:
 The home page also offers instructions that are
 probably perfectly readable
 in Japanese, or to a more experienced FOP user, but
 I have not been able to
 get anywhere with this.
 
...
 I'd really like to get JPFOP working, not just for
 the multiple weight
 fonts, but also because it appears to fix the FOP
 line break issue in
 Japanese (where lines can sometimes begin with a
 punctuation mark).
 
 Any advice would be greatly appreciated.
 
 Regards,
 Graham Hannington
 

A search on JPFOP and its author gave a
Japanese-language XML ML--
http://www2.xml.gr.jp/1ml_logmain.html?MLID=jaxml-dev,

which may be of help.  The author appears very active
on that list and may be able to help you.  (I'm unsure
how to subscribe to it, however.)

Glen


__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Japanese fonts do not appear in desired weights

2003-12-02 Thread Graham Hannington
 This means you can only select MS Mincho and MS PMincho

I can already use both MS Mincho (monospace) and MS PMincho (the P stands
for Proportional) just fine. The problem is that I cannot make these fonts
appear in different weights. (Or perhaps I've completely missed the point of
your email?)

Does anyone know what the status of JPFOP (http://jpfop.sourceforge.net) is?
The home page offers a tantalizing glimpse of what appears to be MS Mincho
and MS Gothic and multiple weights and styles.

The home page also offers instructions that are probably perfectly readable
in Japanese, or to a more experienced FOP user, but I have not been able to
get anywhere with this.

I currently have FOP 0.20.4 installed. I've copied the latest JPFOP .jar
(for 0.20.2, provided on the JPFOP site) to the same build directory as the
0.20.4 FOP .jar, and tried running this:

C:\devtools\Docs\fopjava -Xmx200m -cp
build\fop-0.20.2-jp.jar;lib\batik.jar;lib
\xalan-2.3.1.jar;lib\xercesImpl-2.0.1.jar;lib\xml-apis.jar;lib\avalon-framew
ork-
cvs-20020315.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar org.apache.fop.apps.Fop
-c
conf/userconfig.xml C:\projects_docs\source\MakePDF.fo
C:\projects_docs\Techn
icalAuthorGuideJ.pdf

This results in:

Exception in thread main java.lang.NoClassDefFoundError:
org/apache/log/format
/Formatter
at org.apache.fop.apps.Fop.main(Fop.java:16)

With apologies: I'm no Java developer... anyone who knows anything about
Java will likely be dismayed at this hamfisted attempt. I'm thinking that
perhaps this JPFOP .jar is not compatible with the other .jar files.

Finally, the JPFOP 0.17.0 .zip includes some font metrics XML files with
names like MSGothicBold.xml, that would seem to offer the promise (like the
bitmap of the PDF on the home page) of multiple weights from the
msgothic.ttc. I've tried referring to these XML files in userconfig.xml with
FOP 0.20.4, but it causes FOP to crash with an unspecified error.

I wish I understood better how JPFOP created these weight-specific XML files
(and why they don't work with FOP 0.20.4).

I'd really like to get JPFOP working, not just for the multiple weight
fonts, but also because it appears to fix the FOP line break issue in
Japanese (where lines can sometimes begin with a punctuation mark).

Any advice would be greatly appreciated.

Regards,
Graham Hannington

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Japanese fonts do not appear in desired weights

2003-12-02 Thread J.Pietschmann
Graham Hannington wrote:
I can already use both MS Mincho (monospace) and MS PMincho (the P stands
for Proportional) just fine. The problem is that I cannot make these fonts
appear in different weights. (Or perhaps I've completely missed the point of
your email?)
FOP does not have an engine to create fonts with different weight
a single typeface definition. You must supply a separate typeface
definition for every weight you want to use. The MS Mincho TTC
apparently contains only a single typeface definition for Mincho
(monospace) or PMincho (propiortional), respectively. This means
You'll have to get a bold Mincho font from elsewhere.
J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Japanese fonts do not appear in desired weights

2003-12-02 Thread Graham Hannington
 FOP does not have an engine to create fonts with different weight a single
typeface definition.

Gotcha, thanks. I think this is what JPFOP, er, kludges (no disrespect
intended to the developer). From the JPFOP site:

 renderInlineArea() method was modified. ... For Bold, the characters are
rendered 4 times with offset.

If I read this correctly, and JPFOP is doing what I think it's doing to
emulate a true bold weight, then: ingenious, but... yeurch! ;-)

A more elegant (if you like, proper) solution, as you say, would be to get
a font that actually contains the different weights. I'm looking at:

http://www.ricoh.co.jp/swd/font/valu-d2/wabun/index.html

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Japanese fonts do not appear in desired weights

2003-12-02 Thread Victor Mote
Graham Hannington wrote:

 Gotcha, thanks. I think this is what JPFOP, er, kludges (no disrespect
 intended to the developer). From the JPFOP site:

  renderInlineArea() method was modified. ... For Bold, the characters are
 rendered 4 times with offset.

 If I read this correctly, and JPFOP is doing what I think it's doing to
 emulate a true bold weight, then: ingenious, but... yeurch! ;-)

 A more elegant (if you like, proper) solution, as you say,
 would be to get
 a font that actually contains the different weights. I'm looking at:

 http://www.ricoh.co.jp/swd/font/valu-d2/wabun/index.html

Yes, printing the glyph 4 times might be acceptable for printing, but not
for searching or indexing. See also:
http://www.adobe.com/type/browser/C/C_japanese.jhtml

Also, keep in mind FOP's current limitations WRT fonts in general:
http://xml.apache.org/fop/fonts.html

Victor Mote


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Japanese fonts do not appear in desired weights

2003-11-26 Thread Andreas L. Delmelle
 -Original Message-
 From: Graham Hannington

 I'm using FOP to produce English and Japanese PDFs.

snip /

 In the Japanese PDFs, the fonts appear at a single weight. PMincho appears
 throughout in normal weight, Gothic appears throughout in bold weight.
 Weird.

 MS PMincho and MS Gothic are defined in TrueType collection (.ttc) files,
 msmincho.ttc and msgothic.ttc.


When embedding fonts, a separate metrics file should be generated for bold,
italic and bold-italic (that is, if you want them to work properly). Right
now, your userconfig maps all combinations (normal, bold, italic,
bold-italic) to one and the same metrics file.



Greetz,


Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Japanese fonts do not appear in desired weights

2003-11-26 Thread Chris Bowditch
Graham Hannington wrote:
I'm using FOP to produce English and Japanese PDFs.
For English, I use Helvetica and the system monospace (Courier) fonts. For
Japanese, I use MS PMincho and MS Gothic.
In the English PDFs, the fonts appear at their desired weights (such as bold
or normal).
In the Japanese PDFs, the fonts appear at a single weight. PMincho appears
throughout in normal weight, Gothic appears throughout in bold weight.
Weird.
Unlike M$ Word, XSL-FO processors do not emulate bold text. Therefore 
the its up to the source font to contain glyphs for both bold and normal 
weights.

Japanese Fonts typically contain glyphs for one weight. I know this 
because this subject has been discussed on this list before.

Recommended course of action: find a Japanesse font that has glyphs for 
both weights. Although I'm not sure any exist; hence the frequency of 
this question.

snip/
Chris

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Japanese fonts do not appear in desired weights

2003-11-26 Thread Graham Hannington
Andreas, Chris,

Thanks very much for your responses.

Andreas,

 When embedding fonts, a separate metrics file should be generated for
bold, italic and bold-italic (that is, if you want them to work properly).
Right now, your userconfig maps all combinations (normal, bold, italic,
bold-italic) to one and the same metrics file.

Yep, I can see how that would be a problem... in my defence ;-), I was just
copying lines in the supplied userconfig.xml that also does this. Is there a
way to get TTFReader to extract separate bold, italic and bold-italic XML
metrics files from a single .ttc? (This is assuming that the .ttc *does
actually* contain the bold etc. glyphs, as per Chris's point, below.)

It does strike me as weird that MS Gothic is showing up in bold... when I
view this font in the Windows Character Map application, or set the Notepad
font to MS Gothic, then it appears at a much lighter (I presume, normal)
weight. Any idea why this might be happening? (On the positive side, maybe
this means that the msgothic.ttc *does* contain both normal and bold
faces... if only I knew how to generate separate metrics files for each
weight.)

Chris,

 Unlike M$ Word, XSL-FO processors do not emulate bold text. Therefore
the its up to the source font to contain glyphs for both bold and normal
weights.

Ah, gotcha. Is there an easy way to find out for sure whether fonts
(specifically, the fonts in msgothic.ttc and msmincho.tff) actually *do*
contain the different weight glyphs? (Erm, I mean: in addition to trying to
render these fonts in bold via an XSL-FO processor? ;-)

 Japanese Fonts typically contain glyphs for one weight. I know this
because this subject has been discussed on this list before.

Oops: I did search the archives before I asked, I swear :-). I've gone back
and had another look...

 Recommended course of action: find a Japanesse font that has glyphs for
both weights. Although I'm not sure any exist; hence the frequency of this
question.

I can't see any suggestions for (freeware) Japanese fonts (I'm cheap too :-)
with different glyph weights... anyone know of any, and where I can get 'em?
(I'm off to Google for some now...) If I can't find any, then, as suggested
by others in previous emails, I'll make do with a combination of fonts
(although why MS Gothic appears in bold still bugs me...).

Thanks again for the advice.

Regards,
Graham Hannington

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Japanese fonts do not appear in desired weights

2003-11-26 Thread Andreas L. Delmelle
 -Original Message-
 From: Graham Hannington [mailto:[EMAIL PROTECTED]

 Yep, I can see how that would be a problem... in my defence ;-),
 I was just
 copying lines in the supplied userconfig.xml that also does this.
 Is there a
 way to get TTFReader to extract separate bold, italic and bold-italic XML
 metrics files from a single .ttc? (This is assuming that the .ttc *does
 actually* contain the bold etc. glyphs, as per Chris's point, below.)


If it does, it probably has a separate name for each series of glyphs for
the different weights/styles (haven't used any embedded fonts other than
.ttf already split up in separate files, so can't say for sure)

I would definitely try generating a different .xml from the same .ttc, but
change the -ttc param to say MS Mincho Bold (--you get the idea) See if
that works out okay.


Cheers,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Japanese fonts do not appear in desired weights

2003-11-26 Thread Graham Hannington
 I would definitely try generating a different .xml from the same .ttc, but
change the -ttc param to say MS Mincho Bold (--you get the idea) See if
that works out okay.

I tried MS Mincho Bold and several other variations (... bold,
...-Bold, ... (Bold)), but they all resulted in:

This is a TrueType collection file with2 fonts
Containing the following fonts:
MS Mincho
MS PMincho
java.io.IOException: Failed to read font
at org.apache.fop.fonts.TTFFile.readFont(Unknown Source)
at org.apache.fop.fonts.apps.TTFReader.loadTTF(Unknown Source)
at org.apache.fop.fonts.apps.TTFReader.main(Unknown Source)


Shame, it *was* a nice idea. Thanks for the suggestion :-).

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Japanese fonts do not appear in desired weights

2003-11-26 Thread J.Pietschmann
Graham Hannington wrote:
This is a TrueType collection file with2 fonts
Containing the following fonts:
MS Mincho
MS PMincho
This means you can only select MS Mincho and MS PMincho.
Whatever the last one is. Generate the metrics, an appropriate
userconfig and try it out:
 fo:block font-family='MS Mincho'#x3053;#x3093;#x306b;
  /fo:block
 fo:block font-family='MS PMincho'#x3053;#x3093;#x306b;
  /fo:block
J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]