J
James-Hughes
I am currently working on a .Net assembly (C#) to dynamically generate
an SVG in the form of a bar chart. I am having a problem drawing the
legend based upon dynamic data being passed to my class. When I am
drawing the legend, I need to determine which item is the longest and
make the legend at least that wide. What I would like to do is
determine the height and width of a piece of text based upon a
selected font and size. Does anyone have any code to do this or know
of where I can go for more information.
an SVG in the form of a bar chart. I am having a problem drawing the
legend based upon dynamic data being passed to my class. When I am
drawing the legend, I need to determine which item is the longest and
make the legend at least that wide. What I would like to do is
determine the height and width of a piece of text based upon a
selected font and size. Does anyone have any code to do this or know
of where I can go for more information.