Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
edf825 committed Mar 14, 2012
1 parent fbd65ed commit 87036c5
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 9 deletions.
3 changes: 3 additions & 0 deletions cmapedit/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This is probably useless. Can't even remember what it's for.

Oh well, the code might be useful somehow.
12 changes: 12 additions & 0 deletions insertsvg/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
This program takes a TrueType font and an SVG document, and outputs a new font
with the SVG document in its 'SVG ' table and all the old font information.

Try:
./insertsvg LiberationSerif-Regular.ttf circles.xml out.ttf

Then use in the latest Firefox with all the patches from Bug 719286 applied, and
the gfx.font_rendering.opentype_svg.enabled option set to `true'.

Included is a file named `test.html'. Hopefully that should work.

I can only apologise for the quality of code.
Binary file added insertsvg/UVSLiberation.otf
Binary file not shown.
12 changes: 3 additions & 9 deletions insertsvg/circles.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="1000" height="1000" xmlns="http://www.w3.org/2000/svg">
<defs>
<g glyphid="47">
<circle cx="500" cy="-500" r="400" stroke="black" stroke-width="50" fill="red"/>
</g>
<g glyphid="54">
<circle cx="500" cy="-500" r="400" style="fill:none; stroke:black; stroke-width:50;"/>
</g>
<circle cx="500" cy="-500" r="400" style="fill:pink; stroke:turquoise; stroke-width:50;" glyphchar="M"/>
</defs>
<circle cx="500" cy="-500" r="400" stroke="black" stroke-width="50" fill="red" glyphchar="L"/>
<circle cx="500" cy="-500" r="400" style="fill:none; stroke:black; stroke-width:50;" glyphchar="S"/>
<circle cx="500" cy="-500" r="400" style="fill:pink; stroke:turquoise; stroke-width:50;" glyphchar="M"/>
</svg>
Binary file removed insertsvg/insertsvg
Binary file not shown.
Binary file modified insertsvg/out.ttf
Binary file not shown.
13 changes: 13 additions & 0 deletions insertsvg/test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<html>
<head>
<style type="text/css">
@font-face {
font-family: "Liberation+";
src:url(out.ttf);
}
</style>
</head>
<body>
<h1 style="font-family: 'Liberation+'; font-size: 100px">Liberation Serif</h1>
</body>
</html>

0 comments on commit 87036c5

Please sign in to comment.