Bug 55902 - Mixed fonts issue with Chinese characters (unable to form images from ppt)
Summary: Mixed fonts issue with Chinese characters (unable to form images from ppt)
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: XSLF (show other bugs)
Version: unspecified
Hardware: Other All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
: 54880 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-12-18 09:57 UTC by Amit
Modified: 2016-12-03 20:34 UTC (History)
1 user (show)



Attachments
contains Chinese characters, English characters in two different fonts (98.50 KB, application/vnd.ms-powerpoint)
2013-12-18 09:57 UTC, Amit
Details
[PATCH] Bug 55902 - fallback font renderer (68.87 KB, patch)
2013-12-24 22:20 UTC, Andreas Beeker
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Amit 2013-12-18 09:57:38 UTC
Created attachment 31129 [details]
contains Chinese characters, English characters in two different fonts

When mixed fonts are present with chinese characters (like MS Gothic, Calibri) unable to convert ppt to images. For single font in entire file it works fine.
Comment 1 Andreas Beeker 2013-12-24 22:20:10 UTC
Created attachment 31151 [details]
[PATCH] Bug 55902 - fallback font renderer

this patch contains a modified version of the TextPainter which generates an AttributedString with fallback fonts in case the original font can't display the glyphs. this is possible due to unset/default font family settings in the original ppt - also for the Chinese symbols.

Due to upload limitations, the mona font is not included - it can be downloaded at http://sourceforge.net/projects/monafont

(I'll commit this patch when I've finished committing my other uncommitted patches ...)
Comment 2 Andreas Beeker 2014-02-11 23:29:32 UTC
Applied with r1567455
Comment 3 Andreas Beeker 2014-12-20 11:06:45 UTC
*** Bug 54880 has been marked as a duplicate of this bug. ***
Comment 4 Andreas Beeker 2016-12-03 20:34:44 UTC
There was a regression ... the code simply didn't make it into the Common SL rendering.

This was fixed via r1772485