logo       

Problems Using Fonts in SVG: msg#00050

Subject: Problems Using Fonts in SVG
Hi,
I'm having trouble using fonts in SVG under Linux (Mandrake 8.1), Batik version 1.5beta4.

When I use the browser or the renderer very few of the fonts I have installed on the system are recognized (~ 4 or 5).

I wrote a little java program to lists the available fonts and display them on the screen, it is able to recognize all the fonts (about 70 or so). It seems to have 2 failure modes, in one case nothing is displayed, in the other the wrong font is displayed.

On windows as well, all seems to work well.

They svg file is below, the first string displays the second one doesn't. Thanks for any help.
Jerry

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"; >
<svg  xmlns="http://www.w3.org/2000/svg";
         width="800" height="400" viewBox="0 0 800 400"
         overflow="visible" enable-background="new 0 0 800 400" 
xml:space="preserve">
                        <g>
                                <text transform="matrix(1 0 0 1 200 50)" 
enable-background="new    ">
<tspan x="0" y="0" fill="#99A399" font-family="lucidabright" font-size="48">A Test String</tspan>
                                </text>
<text transform="matrix(1 0 0 1 200 300.584)" fill="#99A399" font-family="Actionis" font-size="48">A Second Test String</text>
                        </g>
</svg>


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe