That's definitely one for @wandererfan, I'm just the Windows user who is trying to learn C++ (and not very well I may add).
[Possible bug] Vertical Dimensions do not appear centered by default
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: [Possible bug] Vertical Dimensions do not appear centered by default
- wandererfan
- Veteran
- Posts: 6324
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: [Possible bug] Vertical Dimensions do not appear centered by default
Initial vertical position using center of text implemented by git commit cf5a14bc.
- wandererfan
- Veteran
- Posts: 6324
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: [Possible bug] Vertical Dimensions do not appear centered by default
The font size in mm is available from TechDraw Preferences:
Code: Select all
# include <Mod/TechDraw/App/Preferences.h>
double fontSize = Preferences::dimFontSizeMM();
dim->Y.setValue(-mid.y + 0.5 * fontSize);
Re: [Possible bug] Vertical Dimensions do not appear centered by default
Thank you. That is exact what I was looking for.