File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ rm test.html
2+ rm * .png
3+
4+ echo ' <link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/pure-min.css" integrity="sha384-nn4HPE8lTHyVtfCBi5yW9d20FjT8BJwUXyWZT9InLYax14RDjBj46LmSztkmNP9w" crossorigin="anonymous">' >> test.html
5+
6+ while read p; do
7+ rm 0.svg
8+ echo ' <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 1200 628">' >> 0.svg
9+ echo ' <defs>' >> 0.svg
10+ echo ' <style>' >> 0.svg
11+ echo ' .cls-1 {' >> 0.svg
12+ echo ' font-size: 62px;' >> 0.svg
13+ echo ' fill: #000;' >> 0.svg
14+ echo ' text-anchor: middle;' >> 0.svg
15+ echo " font-family: $p ;" >> 0.svg
16+ echo ' }' >> 0.svg
17+ echo ' </style>' >> 0.svg
18+ echo ' </defs>' >> 0.svg
19+ echo ' <text id="name" class="cls-1" x="278" y="561">陳白翰</text>' >> 0.svg
20+ echo ' </svg>' >> 0.svg
21+
22+ inkscape -e " $p .png" 0.svg
23+
24+ echo ' <div class="pure-g">' >> test.html
25+
26+ echo ' <div class="pure-u-1-2">' >> test.html
27+ echo " 字型名稱: $p " >> test.html
28+ echo ' </div>' >> test.html
29+
30+ echo ' <div class="pure-u-1-2">' >> test.html
31+ echo " <img src='$p .png' class='pure-img' /><br/>" >> test.html
32+ echo ' </div>' >> test.html
33+
34+ echo ' </div>' >> test.html
35+ done < list.txt
You can’t perform that action at this time.
0 commit comments