You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Saw that some commercial software does this by specifying font & linewidth as a Percentage/Fraction of the image size! Brilliant.
So that way regardless of your image’s width or resolution, font would always take up the same space if image was scaled to the screen size. Only need one size that applies to all calibrations.
Example, totally guessing on the function names/args:
FontSize = 0.05 # 5% of the image height
LineWidth = 0.001 # 0.1% of the image height
#draw the line:
draw_Line( thickness = ImageHeight * LineWidth )
Since font/line size is a pixel value, sometimes the settings file draws the text way too small/too large.
It might make sense to have a calibration also have it's own font/line settings.
If so, I'd make the font/line settings be picked up by the name of the calibration, for ease of programming the user-settings file.
Eg.
The text was updated successfully, but these errors were encountered: