Skip to content

Instantly share code, notes, and snippets.

@edouard-lopez
Created September 9, 2013 11:30
Show Gist options
  • Save edouard-lopez/6494377 to your computer and use it in GitHub Desktop.
Save edouard-lopez/6494377 to your computer and use it in GitHub Desktop.
Hanzi Pinyin Font from multiple <svg:text> elements to a single <svg:path> (Union path operations)
Display the source blob
Display the rendered blob
Raw
<?xml version="1.0"?>
<!-- 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" version="1.0" width="1000" height="1000" id="gid" inkscape:version="0.48.3.1 r9886" inkscape:output_extension="org.inkscape.output.svg.inkscape">
<metadata id="metadata5594">
<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/>
</cc:Work>
</rdf:RDF>
</metadata>
<defs id="defs5498">
<inkscape:perspective sodipodi:type="inkscape:persp3d" inkscape:vp_x="0 : 500 : 1" inkscape:vp_y="0 : 1000 : 0" inkscape:vp_z="1000 : 500 : 1" inkscape:persp3d-origin="500 : 333.33333 : 1" id="perspective3931"/>
<font horiz-adv-x="1024" id="font3933" inkscape:label="Hanzi-Pinyin Font">
<font-face units-per-em="1024" id="font-face3935" font-family="Hanzi-Pinyin Font"/>
<missing-glyph d="M0,0h1000v1024h-1000z" id="missing-glyph3937"/>
<glyph id="font-glyph" glyph-name="U+4E02: &#x4E02;/k&#x1CE;o/" unicode="&#x4E02;" d=""/>
</font>
</defs>
<text xml:space="preserve" style="font-size:800px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Droid Sans Fallback;-inkscape-font-specification:Droid Sans Fallback" x="-40.625" y="789.0625" id="hanzi"><tspan id="hanzi-glyph" x="-40.625" y="789.0625">丂</tspan></text>
<text xml:space="preserve" style="font-size:200px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Droid Sans Fallback;-inkscape-font-specification:Droid Sans Fallback" id="pinyin" y="-760.05859" x="414.25781" transform="matrix(0,1,-1,0,0,0)"><tspan id="pinyin-text" x="414.25781" y="-760.05859" style="font-size:300px">kǎo</tspan></text>
</svg>
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment