]> git.siccegge.de Git - teilnehmertool.git/commitdiff
nametag
authorMatthias Wirth <re97kobe@stud.informatik.uni-erlangen.de>
Sun, 27 Oct 2013 16:39:49 +0000 (17:39 +0100)
committerMatthias Wirth <re97kobe@stud.informatik.uni-erlangen.de>
Sun, 27 Oct 2013 16:39:49 +0000 (17:39 +0100)
templates/nametag.svg

index a438244966166df241aeeb531b18731463134857..687008f06ada35934ae743a991d24ad80d515af9 100644 (file)
      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)"><tspan
        y="152.73964"
        sodipodi:role="line">{{nick}}</tspan></text>
   <text
      xml:space="preserve"
-     style="font-size:24px;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"
+     style="
+       {% if uni1|length > 27 %} font-size:20px;
+       {% else %} font-size:24px;
+       {% endif %}
+       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"
      x="185.85413"
      y="204.73001"
      id="text5630"