Issue 126685 - Writer allows font size smaller than "2" to be copy/pasted into Writer
Summary: Writer allows font size smaller than "2" to be copy/pasted into Writer
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: formatting (show other issues)
Version: 4.1.1
Hardware: PC All
: P5 (lowest) Minor (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-24 13:20 UTC by Andrew Konecny
Modified: 2016-04-26 02:27 UTC (History)
4 users (show)

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


Attachments
Failed Attempt to Replicate Bug (170.54 KB, image/png)
2016-02-16 01:06 UTC, mwilmott2013
no flags Details
Open Office Result File demonstrating the bug at hand (12.68 KB, application/vnd.oasis.opendocument.text)
2016-04-17 02:35 UTC, Alex de los Reyes
no flags Details
Screenshot: Pasting 1 point font into open office (138.94 KB, image/png)
2016-04-17 02:37 UTC, Alex de los Reyes
no flags Details
Screenshot: Pasting 1 point font into open office - spacing problems (124.25 KB, image/png)
2016-04-17 02:38 UTC, Alex de los Reyes
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Andrew Konecny 2015-11-24 13:20:25 UTC
Writer allows the smallest input of font size directly through the program to be of size 2. When a text of a size smaller than 2 is copied and pasted into a Writer document, the result is that Writer allows the smaller font to be in the file, but with weird line spacing formatting errors.

Steps to reproduce:
1. Open another word processing program (I used Microsoft Word 2010) and enter a line of characters (one whole line so it's easier to see when scaled down to font size 1).
2. Select the string of characters and change the size to 1.
3. Copy the selection.
4. Open Writer and paste the selection into a document.
5. View the errors.

Additional Details:
I tested this with several different characters and various lengths of strings, and the same effect remained throughout. You can select the text with ctrl+a and change the font back to a normal size and it will behave normally.
Comment 1 mwilmott2013 2016-02-16 01:06:01 UTC
Created attachment 85288 [details]
Failed Attempt to Replicate Bug

I have attempted to replicate this bug on a PC with Windows 8.1 and Word 2013 for PC (I didn't use Word 2010 as the original reporter did because I could not safely acquire the software at this time, and the bug report stated that any word processor could be used), and I could not replicate this bug on OpenOffice Writer version 4.1.1.

I attempted the replication using the steps described in the bug report:

1. I typed a paragraph-sized string of characters in Word 2013.
2. I shrunk the string to size 1.
3. I copied the string in Word 2013.
4. I opened OpenOffice Writer and pasted the string.

In the attached screenshot, I show the string written in Word 2013 in size 12 font, and the results of when this string was copied into Writer: the string's size 12 font was maintained.  I then duplicated the string in Word, and shrunk the duplication to size 1 font.  (I also highlighted the string to make it easier to see in Word.) When copied, Writer converted it into size 2. 

I have attempted the replication using strings of different lengths, as the original reporter did, and in all attempts where the string of size 1 was copied, it was converted to size 2.
Comment 2 Cem Kaner 2016-02-21 16:28:00 UTC
MS Word (Office) 16.0.6366.2062
Openoffice AOO420m1(Build:9800)  -  Rev. 1692551
Windows 10 laptop

I followed mwllmott2013's steps (the only difference is the updated software, using Word 16 and OOo 4.2.0).

1. I create a paragraph of text in Word (Courier New typeface, or in a replication, Calibri). I did this with different-size paragraphs. For example, I used "AOO420m1(Build:9800)  -  Rev. 1692551" as the text in one of the paragraphs I tested.

2. select the text and shrink to 1 point, 

3. copy the text and 

4. Paste Special using all of the options that seem reasonable ("GDI metafile" and "Microsoft Word Document" give odd results that seem not relevant to this report)

The result in AOO appears to be text that is 2 points. That is, when I select the text, the font shows as Courier New (or Calibri).

HOWEVER

5. Select all text in the document (CTRL-A). Along with selecting my line of text, CTRL-A selects a blank line that has a default typeface of Times and a default size of 12 points). The typeface box and the type size box are blank on the document window because I have selected text that includes different typefaces and different sizes.

6. Change the font size to 2. If the font size of the pasted text is actually 2, that text should not change.

On my screen, the size of the pasted text appears to double. That is, if I look at the letters rather than the number in the font size box, the letters appear to have been pasted at some teeny-tiny size that is less than 2 points.

7. Start over, but this time at the end of step 4, change zoom level to 800%. The teeny-tiny letters are now quite readable. Select them. The Properties appear to be Calibri and 2 points. Move the cursor into the font size pulldown, select the 2 and either overwrite it or backspace and then type 2. The number in the box is 2 but the text has grown much bigger.

There seems to be an intermittent difference in behavior depending on whether I select/edit the 2 in the Formatting toolbar or the 2 in the Properties box. When I work in the Properties box, sometimes the font size (the number) changes to 6 (rather than 2) when I edit it, even though I think I have typed in a 2. However, when I do the test again, I get a 2. This intermittent inconsistency might be a user error. I am mentioning it only to say, if that happens to you when you try to replicate this, then replicate my steps from the Formatting bar or Undo a few times and try it again in Properties.
Comment 3 Cem Kaner 2016-02-21 16:30:20 UTC
Sorry, I made an unclear statement in my last post.

I wrote, "The result in AOO appears to be text that is 2 points. That is, when I select the text, the font shows as Courier New (or Calibri)."

It should say, "The result in AOO appears to be text that is 2 points. That is, when I select the text, the typeface shows as Courier New (or Calibri) and the font size shows up as 2 in the font size box on the Properties panel and on the Formatting toolbar."
Comment 4 Alex de los Reyes 2016-04-17 02:34:10 UTC
Configuration: 
Windows 10
Word Pad Version 1511 (OS Build 10586.218)
Open Office 4.2.0 - AOO420m1(Build:9800)  -  Rev. 1692551

I was able to confirm and reproduce the original bug by Andrew K and also the problems described by Cem Kaner.  Both their steps to reproduce seem to be clear and accurate. 

To clarify there seem to be two issues here described in the original bug.

First issue here seems to be a discrepancy in the displayed font size in the toolbar font size selector and the actual font size.  It may not be a problem to paste a 1 point font from another application into Open Office, however the toolbar displays that the font is 2 points when it is actually being displayed as 1 point. (See the attached OO Result Sample file)

Second issue (and possibly worthy of a separate bug), newline spacing when using a 1 point font after it has been pasted (as indicated by both the original poster and Cem Kaner) is very different from the newline spacing when and seems to be very large compared to the newline spacing with standard 2 point font.  (See the attached screenshot)

Screenshots of the issue have been attached and show the behavior when zoomed in at 600% to best illustrate the problem.

I have also attached a sample RTF file created in Word Pad in windows 10 that has a 12 point font sample and a 1 point font sample that can be used for copying and pasting.  I have also included the Open Office file that I have pasted text into so that the resulting behavior can be observed.
Comment 5 Alex de los Reyes 2016-04-17 02:35:46 UTC
Created attachment 85443 [details]
Open Office Result File demonstrating the bug at hand

This file shows the different behaviors when pasting both 12 point font text and 1 point font text.
Comment 6 Alex de los Reyes 2016-04-17 02:37:43 UTC
Created attachment 85444 [details]
Screenshot: Pasting 1 point font into open office

Illustrating the problem of pasting a 1 point font when the minimum selectable font size in Open Office is 2 points.  The font size still displays at 2 points.
Comment 7 Alex de los Reyes 2016-04-17 02:38:37 UTC
Created attachment 85445 [details]
Screenshot: Pasting 1 point font into open office - spacing problems

This demonstrates the problems with inserting a new line in the middle of pasted 1 point font text as compared with inserting a new line in 2 point font text that was not pasted in.
Comment 8 Theodore Matula 2016-04-26 02:26:53 UTC
Since Alex de los Reyes and Cem Kaner were both able to reproduce this bug, I am moving this to Confirmed