Is possible to make dimension values as Italic font style?

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
Evgeniy
Posts: 477
Joined: Thu Jul 15, 2021 6:10 pm

Is possible to make dimension values as Italic font style?

Post by Evgeniy »

In accordance with GOST standards, the dimensions are indicates mainly in italics.
Is possible to make dimension values as Italic font style?
0mer0
Posts: 71
Joined: Mon Feb 08, 2021 8:46 pm

Re: Is possible to make dimension values as Italic font style?

Post by 0mer0 »

In my country, the IRAM 4503 standard based on the ISO 3098 standard also makes it possible to use inclined or italic letters. The default font in FreeCAD is osifont, but I haven't found a way to make it italic with techdraw. Maybe there is a macro or code to be able to do it, but ideally there would be in preferences the option to have the fonts in italics whatever one chooses.
Attachments
iram4503_0.png
iram4503_0.png (63.67 KiB) Viewed 2234 times
User avatar
wandererfan
Veteran
Posts: 6265
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Is possible to make dimension values as Italic font style?

Post by wandererfan »

Evgeniy wrote: Sun Sep 19, 2021 3:24 pm In accordance with GOST standards, the dimensions are indicates mainly in italics.
Is possible to make dimension values as Italic font style?
Not possible in current versions. Would this setting apply to all dimensions, or does it need to be adjustable for individual dimensions? A bit less work if it applies to all dimensions,
0mer0
Posts: 71
Joined: Mon Feb 08, 2021 8:46 pm

Re: Is possible to make dimension values as Italic font style?

Post by 0mer0 »

In my case, yes, it would be applied to all the dimensions of the page that is being worked on. That's why I think it should be in the TechDraw preferences. Even better if the labels of the templates also came with said type of italic font.
Workshop_Notes
Posts: 590
Joined: Wed Sep 29, 2021 8:35 am

Re: Is possible to make dimension values as Italic font style?

Post by Workshop_Notes »

wandererfan wrote: Sat May 14, 2022 3:37 pm ...Would this setting apply to all dimensions, or does it need to be adjustable for individual dimensions?
I think it should be possible with individual characters within a dimension. See Fig. 29 of ISO129-1:2018 as an example.

We have to be careful about mixing standards: ISO 3098 is for lettering on technical documents in general. ISO 129 is more narrowly focussed on dimensions.
User avatar
Evgeniy
Posts: 477
Joined: Thu Jul 15, 2021 6:10 pm

Re: Is possible to make dimension values as Italic font style?

Post by Evgeniy »

wandererfan wrote: Sat May 14, 2022 3:37 pm
Evgeniy wrote: Sun Sep 19, 2021 3:24 pm In accordance with GOST standards, the dimensions are indicates mainly in italics.
Is possible to make dimension values as Italic font style?
Not possible in current versions. Would this setting apply to all dimensions, or does it need to be adjustable for individual dimensions? A bit less work if it applies to all dimensions,
Preferably for each label separately and so that you can customize the default style in the settings.
0mer0
Posts: 71
Joined: Mon Feb 08, 2021 8:46 pm

Re: Is possible to make dimension values as Italic font style?

Post by 0mer0 »

Opening the file A4_Portrait_ISO7200TD.svg in Inkscape shows that the text is in osifont italic.

template_inkscape.png
template_inkscape.png (56.06 KiB) Viewed 1486 times

Why does it look Normal in FreeCAD?

temlate_freecad.png
temlate_freecad.png (135.68 KiB) Viewed 1486 times

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.30492 (Git)
Build type: Release
Branch: master
Hash: b4578fb3eae842eb510a1bc055d07d369a67ce94
Python 3.10.6, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: Spanish/Argentina (es_AR)
Installed mods: 
  * A2plus 0.4.59c
  * Curves 0.5.8
  * DynamicData 2.46.0
  * fasteners 0.4.12
  * sheetmetal 0.2.57
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: Is possible to make dimension values as Italic font style?

Post by Roy_043 »

For a correct display in Inkscape you need to install the osifont. Have you done that?
0mer0
Posts: 71
Joined: Mon Feb 08, 2021 8:46 pm

Re: Is possible to make dimension values as Italic font style?

Post by 0mer0 »

Roy_043 wrote: Fri Oct 07, 2022 10:17 pm


Yes, but the problem is not how it is represented in Inkscape (I couldn't have uploaded the image) but how in FreeCAD that same type of font looks Normal.
User avatar
wandererfan
Veteran
Posts: 6265
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: Is possible to make dimension values as Italic font style?

Post by wandererfan »

0mer0 wrote: Fri Oct 07, 2022 4:34 pm Opening the file A4_Portrait_ISO7200TD.svg in Inkscape shows that the text is in osifont italic.
Is this a custom template? If it is, please post it and I will have a look.

My copy of A4_Portrait_ISO7200TD.svg does not use osifont.
Attachments
A4_Portrait_ISO7200TD.png
A4_Portrait_ISO7200TD.png (69.95 KiB) Viewed 1402 times
Post Reply