Issue 101034 - uncheck the "Snap to characters",change font size, text layout confused
Summary: uncheck the "Snap to characters",change font size, text layout confused
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: OOO300m5
Hardware: PC Windows XP
: P2 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: needmoreinfo, oooqa
Depends on:
Blocks:
 
Reported: 2009-04-13 07:59 UTC by sdm
Modified: 2013-01-29 21:42 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
ducument before change font size (9.24 KB, text/plain)
2009-04-14 02:22 UTC, sdm
no flags Details
ducument after change font size (9.08 KB, text/plain)
2009-04-14 02:23 UTC, sdm
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description sdm 2009-04-13 07:59:46 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.
Comment 1 sdm 2009-04-13 08:17:36 UTC
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.
Comment 2 eric.savary 2009-04-13 11:00:09 UTC
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.
Comment 3 sdm 2009-04-14 02:22:28 UTC
Created attachment 61536 [details]
ducument before change font size
Comment 4 sdm 2009-04-14 02:23:25 UTC
Created attachment 61537 [details]
ducument after change font size
Comment 5 sdm 2009-04-14 02:29:34 UTC
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.
Comment 6 eric.savary 2009-04-14 16:03:37 UTC
@SBA: Please take over. Have a look at issue 76247 + Spec