source: main/trunk/model-sites-dev/von-sparql/js/paper/examples/SVG Import/Text Testing.html@ 28914

Last change on this file since 28914 was 28914, checked in by ak19, 10 years ago

Supporting javascript libraries and bespoke code written by Steffan to support the von-sparql user interface

File size: 720 bytes
Line 
1<!DOCTYPE html>
2<html>
3<head>
4 <meta charset="UTF-8">
5 <title>Text Testing</title>
6 <link rel="stylesheet" href="../css/style.css">
7 <script type="text/javascript" src="../../dist/paper.js"></script>
8 <script type="text/paperscript" canvas="canvas">
9 project.importSVG(document.getElementById('svg'));
10 </script>
11</head>
12<body>
13 <svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="500" height="500" id="svg">
14 <text x="20" y="15" stroke="green" fill="green" style="font:15px arial;" id="text">Plain SVG Text</text>
15 <text x="20" y="50" fill="red" transform="rotate(30 20,40)" style="font:12px helvetica;">Rotated SVG Text</text>
16 </svg>
17 <canvas id="canvas" width="500" height="500"></canvas>
18</body>
19</html>
Note: See TracBrowser for help on using the repository browser.