#196 add possibility to set font for labels of drawn objects

open
nobody
None
5
2014-08-01
2013-01-08
No

I draw a vector with label "a" at the end:

draw ID "AxisA" width 0.2 VECTOR {-1/2 -1/2 0.0} {0.2/1 0 0} ">a"

I did not find how to set font (size, family) for the label.

Discussion

  • Angel Herraez
    Angel Herraez
    2013-01-08

    That's correct, right now controlling that text is not possible. I don't know if this may be easy to implement.

    As an alternative, you can use 3D-positioned echos, for which you have full font control:

    set echo axisA_e {-0.3/1 -0.5 0};
    echo "a";
    font echo 22 sans italic;
    color echo yellow;

     
  • > That's correct, right now controlling that text is not possible. I don't
    know if this may be easy to implement.

    I think, it should be like following:

    font DRAW 22 sans italic;

    > As an alternative, you can use 3D-positioned echos, for which you have full
    font control

    Yes, I thought about something like that, but I just corrected the resulted image with the Gimp.