Bug 52711

Summary: Korean fonts don't render correctly
Product: POI Reporter: holgerbrandl <holgerbrandl>
Component: HSLFAssignee: POI Developers List <dev>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P2    
Version: 3.8-dev   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Attachments: A single slide with some Korean characters

Description holgerbrandl 2012-02-19 22:31:41 UTC
Created attachment 28355 [details]
A single slide with some Korean characters

When using org.apache.poi.hslf.model.Slide.draw(Graphics2D) to render a slide with Korean characters, just questions marks are shown. 

The problem just occurs when using Windows. POI renders the slide correctly on MacOS.
Comment 1 Nick Burch 2012-02-19 22:34:54 UTC
Sounds like you don't have the required fonts installed on your windows box

Can you confirm that:
 * The required fonts are known to windows?
 * You've correctly set it up so that Java can find them?
Comment 2 holgerbrandl 2012-02-19 22:40:31 UTC
Windows  is aware of the fonts, as the slide renders correctly in PowerPoint 2010. I've confirmed it on a another windows7 machine, where the problem was the same (PowerPoint renders correctly, POI doesn't)

I don't know what I would have to do so that java can find the fonts. How can I test/configure it?
Comment 3 Yegor Kozlov 2012-02-21 10:19:52 UTC
It has to do with the fonts. POI renders text using Java2D and this framework renders unicode text using unicode fonts. 

Try to change the font to Arial Unicode MS. Does the text render  correctly ?

Yegor
Comment 4 holgerbrandl 2012-02-21 21:34:28 UTC
Using Arial Unicode MS fixes the problem. Thanks for your help! -H