Hello Patrick

I set suitable font family and I got Japanese text nicely.

Thank you for your support!


Kazuhiko Kido <kido.kazuhiko...@canon-its.co.jp>


-----Original Message-----
From: Patrick Dähne [mailto:patrick.dae...@igd.fraunhofer.de] 
Sent: Wednesday, January 22, 2014 11:05 PM
To: opensg-users@lists.sourceforge.net
Subject: Re: [Opensg-users] OpenSG 1.8 - how to show japanese text

Hello Kazuhiko Kido,

probably Arial does not contain japanese glyphs. At least that is the case on 
my german Windows 8. You have to find a font that contains japanese glyphs. You 
can get the names of all font families installed on your system like this:

std::vector<std::string> families;
OSG::TextFaceFactory::the().getFontFamilies(families);
for (size_t i = 0; i < families.size(); ++i)
  std::cout << families[i] << std::endl;

On Windows you can check which glyphs a font contains by using the Character 
Map system tool (Start > Programs > Accessories > System Tools > Character Map).

Best regards,

Patrick


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical 
Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to