When I export pdf file from a order, Simplified chinese characters are displayed as #####.How to resolve these problems?
|
hi,
Need to setup font family for this issue. Please refer for setup font family "Using TTF fonts in FOP" of http://cwiki.apache.org/confluence/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-OFBizWikiSearch On Tue, Feb 23, 2010 at 6:54 PM, zhiyongcui <[hidden email]> wrote: > > When I export pdf file from a order, Simplified chinese characters are > displayed as #####.How to resolve these problems? > -- > View this message in context: > http://n4.nabble.com/simplified-chinese-problem-tp1565879p1565879.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > -- Thanks Brajesh Patel HotWax Media http://www.hotwaxmedia.com |
It doesn't do anything .I think it should be a FAQ,but I can't find anything usable.
|
hi,
content of the given link as follows: You can use TTF fonts in fo.ftl files. You need to use file "framework/webapp/config/fop.xconf". This file contain following code that responsible for font family, change font family according to the requirement, exemple <font metrics-url="arial.xml" kerning="yes" embed-url="arial.ttf"> <font-triplet name="Arial" style="normal" weight="normal"/> <font-triplet name="ArialMT" style="normal" weight="normal"/> </font> I found that I could put this: <fonts> <auto-detect/> </fonts> And FOP now sees all the TTF's that the system knows. On Wed, Feb 24, 2010 at 7:38 AM, zhiyongcui <[hidden email]> wrote: > > It doesn't do anything .I think it should be a FAQ,but I can't find > anything > usable. > -- > View this message in context: > http://n4.nabble.com/simplified-chinese-problem-tp1565879p1566876.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > -- Thanks Brajesh Patel HotWax Media http://www.hotwaxmedia.com |
Thank you.
I solved this problem. 1. change font family to below in framework/webapp/config/fop.xconf. <font-triplet name="SimKai" style="normal" weight="normal"/> 2. set field defaultFontFamily's value to SimKai in FoReportDecorator screen in framework/common/widget/CommonScreens.xml . |
Administrator
|
In reply to this post by brajeshpatel
Hi Brajesh,
Have we this in FAQ, or not as suggest zhiyongcui ? Thanks Jacques From: "Brajesh Patel" <[hidden email]> > hi, > > content of the given link as follows: > > You can use TTF fonts in fo.ftl files. You need to use file > "framework/webapp/config/fop.xconf". This file contain following code that > responsible for font family, change font family according to the > requirement, exemple > > <font metrics-url="arial.xml" kerning="yes" embed-url="arial.ttf"> > <font-triplet name="Arial" style="normal" weight="normal"/> > <font-triplet name="ArialMT" style="normal" weight="normal"/> > </font> > > I found that I could put this: > > <fonts> > <auto-detect/> > </fonts> > > And FOP now sees all the TTF's that the system knows. > > > > On Wed, Feb 24, 2010 at 7:38 AM, zhiyongcui <[hidden email]> wrote: > >> >> It doesn't do anything .I think it should be a FAQ,but I can't find >> anything >> usable. >> -- >> View this message in context: >> http://n4.nabble.com/simplified-chinese-problem-tp1565879p1566876.html >> Sent from the OFBiz - User mailing list archive at Nabble.com. >> > > > > -- > Thanks > Brajesh Patel > > HotWax Media > http://www.hotwaxmedia.com > |
Yes, its there on FAQ page.
Thanks! Regards, -- Ratnesh Upadhyay On Wed, Feb 24, 2010 at 1:46 PM, Jacques Le Roux < [hidden email]> wrote: > Hi Brajesh, > > Have we this in FAQ, or not as suggest zhiyongcui ? > > Thanks > > Jacques > > From: "Brajesh Patel" <[hidden email]> > > hi, >> >> content of the given link as follows: >> >> You can use TTF fonts in fo.ftl files. You need to use file >> "framework/webapp/config/fop.xconf". This file contain following code that >> responsible for font family, change font family according to the >> requirement, exemple >> >> <font metrics-url="arial.xml" kerning="yes" embed-url="arial.ttf"> >> <font-triplet name="Arial" style="normal" weight="normal"/> >> <font-triplet name="ArialMT" style="normal" weight="normal"/> >> </font> >> >> I found that I could put this: >> >> <fonts> >> <auto-detect/> >> </fonts> >> >> And FOP now sees all the TTF's that the system knows. >> >> >> >> On Wed, Feb 24, 2010 at 7:38 AM, zhiyongcui <[hidden email]> wrote: >> >> >>> It doesn't do anything .I think it should be a FAQ,but I can't find >>> anything >>> usable. >>> -- >>> View this message in context: >>> http://n4.nabble.com/simplified-chinese-problem-tp1565879p1566876.html >>> Sent from the OFBiz - User mailing list archive at Nabble.com. >>> >>> >> >> >> -- >> Thanks >> Brajesh Patel >> >> HotWax Media >> http://www.hotwaxmedia.com >> >> > |
Thanks Ratnesh for your prompt reply.
Jacques, The respective information is over there. I would like to suggest change its heading like "Setup font family for different language" in FAQ page , WDYT ? On Wed, Feb 24, 2010 at 2:46 PM, Ratnesh Upadhyay < [hidden email]> wrote: > Yes, its there on FAQ page. > > Thanks! > > Regards, > -- > Ratnesh Upadhyay > > On Wed, Feb 24, 2010 at 1:46 PM, Jacques Le Roux < > [hidden email]> wrote: > > > Hi Brajesh, > > > > Have we this in FAQ, or not as suggest zhiyongcui ? > > > > Thanks > > > > Jacques > > > > From: "Brajesh Patel" <[hidden email]> > > > > hi, > >> > >> content of the given link as follows: > >> > >> You can use TTF fonts in fo.ftl files. You need to use file > >> "framework/webapp/config/fop.xconf". This file contain following code > that > >> responsible for font family, change font family according to the > >> requirement, exemple > >> > >> <font metrics-url="arial.xml" kerning="yes" embed-url="arial.ttf"> > >> <font-triplet name="Arial" style="normal" weight="normal"/> > >> <font-triplet name="ArialMT" style="normal" weight="normal"/> > >> </font> > >> > >> I found that I could put this: > >> > >> <fonts> > >> <auto-detect/> > >> </fonts> > >> > >> And FOP now sees all the TTF's that the system knows. > >> > >> > >> > >> On Wed, Feb 24, 2010 at 7:38 AM, zhiyongcui <[hidden email]> > wrote: > >> > >> > >>> It doesn't do anything .I think it should be a FAQ,but I can't find > >>> anything > >>> usable. > >>> -- > >>> View this message in context: > >>> http://n4.nabble.com/simplified-chinese-problem-tp1565879p1566876.html > >>> Sent from the OFBiz - User mailing list archive at Nabble.com. > >>> > >>> > >> > >> > >> -- > >> Thanks > >> Brajesh Patel > >> > >> HotWax Media > >> http://www.hotwaxmedia.com > >> > >> > > > -- Thanks Brajesh Patel HotWax Media http://www.hotwaxmedia.com |
Administrator
|
Thanks Ratnesh,
Yes sure, Brajesh, please feel free (for others it's "Fonts in FOP" currently : http://cwiki.apache.org/confluence/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-XSL:FO(FOP)) All, I wonder something: when I created this page I thought that it could be better to have all the possible words to search in the title, hence it's title "FAQ - Tips - Tricks - Cookbook - HowTo". But from a long time now, I wonder if we should not simply title it FAQ? Pro : easier to C/P in emails, ...? Cons : current references outside of the wiki will not be updated Jacques From: "Brajesh Patel" <[hidden email]> > Thanks Ratnesh for your prompt reply. > > Jacques, > The respective information is over there. I would like to suggest change its > heading like "Setup font family for different language" in FAQ page , WDYT ? > > On Wed, Feb 24, 2010 at 2:46 PM, Ratnesh Upadhyay < > [hidden email]> wrote: > >> Yes, its there on FAQ page. >> >> Thanks! >> >> Regards, >> -- >> Ratnesh Upadhyay >> >> On Wed, Feb 24, 2010 at 1:46 PM, Jacques Le Roux < >> [hidden email]> wrote: >> >> > Hi Brajesh, >> > >> > Have we this in FAQ, or not as suggest zhiyongcui ? >> > >> > Thanks >> > >> > Jacques >> > >> > From: "Brajesh Patel" <[hidden email]> >> > >> > hi, >> >> >> >> content of the given link as follows: >> >> >> >> You can use TTF fonts in fo.ftl files. You need to use file >> >> "framework/webapp/config/fop.xconf". This file contain following code >> that >> >> responsible for font family, change font family according to the >> >> requirement, exemple >> >> >> >> <font metrics-url="arial.xml" kerning="yes" embed-url="arial.ttf"> >> >> <font-triplet name="Arial" style="normal" weight="normal"/> >> >> <font-triplet name="ArialMT" style="normal" weight="normal"/> >> >> </font> >> >> >> >> I found that I could put this: >> >> >> >> <fonts> >> >> <auto-detect/> >> >> </fonts> >> >> >> >> And FOP now sees all the TTF's that the system knows. >> >> >> >> >> >> >> >> On Wed, Feb 24, 2010 at 7:38 AM, zhiyongcui <[hidden email]> >> wrote: >> >> >> >> >> >>> It doesn't do anything .I think it should be a FAQ,but I can't find >> >>> anything >> >>> usable. >> >>> -- >> >>> View this message in context: >> >>> http://n4.nabble.com/simplified-chinese-problem-tp1565879p1566876.html >> >>> Sent from the OFBiz - User mailing list archive at Nabble.com. >> >>> >> >>> >> >> >> >> >> >> -- >> >> Thanks >> >> Brajesh Patel >> >> >> >> HotWax Media >> >> http://www.hotwaxmedia.com >> >> >> >> >> > >> > > > > -- > Thanks > Brajesh Patel > > HotWax Media > http://www.hotwaxmedia.com > |
In reply to this post by Jacques Le Roux
Step 2 that I suggested is mondatory. I think it should be updated to cook book.
|
Administrator
|
Please feel free to update
Jacques From: "zhiyongcui" <[hidden email]> > > Step 2 that I suggested is mondatory. I think it should be updated to cook > book. > -- > View this message in context: http://n4.nabble.com/simplified-chinese-problem-tp1565879p1567533.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > |
Free forum by Nabble | Edit this page |