04-05-2013 02:25 AM
Hello,
i cant find an attribute to set the text size of the graph legend.
There are som Plot Attributes to set the font and font length but no Attribute for the size?
How can i set the size of the grapg legend?
Thanks
Norbert Rieper
04-05-2013 08:09 AM
You can use a metafont that you create yourself, and thus use a custom size. For example:
CreateMetaFont ("my font", VAL_DIALOG_META_FONT, newSize, 0, 0, 0, 0);
SetPlotAttribute (panel, PANEL_GRAPH, plotId, ATTR_PLOT_LG_FONT, "my font");
04-05-2013 08:30 AM
Hello LuisG,
thanks a lot, thats a nice workaround.
04-23-2019 12:32 PM - edited 04-23-2019 12:33 PM
@LuisG wrote:
You can use a metafont that you create yourself, and thus use a custom size. For example:
CreateMetaFont ("my font", VAL_DIALOG_META_FONT, newSize, 0, 0, 0, 0);
SetPlotAttribute (panel, PANEL_GRAPH, plotId, ATTR_PLOT_LG_FONT, "my font");
Wow, I never would have thought of this work-around, but it totally gets the job done.
In my case, I was after an attribute like ATTR_PLOT_LG_FONT_BOLD which doesn't exist. So with CreateMetaFont I can make my own with bold enabled.