Hi,
I was wondering if it's possible to use swfmill imported ttf fonts in an
imported svg. Here is the code (and attached ttf) that I have right now. The
ttf is being imported correctly, but not accessible to the svg. The svg
defaults to objectId 2, vera?
If this isn't possible, is this in the roadmap? If not, can you point me in
the right direction for patching this - I have limited c++ and xslt
experience, but can probably hack something up.
Thanks,
Clint
swfmill xml
<movie width="120" height="90" framerate="12">
<background color="#ffffff"/>
<font id="droidsansbold" name="droidsansbold" import="droidsansbold.ttf"
/>
<clip id="foo" import="s2.svg"/>
<place id="foo" name="svg" depth="10"/>
<frame/>
</movie>
SVG:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="90mm"
height="50mm"
id="svg2955"
version="1.1"
inkscape:version="0.47+devel r9450"
sodipodi:docname="New document 2">
<defs
id="defs3" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="1.2"
inkscape:cx="160"
inkscape:cy="90"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="518"
inkscape:window-height="457"
inkscape:window-x="24"
inkscape:window-y="20"
inkscape:window-maximized="0" />
<metadata
id="metadata2959">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<flowRoot
xml:space="preserve"
id="flowRoot2962"
style="font-size:40px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0;word-spacing:0;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans"><flowRegion
id="flowRegion2964"><rect
id="rect2966"
font="droidsansbold"
width="274.16666"
height="95"
x="17.5"
y="22.998693" /></flowRegion><flowPara
id="flowPara2968"
font="droidsansbold"
style="-inkscape-font-specification:droidsansbold;font-family:droidsansbold;font:droidsansbold">Test</flowPara></flowRoot>
</g>
</svg>
_______________________________________________
swfmill mailing list
[email protected]
http://osflash.org/mailman/listinfo/swfmill_osflash.org