Use sans-serif as fallback font

This makes more sense, as Verdana is a sans-serif font.
This commit is contained in:
Mathias Bynens 2014-01-08 07:33:00 +01:00 committed by Thaddee Tyl
parent b038e23042
commit 9e5606b3aa

View File

@ -9,7 +9,7 @@
<rect rx="4" x="{{=it.widths[0]}}" width="{{=it.widths[1]}}" height="18" fill="{{=it.colorB||"#4c1"}}"/>
<rect x="{{=it.widths[0]}}" width="4" height="18" fill="{{=it.colorB||"#4c1"}}"/>
<rect rx="4" width="{{=it.widths[0]+it.widths[1]}}" height="18" fill="url(#smooth)"/>
<g fill="#fff" text-anchor="middle" font-family="Verdana,serif" font-size="10">
<g fill="#fff" text-anchor="middle" font-family="Verdana,sans-serif" font-size="10">
<text x="{{=it.widths[0]/2+1}}" y="12">{{=it.text[0]}}</text>
<text x="{{=it.widths[0]+it.widths[1]/2-1}}" y="12">{{=it.text[1]}}</text>
</g>

Before

Width:  |  Height:  |  Size: 1018 B

After

Width:  |  Height:  |  Size: 1023 B