-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
31 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |