From: Matthias Wirth Date: Sun, 27 Oct 2013 16:39:49 +0000 (+0100) Subject: nametag X-Git-Url: https://git.siccegge.de//index.cgi?a=commitdiff_plain;h=cb0c55636c99d52ac800041a9d253a989f07eda4;p=teilnehmertool.git nametag --- diff --git a/templates/nametag.svg b/templates/nametag.svg index a438244..687008f 100644 --- a/templates/nametag.svg +++ b/templates/nametag.svg @@ -425,12 +425,15 @@ y="152.73964" x="189.94026" style=" - {% if nick|length > 14 %} font-size:45px; - {% elif nick|length > 10 %} font-size:55px; + {% if nick|length > 20 %} font-size:30px; + {% elif nick|length > 16 %} font-size:33px; + {% elif nick|length > 14 %} font-size:45px; + {% elif nick|length > 12 %} font-size:47px; + {% elif nick|length > 9 %} font-size:53px; {% elif nick|length > 8 %} font-size:65px; {% else %} font-size:80px; {% endif %} - width=100%;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:center;line-height:125%;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Source Sans Pro;-inkscape-font-specification:Source Sans Pro" + font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:center;line-height:125%;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Source Sans Pro;-inkscape-font-specification:Source Sans Pro" xml:space="preserve" transform="scale(0.96625396,1.0349246)">{{nick}}