Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing
|Summary:||Better font substitution algorithm for Chinese fonts|
|Component:||code||Assignee:||AOO issues mailing list <issues>|
|Status:||ACCEPTED ---||QA Contact:|
|Target Milestone:||OOo 3.x|
|Issue Type:||ENHANCEMENT||Latest Confirmation in:||---|
Description fundawang 2006-03-26 08:11:43 UTC
There are a lot of font vendors in China, and they are providing same fonts in different names. For instance, Vender Foo named its Song as "Foo Song", vender Bar named as "Bar Song". But acturally, Foo Song and Bar Song renders 90% the same as each other. Considering the huge number of styles of Chinese fonts, I would suggest some smart substitution algorithm on this issue. Patch made by Firefly follows.
Comment 1 fundawang 2006-03-26 08:12:39 UTC
Created attachment 35264 [details] openoffice-2.0.2-vcl-bestfallback-20060317.patch
Comment 2 Olaf Felka 2006-03-27 08:05:27 UTC
@ hdu: Please have a look at this patch.
Comment 3 Martin Hollmichel 2006-03-29 14:18:48 UTC
set type to PATCH
Comment 4 firstname.lastname@example.org 2006-05-02 12:33:58 UTC
Good idea, thanks. But can someone please translate the comments in this patch from Chinese to English please?
Comment 5 email@example.com 2006-05-02 12:34:38 UTC
Comment 6 fundawang 2006-05-04 19:50:47 UTC
The overall algorithm is: 1. Guess the font family group based on the last few chraracters of family name. 2. If the font family group of the font document is using and the font installed in system are the same, then the two fonts are considered as fungible. 3. The document will be displayed and printed in the first fungible font.
Comment 7 ooo 2006-08-02 12:29:25 UTC
unfortunately, this task won't make it for OOo 2.0.4 due to some resource constraints. Retargeting to OOo 2.x
Comment 8 zhipengzhang 2006-11-09 06:47:03 UTC
I test this patch. After patch, "scalc-format-cell dlg" appears very slowly :-(
Comment 9 Mathias_Bauer 2006-12-21 08:54:53 UTC
Comment 10 firstname.lastname@example.org 2007-04-17 14:46:43 UTC
The idea for the better replacement is very good, but the patch's chinese comments for generic code, the performance hit caused by the patch and the very many side effects it introduces for other script types makes it impossible to apply the patch directly. Changing the issue status to "enhancement".
Comment 11 lohmaier 2007-04-23 11:36:51 UTC
*** Issue 76583 has been marked as a duplicate of this issue. ***
Comment 12 ganlu 2007-04-23 11:46:42 UTC
Yes, that's why I recommend to look out Abiword's approach.
Comment 13 philipp.lohmann 2008-07-16 12:33:36 UTC
due to limited resources we'll have to retarget this one
Comment 14 email@example.com 2008-12-09 15:13:07 UTC
with fontconfig etc. being active the interaction of this patch with the current version is non-trivial