You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Dongsheng Song <do...@gmail.com> on 2009/01/14 11:11:49 UTC

Re: Character-by-character font selection strategy

II have been googled the discuss[1,2], and Max Berger's patch[3], and
the wiki[4].
The patch or wiki is too old, not apply to the trunk.

What's the current status, can someone update it ? I

[1] http://marc.info/?t=118297384000002&r=1&w=2
[2] http://marc.info/?t=117802601300002&r=1&w=2
[3] https://issues.apache.org/bugzilla/show_bug.cgi?id=39422
[4] http://wiki.apache.org/xmlgraphics-fop/FontSelectionStrategy

Dongsheng Song

Re: Character-by-character font selection strategy

Posted by Max Berger <ma...@berger.name>.
Dongsheng,

looks like you'll have to wait for proper character selection to be
implemented - this should solve your problems. For now you could try to
add a space between your characters and the rest of the word, or use a
full unicode font such as DejaVu.

Max

Dongsheng Song schrieb:
> Did you mean this example[1] ? It great increase the fo file size,
> and I use DocBook, don't know how to use this feather in xsl,
> can you give me some advice ?
> 
> [1] http://www.zvon.org/HowTo/Output/FOP0.18.1_examples_character.php
> 
> Dongsheng Song
> 
> 2009/1/16 Max Berger <ma...@berger.name>:
>> there is: please use fo:character, which should work just as expected.
>>


-- 
http://max.berger.name/
OpenPGP ID: C93C5700 Fpr: AB6638CE472A499B3959 ADA2F989A2E5C93C5700


Re: Character-by-character font selection strategy

Posted by Dongsheng Song <do...@gmail.com>.
Did you mean this example[1] ? It great increase the fo file size,
and I use DocBook, don't know how to use this feather in xsl,
can you give me some advice ?

[1] http://www.zvon.org/HowTo/Output/FOP0.18.1_examples_character.php

Dongsheng Song

2009/1/16 Max Berger <ma...@berger.name>:
> there is: please use fo:character, which should work just as expected.
>

Re: Character-by-character font selection strategy

Posted by Max Berger <ma...@berger.name>.
Dongshen,

there is: please use fo:character, which should work just as expected.

hth

Max

Am 15.01.2009 15:02, schrieb Dongsheng Song:
> The wiki[2] same as web[1] for 'Font Selection Strategies'. But 'Word-by-Word'
> can't meet my case. For string '&#xB2E2;&#xCAD4;teststring', if I specify
> font-family="Times, SimSun", FOP paint using Times characters, not SimSun,
> so I got missing glyphs.
>
> I's there a way treat a single Chinese char(e.g. '&#xB2E2') as a word ?
>
> [1] http://wiki.apache.org/xmlgraphics-fop/FontSelectionStrategy
> [2] http://xmlgraphics.apache.org/fop/trunk/fonts.html#selection
>
> 2009/1/15 Max Berger<ma...@berger.name>:
>> Dear Dongsheng Song,
>>
>> the patch you refer to is outdated and the issue of character handling
>> has changed since your quoted messages. I have just now updated the Wiki
>> to reflect the changes. Please email back to the list if anything is
>> unclear.
>>
>> Max
>>
>> Dongsheng Song schrieb:
>>> II have been googled the discuss[1,2], and Max Berger's patch[3], and
>>> the wiki[4].
>>> The patch or wiki is too old, not apply to the trunk.
>>>
>>> What's the current status, can someone update it ? I
>>>
>>> [1] http://marc.info/?t=118297384000002&r=1&w=2
>>> [2] http://marc.info/?t=117802601300002&r=1&w=2
>>> [3] https://issues.apache.org/bugzilla/show_bug.cgi?id=39422
>>> [4] http://wiki.apache.org/xmlgraphics-fop/FontSelectionStrategy
>>>
>>> Dongsheng Song
>>
>> --
>> http://max.berger.name/
>> OpenPGP ID: C93C5700 Fpr: AB6638CE472A499B3959 ADA2F989A2E5C93C5700
>>
>>

Re: Character-by-character font selection strategy

Posted by Dongsheng Song <do...@gmail.com>.
The wiki[2] same as web[1] for 'Font Selection Strategies'. But 'Word-by-Word'
can't meet my case. For string '&#xB2E2;&#xCAD4;teststring', if I specify
font-family="Times, SimSun", FOP paint using Times characters, not SimSun,
so I got missing glyphs.

I's there a way treat a single Chinese char(e.g. '&#xB2E2') as a word ?

[1] http://wiki.apache.org/xmlgraphics-fop/FontSelectionStrategy
[2] http://xmlgraphics.apache.org/fop/trunk/fonts.html#selection

2009/1/15 Max Berger <ma...@berger.name>:
> Dear Dongsheng Song,
>
> the patch you refer to is outdated and the issue of character handling
> has changed since your quoted messages. I have just now updated the Wiki
> to reflect the changes. Please email back to the list if anything is
> unclear.
>
> Max
>
> Dongsheng Song schrieb:
>> II have been googled the discuss[1,2], and Max Berger's patch[3], and
>> the wiki[4].
>> The patch or wiki is too old, not apply to the trunk.
>>
>> What's the current status, can someone update it ? I
>>
>> [1] http://marc.info/?t=118297384000002&r=1&w=2
>> [2] http://marc.info/?t=117802601300002&r=1&w=2
>> [3] https://issues.apache.org/bugzilla/show_bug.cgi?id=39422
>> [4] http://wiki.apache.org/xmlgraphics-fop/FontSelectionStrategy
>>
>> Dongsheng Song
>
>
> --
> http://max.berger.name/
> OpenPGP ID: C93C5700 Fpr: AB6638CE472A499B3959 ADA2F989A2E5C93C5700
>
>

Re: Character-by-character font selection strategy

Posted by Max Berger <ma...@berger.name>.
Dear Dongsheng Song,

the patch you refer to is outdated and the issue of character handling
has changed since your quoted messages. I have just now updated the Wiki
to reflect the changes. Please email back to the list if anything is
unclear.

Max

Dongsheng Song schrieb:
> II have been googled the discuss[1,2], and Max Berger's patch[3], and
> the wiki[4].
> The patch or wiki is too old, not apply to the trunk.
> 
> What's the current status, can someone update it ? I
> 
> [1] http://marc.info/?t=118297384000002&r=1&w=2
> [2] http://marc.info/?t=117802601300002&r=1&w=2
> [3] https://issues.apache.org/bugzilla/show_bug.cgi?id=39422
> [4] http://wiki.apache.org/xmlgraphics-fop/FontSelectionStrategy
> 
> Dongsheng Song


-- 
http://max.berger.name/
OpenPGP ID: C93C5700 Fpr: AB6638CE472A499B3959 ADA2F989A2E5C93C5700