Apache OpenOffice (AOO) Bugzilla – Issue 63637
Better font substitution algorithm for Chinese fonts
Last modified: 2017-05-20 11:31:20 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.
Created attachment 35264 [details] openoffice-2.0.2-vcl-bestfallback-20060317.patch
@ hdu: Please have a look at this patch.
set type to PATCH
Good idea, thanks. But can someone please translate the comments in this patch from Chinese to English please?
.
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.
unfortunately, this task won't make it for OOo 2.0.4 due to some resource constraints. Retargeting to OOo 2.x
I test this patch. After patch, "scalc-format-cell dlg" appears very slowly :-(
wrong component
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".
*** Issue 76583 has been marked as a duplicate of this issue. ***
Yes, that's why I recommend to look out Abiword's approach.
due to limited resources we'll have to retarget this one
with fontconfig etc. being active the interaction of this patch with the current version is non-trivial
Reset assigne to the default "issues@openoffice.apache.org".