Closed
Bug 331078
Opened 20 years ago
Closed 20 years ago
text size and font not respected by SVG-view
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: RainerBielefeldNG, Unassigned)
References
()
Details
With my "Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8.0.1) Gecko/20060130 SeaMonkey/1.0" I found several text display problems in SVG-images, pls see screenshots and testfile in testkit:
- "Text size 18" / 50 / 96: Text size not respected, font "Times New Roman"
not respected
- "Text out of Border" does not respect frame, because text size differs
from setting
The .SVG also shows some other strange effects only interesting for OOo .SVG export, pls ignore all effets which are not marked by "!".
This isssue might be related to bug 311569
| Reporter | ||
Comment 1•20 years ago
|
||
You can find a testkit with screenshots (comparing view witz IE6 and 'Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.8.0.1) Gecko/20060130 SeaMonkey/1.0'), .svg-image and OOo source image under a.m. UFL <http://free.pages.at/rainerbielefeld/bilder/testkit.zip>
Comment 2•20 years ago
|
||
The SVG file in the zip has unitless font-sizes within style attributes. As you suggested this issue is bug 311569. Is there any reason not to mark this bug a duplicate of that?
If you move the font-sizes outside the style to become attributes in their own right does this display things as you expect?
| Reporter | ||
Comment 3•20 years ago
|
||
To me it seems that this might be a DUP of bug 311569, but because of my very few knowledge concerning SVG I can't decied whether bug 311569 covers all the problems of my bug report. I reported a "text size _and_font_type_problem, font "Times New Roman" is shown as "ARIAL" in my example.
I believe that those different problems have the same roots, and so this bug might be closed as a duplicate of bug 311569, after the summary of that issue has been amended concerning the font type problem.
Comment 4•20 years ago
|
||
The svg file you refer to has lines with the text font-size like this...
<g style="font-family:Arial embedded;font-size:1764;font-weight:400">
Change all such lines so that the font-size is an attribute on its own i.e.
<g font-size="1764" style="font-family:Arial embedded;font-weight:400">
Save the file and redisplay it. Does it now look right?
Additionally try removing the word "embedded" from the font-family as I don't think this is valid c.f. http://www.w3schools.com/css/pr_font_font-family.asp
Then you get...
<g font-size="1764" style="font-family:Arial;font-weight:400">
According to the reference font families need to be separated by commas or enclosed in quotes if they contain whitespace. Does it look right now that you have fixed the syntax of font-family?
If it looks right after you've fixed the font-size this is a duplicate of
bug 311569.
If it looks right after you've fixed the font-family, I think this bug is invalid as you have invalid syntax in the file.
If its still wrong then you should provide a link with the above issues fixed so that we can see what issues remain.
Comment 5•20 years ago
|
||
*** Bug 331079 has been marked as a duplicate of this bug. ***
| Reporter | ||
Comment 6•20 years ago
|
||
(In reply to comment #4)
I did the tests as recommended:
Changing font-size so that it is an attribute on its own i.e worked: Font size was correct afterwards.
I eleminated "embedded" as recommended, afterwards image element "Text size 96 TNR" was correctly shown in "Times New Roman".
So please close this issue INVALID!
I will leave a note for OOo developers to check the '"embedded"-problem'
Thanks for your help,
Rainer
Updated•20 years ago
|
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•