Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit aea1e76

Browse files
committedOct 2, 2021
Tweak the OO text example to test scaling of SVG images.
1 parent fa221e6 commit aea1e76

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎demo/demo_oo_text.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@
4343
<svg
4444
xmlns:svg="http://www.w3.org/2000/svg"
4545
xmlns="http://www.w3.org/2000/svg"
46-
width="180pt"
47-
height="180pt"
48-
viewBox="0 0 120 120">
46+
width="90pt"
47+
height="90pt"
48+
viewBox="0 0 480 240">
4949
<rect
50-
x="0" y="0" width="120" height="120"
50+
x="0" y="0" width="100%" height="100%"
5151
style="fill:#BEBEBE;stroke:black;stroke-width:1;fill-opacity:1;stroke-apacity:0.5"
5252
/>
5353
<text
5454
text-anchor="middle" dominant-baseline="auto"
55-
font-family="Arial" font-size="10pt" fill="red"
56-
transform="translate(60,65) rotate(45)">
55+
font-family="Arial" font-size="20pt" fill="red"
56+
transform="translate(240,130) rotate(45)">
5757
REPLACED SVG IMAGE
5858
</text>
5959
</svg>

0 commit comments

Comments
 (0)
Please sign in to comment.