mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
Add font files to the image folder and use them in the SVG images
This commit is contained in:
parent
b7c5aefbf8
commit
0e8cbcac0c
4 changed files with 21 additions and 0 deletions
BIN
images/SometypeMono-Bold.ttf
Normal file
BIN
images/SometypeMono-Bold.ttf
Normal file
Binary file not shown.
BIN
images/SometypeMono-Regular.ttf
Normal file
BIN
images/SometypeMono-Regular.ttf
Normal file
Binary file not shown.
|
@ -6,6 +6,19 @@
|
|||
</linearGradient>
|
||||
<linearGradient xlink:href="#a" id="b" x1="10%" y1="10%" x2="90%" y2="90%"/>
|
||||
<linearGradient xlink:href="#a" id="c" x1="90%" y1="90%" x2="10%" y2="10%"/>
|
||||
<style type="text/css">
|
||||
<![CDATA[
|
||||
@font-face {
|
||||
font-family: 'Sometype Mono';
|
||||
src: url('./SometypeMono-Regular.ttf');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Sometype Mono';
|
||||
src: url('./SometypeMono-Bold.ttf');
|
||||
font-weight: bold;
|
||||
}
|
||||
]]>
|
||||
</style>
|
||||
</defs>
|
||||
<rect width="100%" height="100%" x="0" y="0" fill="#203050"/>
|
||||
<g transform="translate(200,200)">
|
||||
|
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.5 KiB |
|
@ -6,6 +6,14 @@
|
|||
</linearGradient>
|
||||
<linearGradient xlink:href="#a" id="b" x1="10%" y1="10%" x2="90%" y2="90%"/>
|
||||
<linearGradient xlink:href="#a" id="c" x1="90%" y1="90%" x2="10%" y2="10%"/>
|
||||
<style type="text/css">
|
||||
<![CDATA[
|
||||
@font-face {
|
||||
font-family: 'Sometype Mono';
|
||||
src: url('./SometypeMono-Regular.ttf');
|
||||
}
|
||||
]]>
|
||||
</style>
|
||||
</defs>
|
||||
<rect width="100%" height="100%" x="0" y="0" fill="#203050"/>
|
||||
<rect width="460" height="460" x="170" y="170" rx="50" ry="50" fill="url(#b)"/>
|
||||
|
|
Before Width: | Height: | Size: 779 B After Width: | Height: | Size: 967 B |
Loading…
Add table
Reference in a new issue