Issue 59408

Summary: 15pt default font size causes row-height problems with Thai locale
Product: Calc Reporter: jjc
Component: codeAssignee: frank
Status: CLOSED FIXED QA Contact: issues@sc <issues>
Severity: Trivial    
Priority: P3 CC: frank, hin.stone, issues, markpeak, samphan
Version: OOo 2.0.1   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Issue Depends on:    
Issue Blocks: 41707, 60011    
Attachments:
Description Flags
Patch to get rid of 15pt font size for Thai in Calc none

Description jjc 2005-12-15 17:17:16 UTC
The change in 2.0.1 to a Angsana 15pt as the default font (see issue 56145) is
revealing some strange behavior with row-heights.

To reproduce

- set your locale to Thai
- create a new spreadsheet document
- observe the font is Angsana 15
- observe that the height of rows is 10 points
- now save the empty document
- close the document
- open the just saved document
- observe that the height of all rows is now 15 points

Another problem:

- set locale to Thai
- create a new spreadsheet document
- enter English characters into a cell
- observe that the row height of the row containing the cell changes to 15 points

It is common for spreadsheets in the Thai locale not to have any Thai language
data; such spreadsheets clearly need to have a cell-height of 10points.  Only
the height of rows containing Thai characters should have an increased row-height.

Excel doesn't actually allow you to specify the CTL font as far as I can see. 
It seems to be using Tahoma (which is the one Thai font that is designed to be
used at 10 points).

Overall I think it might be best to workaround these problems in the 2.0.2
timeframe by changing the spec in issue 42725 to change the default font for
Calc back to Tahoma 10 points (this giving it a different default font from the
other OOo apps).
Comment 1 frank 2005-12-15 22:59:44 UTC
Hi Eike,

one for you ?

Frank
Comment 2 ooo 2005-12-16 12:21:24 UTC
@fst: why should this be my task?

Niklas, could be your building site.
Comment 3 jjc 2005-12-26 06:11:39 UTC
Created attachment 32697 [details]
Patch to get rid of 15pt font size for Thai in Calc
Comment 4 jjc 2005-12-26 06:13:19 UTC
As well as the above patch, the font name must be changed back to Tahoma (Tahoma
is designed to work at 10pts, unlike Angsana). There's a patch to VCL.xcu for
this in issue 59427.
Comment 5 niklas.nebel 2006-01-23 12:58:49 UTC
The font size change (as in the patch) is on the CWS "dr44", stlpool.cxx
1.11.36.1. The spec
(http://specs.openoffice.org/g11n/font_sizes/42775_42725_Individual_configurable_font_size_for_default_fonts.odt)
has been updated, too. The default font size is now the same for all languages
again.
Comment 6 niklas.nebel 2006-01-24 17:50:08 UTC
back to QA for verification

re-open issue and reassign to fst@openoffice.org
Comment 7 niklas.nebel 2006-01-24 17:50:17 UTC
reassign to fst@openoffice.org
Comment 8 niklas.nebel 2006-01-24 17:50:26 UTC
reset resolution to FIXED
Comment 9 oc 2006-01-30 10:23:07 UTC
verified in internal build cws_dr44
Comment 10 frank 2006-02-14 13:57:29 UTC
found fixed on master build 9006