Apache OpenOffice (AOO) Bugzilla – Issue 42725
Font size for default fonts needs to be configurable for each font
Last modified: 2013-08-07 15:03:05 UTC
OOo hard-codes a default font size of 10 points or 12 points in a number of places (see the attached patch). For most Thai fonts, 10 points or 12 points is unreadably small. Thai characters have four vertical levels (base, one diacritic below and two diacritics above). When Thai characters are mixed with Latin characters, the relative sizes of Thai and Latin characters are usually chosen so that the bottom of below diacritics is lower than the bottom of Latin descenders, and the top of the second level Thai diacritics is higher than the top of Latin ascenders. The (not unreasonable) normal convention for Thai fonts is that in an N point font the distance from the bottom of the below-diacritic to the top of the second above-diacritic is N points. Thai typesetting would typically use a 16 point default font size. Thai fonts typically contain Latin characters as well: the Latin characters in a 16 point Thai font would be about the same size as the characters in a normal 12-point Western font. Some newer fonts don't follow this convention. Instead, the size of a font is based on the size of the Latin characters. In this case, the default font size could be 12 points. For example, on Windows, WordPad defaults to Arial 10pt in a Western locale (e.g. Control Panel|Regional and Language Options|Regional Options set to English US), but Cordia 14pt in a Thai locale. In a Western locale, if I change the keyboard layout to Thai, the font changes to Cordia 14pt OfficeTLE (a Thai localized OOo) solution to this is just to hard-code 16 points instead of 12 points as the default font size. See the attached patch (for OOo 1.1.3). I'm not exactly sure what the right solution is. I think part of it is probably to allow officecfg/registry/data/org/openoffice/VCL.xcu to optionally specify a font size for each default font, e.g. <value>Norasi:16;Bistream Vera Sans:12;Tahoma:12</value>
Created attachment 22584 [details] Example of patch that changes the hard-coded font size
Without giving any solution, here are a couple of ideas on this issue A similar issue used to happen in Khmer. Legacy fonts -when using size 10/12- are too small to be read. We have found these fonts not to be suitable for localisation of user interfaces, for the cases in which both English and Khmer need to be mixed together in the same message. An example of this would be when specifying code-pages, the name will be in Khmer, but the code in English. If non-proportional fonts are used, then the English is far too large. We have ended developing hinted fonts that are completelly proportional, so that the 10 size is exactly as readable as the English size 10. Again, if non-proportional fonts are used for typing, it would be important that the change in size is automatic... but please note that different people write in English in different sizes (between 10 and 12), and that the size in Thai would depend on the size in English.
confirmed.
set target to 2.0.1
FT: Spec has been published at http://specs.openoffice.org/g11n/font_sizes/42775_42725_Individual_configurable_font_size_for_default_fonts.odt Please start implementation. Thanks.
.
Fixed in cws thaiissues in sw/source/ui/config/fontcfg.cxx sw/source/ui/config/optdlg.hrc sw/source/ui/config/optdlg.src sw/source/ui/config/optpage.cxx sw/source/ui/inc/fontcfg.hxx sw/source/ui/inc/optpage.hxx sw/source/ui/shells/basesh.cxx officecfg/registry/schema/org/openoffice/Office/Writer.xcs
Reassigned for verification re-open issue and reassign to sba@openoffice.org
reassign to sba@openoffice.org
reset resolution to FIXED
SBA->HI: Please proceed. re-open issue and reassign to hi@openoffice.org
reassign to hi@openoffice.org
Verified with cws tahiissues = The UI for basic fonts will not keep the font size. Reproduce with WinXP. Linux and Sparc. - Click on default button - Restart Office - Go to Basic Fonts UI -> Values changed. Note: In WinXP, I got not valid entries after office restart.
Back to OS.
Fixed in sw/source/ui/app/docshini.cxx sw/source/ui/inc/fontcfg.hxx sw/source/ui/config/fontcfg.cxx sw/source/ui/config/optpage.cxx sw/source/ui/shells/basesh.cxx
SBA: Reassigned to HI. re-open issue and reassign to hi@openoffice.org
SBA: Reopened.
SBA->OS: Back to you. As discussed, the settings of the Font size for "List" gets mistakenly taken from "Heading" when both were changed and Office is restarted.
Again fixed, in sw/source/ui/config/optpage.cxx
SBA: Verified in CWS thaiissues.
looks good in OOo SRC680_m158 closing