Bug 52711 - Korean fonts don't render correctly
Summary: Korean fonts don't render correctly
Alias: None
Product: POI
Classification: Unclassified
Component: HSLF (show other bugs)
Version: 3.8-dev
Hardware: PC Windows Vista
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2012-02-19 22:31 UTC by holgerbrandl
Modified: 2012-02-21 21:34 UTC (History)
0 users

A single slide with some Korean characters (98.50 KB, application/vnd.ms-powerpoint)
2012-02-19 22:31 UTC, holgerbrandl

Note You need to log in before you can comment on or make changes to this bug.
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 ?

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