Paste style on text returns inaccurate font spec

Bug #166574 reported by Wendtmg
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Low
Richard Hughes

Bug Description

Whenever I'm working with the Text and Font dialog, it
can't remember what font I'm using. The problem is as
follows:

I select a font, style, and size. I hit Apply. The text
changes accordingly. However, the font, style, and size
choices in the dialog reset to what I presume is the
default -- Bitstream Vera Sans/Roman. Also, when I
select pre-existing text and open the dialog, it
displays Bitstream Vera Sans/Roman, even though the
text is clearly not that.

When I look in the XML editor, I see a "text" item that
has the information the dialog box is displaying:

font-size:14.841721;font-style:normal;font-weight:normal;
line-height:100.00000%;fill:#000000;fill-opacity:1.0000000;
stroke:none;stroke-width:1.0000000px;stroke-linecap:butt;
stroke-linejoin:miter;stroke-opacity:1.0000000;
font-family:Bitstream Vera Sans

But within that text item is a "tspan" item that has
the correct information:

font-family:Tw Cen MT;text-anchor:start;writing-mode:lr;
line-height:100.00000%;font-stretch:normal;font-weight:normal;
font-variant:normal;font-style:normal;font-size:32.000000

I acknowledge that I may simply not know how this is
supposed to work, but it seemed like a bug to me.

Tags: fonts
Revision history for this message
Wendtmg (wendtmg) wrote :

My apologies. I am running thrice-daily Win32 build 0505311000.

Revision history for this message
Giraldi Maggio (bedex78) wrote :

This is my case:

Let's say I have two text boxes, txt1 and txt2.

txt1 uses 'arial black'.
txt2 uses 'arial'.

If I select txt1 and copy it. then select txt2 and paste style on it. This works fine.

However...

CASE #1:
If I select the content of txt1 by highlighting it with the text tool and copy it. Then select txt2 and paste style on it. This produces the correct appearance, but not the correct settings on the font window. That is, the appearance is 'arial black', but in font window, the font family says 'bitstream vera sans'. However, when selecting the content using the text tool, it shows the right font in the font window.

In the XML Editor, the style says:
font-family:Arial Black;
-inkscape-font-specification:Bitstream Vera Sans

CASE#2:
Highlight all content of txt1 by using the text tool and copy it. Then highlight all content of txt2 by using the text tool and paste style on it. Appearance is correct. However, when txt2 is selected, the font window shows 'arial', not 'arial black'. If selecting the content with the text tool, it shows 'bitstream vera sans' in the font window.

In the XML Editor, the style says:
font-family:Arial;
-inkscape-font-specification:Arial

And there's a 'tspan' with a style that says the same as CASE #1:
font-family:Arial Black;
-inkscape-font-specification:Bitstream Vera Sans

CASE#3:
Select txt1 and copy it. Then highlight all content of txt2 by using the text tool and paste style on it. Appearance is correct. However, when txt2 is selected, the font window shows 'arial', not 'arial black'. Selecting the content with the text tool, it shows the correct font in the font window.

In the XML Editor, the style says:
font-family:Arial;
-inkscape-font-specification:Arial

And there's a 'tspan' with a style that says the same as CASE #1:
font-family:Arial Black;
-inkscape-font-specification:Arial Black Heavy

Now this may not be a big deal appearance wise, but when I want to check what fonts I use, it gets really confusing. And what gets more confusing is how did 'Bitstream Vera Sans' get there?

Is this a bug?

summary: - Text and Font dialog forgets my font choice
+ Paste-style on text returns inaccurate font spec
Giraldi Maggio (bedex78)
Changed in inkscape:
status: Fix Released → New
summary: - Paste-style on text returns inaccurate font spec
+ Paste style on text returns inaccurate font spec
su_v (suv-lp)
tags: added: fonts
Revision history for this message
jazzynico (jazzynico) wrote :

Reproduced with 0.46.
Not reproduced with 0.47 and trunk revision 10627.

Changed in inkscape:
milestone: none → 0.47
status: New → Fix Released
tags: removed: win32
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.