Apache OpenOffice (AOO) Bugzilla – Issue 101034
uncheck the "Snap to characters",change font size, text layout confused
Last modified: 2013-01-29 21:42:04 UTC
In OOo3.0 and OOo3.1, 1. new a document->click right->select "page",pop up the page dialog . 2. select text grid tab page , choose "" uncheck the "Snap to characters" ,set "characters per line" as 20, check "display grid". 3. type several chinese characters,then characters start from the left of each grid cell. 4. select all the characters and change their font size on the toolbar , then the text layout confused. characters do not start from the left of each grid cell.
Because of this issue, chinese users can not typeset "standard goverment document" which is widly used in china. The problem is that when font size is changed the nDefaultFontHeight does not change in sw\source\core\txtnode\fntcache.cxx, belows are details. if ( pGrid && GRID_LINES_CHARS == pGrid->GetGridType() && !pGrid- >IsSnapToChars() ) { const USHORT nDefaultFontHeight = GetDefaultFontHeight( rInf ); In redOffice, "standard goverment document" can be realized, because there is an "font select" button in the text grid tab page. and when font size is changed through this "font select" button , nDefaultFontHeight 's value can change with font size.
I cannot find "Snap to characters" in the dialog. CHanging the font size seems not to destroy the layout. Please add a sample document and screenshots of what happens.
Created attachment 61536 [details] ducument before change font size
Created attachment 61537 [details] ducument after change font size
to es: "I cannot find "Snap to characters" in the dialog." may be you are in CJK mode. you can choose tool->options->openoffice.org writer->general, uncheck "use square page mode for text grid", then click right->choose "page" and enter the text grid tab page, in which choose "Grid (lines and characters)" and uncheck "Snap to Characters" and continue other related operations.
@SBA: Please take over. Have a look at issue 76247 + Spec