[therion] scale / base-scale question

Stacho Mudrak s.m at speleo.sk
Tue Oct 12 16:06:09 CEST 2004


Font sizes setup is very simple, just add to layout following lines:

  code metapost
  fonts_setup(14,16,20,28,40);

Some remarks:

Default is fonts_setup(7,8,10,14,20) for 1:200, so the above command will double font sizes.

Sizes 7,8,10,14,20 are the font sizes for xs,s,m,l,xl fonts. In the output map, these sizes are mupltiplied by optical scale (1/2.5 in this case). So if you want medium font to be 10 point size, it needs to be set to 10 * 2.5 = 25 pt :)

OK, it sounds complicated, but it is very simple.

To fix the waterflow arrow bug, add following metapost code to your layout.

 code metapost
 def p_waterflow_permanent (expr pos,theta,sc,al)=
    U:=(.15u,.5u);
    T:=identity aligned al rotated theta scaled sc shifted pos;
    pickup PenC;
    p:=(0,.5u){down}..(.12u,.3u)..(-.15u,.15u)..(.13u,0)..
        (-.08u,-.2u)..{down}(0,-.5u);
    p:=p rotated 180;
    thdraw p;
    oldahlength:=ahlength; ahlength:=2.5pt * optical_zoom;
    thdraw arrowhead p;
    thfill arrowhead p;
    ahlength:=oldahlength;
 enddef;

It is still "cheating", but it should help you. If not or you are using other waterflow symbols, please let me know. In the next release, these problems should be fixed.

Regards, S.





More information about the Therion mailing list