Closed
Bug 386452
Opened 17 years ago
Closed 17 years ago
svg text text-anchor with value middle or end give unpredictable result.
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 293852
People
(Reporter: syfre92, Unassigned)
Details
Attachments
(1 file)
980 bytes,
image/svg+xml
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-GB; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-GB; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4
Example (works with adobe):
<?xml version="1.0" encoding="UTF-8"?>
<svg:svg xmlns:svg="http://www.w3.org/2000/svg" width="600" height="600" viewBox="0 0 600 600">
<svg:g transform="translate(240,240) scale(240,240)">
<svg:line x1="0" y1="-0.1" x2="0" y2="0.1" stroke="red" stroke-width="0.002"/>
<svg:line x1="-0.1" y1="0" x2="0.1" y2="0" stroke="red" stroke-width="0.002"/>
<svg:text x="0" y="0.5" font-size="0.1" text-anchor="start" style="fill:black;">start</svg:text>
<svg:text x="0" y="0" font-size="0.1" text-anchor="middle" style="fill:black;">middle</svg:text>
<svg:text x="0" y="-0.5" font-size="0.1" text-anchor="end" style="fill:black;">end</svg:text>
<!--
<svg:text x="0" y="0.5" font-size="0.5" text-anchor="start" style="fill:black;">start</svg:text>
<svg:text x="0" y="0" font-size="0.5" text-anchor="middle" style="fill:black;">middle</svg:text>
<svg:text x="0" y="-0.5" font-size="0.5" text-anchor="end" style="fill:black;">end</svg:text>
-->
</svg:g>
</svg:svg>
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Actual Results:
with font-size=0.1 only start is visible
with font-size=0.5 a part of "middle" is showed at wrong place
Expected Results:
end middle and start visibles with middle centered on the red cross
Comment 1•17 years ago
|
||
Comment 2•17 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a6pre) Gecko/20070630 Minefield/3.0a6pre
This test case crashes like crazy on trunk, and for the first time I saw breakpad:
https://crash-reports.mozilla.com/reports/report/index/80a50b66-278e-11dc-87da-001a4bd43e5c?date=2007-07-01-04
https://crash-reports.mozilla.com/reports/report/index/be7c8a57-278e-11dc-b5cb-001a4bd43ed6?date=2007-07-01-04
Firefox 3.0a6pre Crash Report
UUID 80a50b66-278e-11dc-87da-001a4bd43e5c
Time 2007-06-30 21:49:51.150000-07:00
Build ID 2007063005
OS Windows NT
OS Version 5.1.2600 Service Pack 2
CPU x86
CPU Info AuthenticAMD family 6 model 8 stepping 0
Crash Reason EXCEPTION_ACCESS_VIOLATION
Crash Address 0x4
Stack of Crashing Thread
frame signature
0 _moz_cairo_set_scaled_font
1 gfxWindowsFont::SetupCairoFont(_cairo *)
2 gfxFont::Draw(gfxTextRun *,unsigned int,unsigned int,gfxContext *,int,gfxPoint *,gfxFont::Spacing *)
3 gfxTextRun::DrawGlyphs(gfxFont *,gfxContext *,int,gfxPoint *,unsigned int,unsigned int,gfxTextRun::PropertyProvider *)
4 gfxTextRun::Draw(gfxContext *,gfxPoint,unsigned int,unsigned int,gfxRect const *,gfxTextRun::PropertyProvider *,double *)
5 nsSVGGlyphFrame::LoopCharacters(gfxContext *,nsString const &,nsSVGGlyphFrame::nsSVGCharacterPosition const *,nsSVGGlyphFrame::FillOrStroke)
6 nsSVGGlyphFrame::PaintSVG(nsSVGRenderState *,nsRect *)
7 nsSVGUtils::PaintChildWithEffects(nsSVGRenderState *,nsRect *,nsIFrame *)
8 nsSVGDisplayContainerFrame::PaintSVG(nsSVGRenderState *,nsRect *)
9 nsSVGUtils::PaintChildWithEffects(nsSVGRenderState *,nsRect *,nsIFrame *)
Component: General → SVG
Product: Firefox → Core
QA Contact: general → general
Comment 3•17 years ago
|
||
Ah well, I think the crash is bug 378716.
Comment 4•17 years ago
|
||
(In reply to comment #3)
> Ah well, I think the crash is bug 378716.
>
That's right, the trunk crash is bug 378716, middle not working is bug 293852.
Not sure which to mark this a duplicate of currently.
Depends on: 378716
Updated•17 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•