Embed font to SVG

This commit is contained in:
Ilya Kantor 2019-08-11 14:17:38 +03:00
parent 1310171dd7
commit 4d44df6a3a
226 changed files with 225 additions and 11893 deletions

View file

@ -1,58 +1 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="514px" height="411px" viewBox="0 0 514 411" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: sketchtool 55.2 (78181) - https://sketchapp.com -->
<title>try-catch-flow.svg</title>
<desc>Created with sketchtool.</desc>
<g id="combined" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="try-catch-flow.svg">
<g id="Rectangle-1-+-Корень" transform="translate(207.000000, 4.000000)">
<rect id="Rectangle-1" stroke="#E8C48E" stroke-width="2" fill="#FFF9EB" x="1" y="1" width="78" height="28" rx="14"></rect>
<text id="Begin" font-family="OpenSans-Regular, Open Sans" font-size="14" font-weight="normal" fill="#8A704D">
<tspan x="21" y="20">Begin</tspan>
</text>
</g>
<g id="Rectangle-1-+-Корень-Copy-2" transform="translate(313.000000, 262.000000)"></g>
<path id="Line" d="M246,57.0499687 L246,34 L249,34 L249,57.0499687 L257,57.0499687 L247.5,76.0499687 L238,57.0499687 L246,57.0499687 Z" fill="#EE6B47" fill-rule="nonzero"></path>
<path id="Line-Copy" d="M396,320.049969 L396,297 L399,297 L399,320.049969 L407,320.049969 L397.5,339.049969 L388,320.049969 L396,320.049969 Z" fill="#EE6B47" fill-rule="nonzero"></path>
<path id="Path-1218" d="M96.5,219.5 L96.5,131.5 L158.5,131.5 L158.5,134.5 L99.5,134.5 L99.5,219.5 L107.5,219.5 L98,238.5 L88.5,219.5 L96.5,219.5 Z" fill="#EE6B47" fill-rule="nonzero"></path>
<path id="Path-1218-Copy" d="M397.5,219.5 L397.5,134.5 L317,134.5 L315.5,134.5 L315.5,131.5 L400.5,131.5 L400.5,219.5 L408.5,219.5 L399,238.5 L389.5,219.5 L397.5,219.5 Z" fill="#EE6B47" fill-rule="nonzero"></path>
<g id="Rectangle-354-+-Каково-“официальное”" transform="translate(154.000000, 81.000000)" fill="#FFF9EB" stroke="#E8C48E" stroke-width="2">
<path d="M2.05929887,52 L93.6102814,102.856071 L185.161264,52 L93.6102814,1.14392927 L2.05929887,52 Z" id="Rectangle-354"></path>
</g>
<g id="Rectangle-356-+-Отмена" transform="translate(59.000000, 177.000000)">
<rect id="Rectangle-356" fill="#FFFFFF" x="0" y="2" width="60" height="20"></rect>
<text id="No-Errors" font-family="OpenSans-Regular, Open Sans" font-size="14" font-weight="normal" fill="#8A704D">
<tspan x="7.5" y="15">No Errors</tspan>
</text>
</g>
<g id="Rectangle-356-Copy-+-“Админ”" transform="translate(303.000000, 176.000000)">
<rect id="Rectangle-356-Copy" fill="#FFFFFF" x="65" y="2" width="60" height="20"></rect>
<text id="An-error-occured-in" font-family="OpenSans-Regular, Open Sans" font-size="14" font-weight="normal" fill="#8A704D">
<tspan x="0.932128906" y="15">An error occured in the code</tspan>
</text>
</g>
<rect id="Rectangle-1-Copy-2" stroke="#E8C48E" stroke-width="2" fill="#FFF9EB" x="292" y="349" width="214" height="49" rx="24.5"></rect>
<rect id="Rectangle-1" stroke="#E8C48E" stroke-width="2" fill="#FFF9EB" x="1" y="244" width="195" height="49" rx="24.5"></rect>
<rect id="Rectangle-1-Copy" stroke="#E8C48E" stroke-width="2" fill="#FFF9EB" x="290" y="244" width="216" height="49" rx="24.5"></rect>
<text id="Ignore-catch-block" font-family="OpenSans-Regular, Open Sans" font-size="14" font-weight="normal" fill="#8A704D">
<tspan x="39" y="272">Ignore catch block</tspan>
</text>
<text id="Ignore-the-rest-of-t" font-family="OpenSans-Regular, Open Sans" font-size="14" font-weight="normal" fill="#8A704D">
<tspan x="332" y="272">Ignore the rest of try</tspan>
</text>
<text id="Execute-catch-block" font-family="OpenSans-Regular, Open Sans" font-size="14" font-weight="normal" fill="#8A704D">
<tspan x="333" y="379">Execute catch block</tspan>
</text>
<text id="try-{-}" font-family="PTMono-Regular, PT Mono" font-size="14" font-weight="normal" line-spacing="10" fill="#8A704D">
<tspan x="218" y="117">try {</tspan>
<tspan x="218.49" y="129.809906"></tspan>
<tspan x="218.49" y="139.809906"></tspan>
<tspan x="218.49" y="149.809906"></tspan>
<tspan x="218" y="157">}</tspan>
</text>
<text id="//-code..." font-family="PTMono-Regular, PT Mono" font-size="14" font-weight="normal" line-spacing="10" fill="#8A704D">
<tspan x="232" y="138">// code...</tspan>
</text>
</g>
</g>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="514" height="411" viewBox="0 0 514 411"><defs><style>@import url(https://fonts.googleapis.com/css?family=Open+Sans:bold,italic,bolditalic%7CPT+Mono);@font-face{font-family:&apos;PT Mono&apos;;font-weight:700;font-style:normal;src:local(&apos;PT MonoBold&apos;),url(/pack/modules/styles/blocks/font/PTMonoBold.woff2) format(&apos;woff2&apos;),url(/pack/modules/styles/blocks/font/PTMonoBold.woff) format(&apos;woff&apos;),url(/pack/modules/styles/blocks/font/PTMonoBold.ttf) format(&apos;truetype&apos;)}</style></defs><g id="combined" fill="none" fill-rule="evenodd" stroke="none" stroke-width="1"><g id="try-catch-flow.svg"><g id="Rectangle-1-+-Корень" transform="translate(207 4)"><rect id="Rectangle-1" width="78" height="28" x="1" y="1" fill="#FFF9EB" stroke="#E8C48E" stroke-width="2" rx="14"/><text id="Begin" fill="#8A704D" font-family="OpenSans-Regular, Open Sans" font-size="14" font-weight="normal"><tspan x="21" y="20">Begin</tspan></text></g><path id="Line" fill="#EE6B47" fill-rule="nonzero" d="M246 57.05V34h3v23.05h8l-9.5 19-9.5-19h8z"/><path id="Line-Copy" fill="#EE6B47" fill-rule="nonzero" d="M396 320.05V297h3v23.05h8l-9.5 19-9.5-19h8z"/><path id="Path-1218" fill="#EE6B47" fill-rule="nonzero" d="M96.5 219.5v-88h62v3h-59v85h8l-9.5 19-9.5-19h8z"/><path id="Path-1218-Copy" fill="#EE6B47" fill-rule="nonzero" d="M397.5 219.5v-85h-82v-3h85v88h8l-9.5 19-9.5-19h8z"/><g id="Rectangle-354-+-Каково-“официальное”" fill="#FFF9EB" stroke="#E8C48E" stroke-width="2" transform="translate(154 81)"><path id="Rectangle-354" d="M2.06 52l91.55 50.856L185.161 52 93.611 1.144 2.058 52z"/></g><g id="Rectangle-356-+-Отмена" transform="translate(59 177)"><path id="Rectangle-356" fill="#FFF" d="M0 2h60v20H0z"/><text id="No-Errors" fill="#8A704D" font-family="OpenSans-Regular, Open Sans" font-size="14" font-weight="normal"><tspan x="7.5" y="15">No Errors</tspan></text></g><g id="Rectangle-356-Copy-+-“Админ”" transform="translate(303 176)"><path id="Rectangle-356-Copy" fill="#FFF" d="M65 2h60v20H65z"/><text id="An-error-occured-in" fill="#8A704D" font-family="OpenSans-Regular, Open Sans" font-size="14" font-weight="normal"><tspan x=".932" y="15">An error occured in the code</tspan></text></g><rect id="Rectangle-1-Copy-2" width="214" height="49" x="292" y="349" fill="#FFF9EB" stroke="#E8C48E" stroke-width="2" rx="24.5"/><rect id="Rectangle-1" width="195" height="49" x="1" y="244" fill="#FFF9EB" stroke="#E8C48E" stroke-width="2" rx="24.5"/><rect id="Rectangle-1-Copy" width="216" height="49" x="290" y="244" fill="#FFF9EB" stroke="#E8C48E" stroke-width="2" rx="24.5"/><text id="Ignore-catch-block" fill="#8A704D" font-family="OpenSans-Regular, Open Sans" font-size="14" font-weight="normal"><tspan x="39" y="272">Ignore catch block</tspan></text><text id="Ignore-the-rest-of-t" fill="#8A704D" font-family="OpenSans-Regular, Open Sans" font-size="14" font-weight="normal"><tspan x="332" y="272">Ignore the rest of try</tspan></text><text id="Execute-catch-block" fill="#8A704D" font-family="OpenSans-Regular, Open Sans" font-size="14" font-weight="normal"><tspan x="333" y="379">Execute catch block</tspan></text><text id="try-{-}" fill="#8A704D" font-family="PTMono-Regular, PT Mono" font-size="14" font-weight="normal"><tspan x="218" y="117">try {</tspan> <tspan x="218" y="157">}</tspan></text><text id="//-code..." fill="#8A704D" font-family="PTMono-Regular, PT Mono" font-size="14" font-weight="normal"><tspan x="232" y="138">// code...</tspan></text></g></g></svg>

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Before After
Before After