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 bu...@apache.org on 2009/02/27 04:42:54 UTC

DO NOT REPLY [Bug 46775] New: can't render a block with 2 asian languages

https://issues.apache.org/bugzilla/show_bug.cgi?id=46775

           Summary: can't render a block with 2 asian languages
           Product: Fop
           Version: 0.20.5
          Platform: All
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: fonts
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: bin.wu4@hp.com


we have a xml tag like this:
<fo:block language="en" font-family="SimHei, Angsa, SimSun" hyphenate="true">
    <xsl:value-of select="@FIELD_1"/>
</fo:block>
the value of attribute FIELD_1 maybe contain two asian langugage, for example
chinese and thailand. 
So I try to convert this tag to pdf file and I add font metric xml files for
SimHei(chinese bold fonts), Angsa(thailand fonts), SimSun(chinese fonts). 
But only the first font-family is effective. 
I mean if we put the Angsa(thailand fonts) first in the font-family attribute,
then the thailan can be correctly displayed but the chinese character display
incorrectly. 
If I put the SimHei(chinese bold fonts) first, then the chinese character
display correctly while the thailand display incorrrectly.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 46775] can't render a block with 2 asian languages

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46775

Glenn Adams <gl...@skynav.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

--- Comment #5 from Glenn Adams <gl...@skynav.com> 2012-04-01 13:54:44 UTC ---
batch transition to closed remaining pre-FOP1.0 resolved bugs

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 46775] can't render a block with 2 asian languages

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46775





--- Comment #3 from Georg Datterl <gd...@geneon.de>  2009-02-27 03:13:20 PST ---
First, I don't think the contributors are still supporting version 0.20.5, even
if you file it as a bug. For further help, move to the mailing list
fop-users@xmlgraphics.apache.org

Second, I'm quite sure what you defined are fallback fonts. Fop is looking for
font SimHei to render the block. If SimHei is not found, Angsa is used. If
Angsa isn't found either, SimSun is used. 

Third, how exactly should Fop guess which character to display in which
language, if you only hand over a set of languages and a string? 

Fourth, as a solution, you might try to split your multi-language string in
different fo:inline objects and set the correct fonts for the inline objects.
Then fop may know, which character to display in which font.

HTH.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 46775] can't render a block with 2 asian languages

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46775





--- Comment #1 from bin <bi...@hp.com>  2009-02-26 19:46:27 PST ---
Created an attachment (id=23318)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23318)
the xslt file

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 46775] can't render a block with 2 asian languages

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46775





--- Comment #2 from bin <bi...@hp.com>  2009-02-26 19:48:05 PST ---
Created an attachment (id=23319)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23319)
the xml data

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 46775] can't render a block with 2 asian languages

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46775


Max Berger <ma...@berger.name> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




--- Comment #4 from Max Berger <ma...@berger.name>  2009-03-02 04:17:12 PST ---
Please retest with a recent fop version. Multiple Fonts where not supported in
0.20, and are just now supported in the most recent version of FOP. If the
problem persists in 0.95, please re-open the bug.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.