The public field color currentFontColor
has been removed and a new private field UserTextStyle _tStyle
has been added. The old currentFontColor
data is now stored inside the new field _tStyle
. New methods color currentFontColor()
and color currentFontColor=(color c)
have been added so the interface of setting currentFontColor
remains the same. By default, _tStyle
will follow the style of Dimension text
under the tools tab. However for existing 3D dimension from old drawing, user will still be seeing the previous style which always Arial
with 50mm
font height.
public class Draw3DMeasureBase extends DrawSnapper : abstract { Removed: public color currentFontColor; New: private UserTextStyle _tStyle; New: /** * Current font color (get). */ extend public color currentFontColor() { if (tStyle) return tStyle.fontColor(); return black; } New: /** * Current font color (set). */ extend public color currentFontColor=(color c) { if (tStyle) { if (!tStyle.followedStyle) { tStyle = tStyle.editedCopy().UserTextStyle; } tStyle.setFontColor(c); } return currentFontColor(); } }