Closed Bug 338564 Opened 19 years ago Closed 18 years ago

Default font selected does not display

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 375141

People

(Reporter: sleeloy, Unassigned)

Details

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3 The problem is selecting an appropriate font to display asian characters such as chinese and japanese. It seems the default font selection is different when rendering text in html and in SVG. The default font used to render text in html displays chinese characters correctly. In contrast, the default font selected to display text in SVG does not show the chinese characters correctly. I think this is an important bug to resolve since rendering text in html and svg should be consistent. Reproducible: Always Steps to Reproduce: 1. Open the following content using Firefox. <?xml version="1.0"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN" "http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd"> <svg width="100%" height="100%"> <text x="50%" y="50%" fill="red" font-size="192" text-anchor="middle">あお</text> </svg> Actual Results: Characters are displayed as block characters Expected Results: An appropriate font should be selected to display japanese characters It should be noted that if I display this text in an html file the font selected correctly displays the characters.
Works now although the example is missing an xmlns attribute
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.