DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Font Issue text and dimensions differ

Started by bajanine, January 26, 2021, 11:42:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bajanine

I need help on fixing the font differences on my drawing. Both the text and dimensions are using the same font but after exporting to a PDF look very different. I've tried several fonts to no avail. https://drive.google.com/file/d/15B9vvwgwQ7lcBr3mTWdZrbCnzGSl4N1D/view?usp=sharing
Any help would be appreciated. Using DesignCAD 2020, Version 29.0.
DesignCAD 2D 2020 Ver. 29.0

Rob S

This issue with text fonts showing differently on screen has existed in Designcad for as long as I can recall, which is for many versions!!

In the text dialog, if you choose text-2d it displays the same as dimension text.  The text format difference applies more to 3D drawings.

The text rendering difference is normally ONLY noticeable on the screen, and not on a printout, which would normally also include printouts to pdf format.

What method did you use to create your pdf file?

You might try one of the free pdf printer drivers such as Cute PDF, which as far as I know eliminates the font display issue on the output.

User since forever

bajanine

I will try your suggestions out. I used MS print to PDF driver to create the PDF's. Thank you for the pointers.
DesignCAD 2D 2020 Ver. 29.0

Rob S

#3
I was just doing some testing, and I find to my chagrin that Cute PDF writer now does print the text as it is displayed on the designcad screen.

This means the regular text has rougher edges and is slightly more bold-looking than the 2D text.

So, that eliminates one option.   :(

I also found that the regular rough-edged text is not actual Text in the pdf output, so for anyone wanting to create editable importable pdf of their drawings this might be a very important consideration.

Further checking required if this issue only exists in recent versions,  as I have not noticed it before.

User since forever

bdeck

#4
Quote from: Rob S on January 27, 2021, 10:12:59 AM
I was just doing some testing, and I find to my chagrin that Cute PDF writer now does print the text as it is displayed on the designcad screen.

Hi Rob, baganine,

Foxit is same as Cute. Plain text is rendered as an image (with rounded pixels)  instead of text.

Also, exploding a dimension in DC converts its text from Text-2D to "Text"

Here's a macro to to fix the problem by changing all "Text" in a drawing to Text-2D.

''' TtoT2.d3m        Converts all Text entities to Text-2D

Alias ENT_TYPE  &H0101
Alias ENT_SELECTED  &H010C 

>deselect              'make certain nothing is selected at outset
{
}

ne=sys(9)             ' count entities in drawing

for i=1 to ne
entity i
query ENT_TYPE, etype
if etype=3 then   ' is this plain text?
change ENT_SELECTED, 1    ' select the entity
update   ' update the change
endif
next i

>ConvertText    'convert text to 2d
{
}
>deselect
{
}

end



bajanine

I'll try the macro out. Thanks bdeck.

The following fonts appear to reduce the issue also.
  source serif pro light
  source code pro light
  source code pro medium
  source serif pro semi bold
  source sans pro
  prompt light

I tried the cutePDF, bluebeamPDF, and MS print driver all seem to give similar poor results.

DesignCAD 2D 2020 Ver. 29.0

bdeck

#6
Edited

Hi Bajanine,

Thanks for the font suggestion. For cosmetics, you might try vector fonts as well.

On screen, True Type dimension text is nearly identical to Text-2D, but dimension text is not anti-aliased. If you blow up the attached image capture, you can see the anti-aliasing in the Text-2D, whereas the unaltered dimension and the exploded dimension show no anti-aliasing.

However, when printed from a 2d view to pdf (using Cute or Foxit, for example)  True Type dimension text is identical to Text-2D, and is selectable as text in the pdf. (unless not drawn horizontally)

Furthermore, using the Quick OCR function in Foxit Phantom, horizontal text images, (eg those resulting from explosion of a 2D dimension in DC) also become selectable as text,  See attached pdf created with Cute (for small file size) and then edited with Foxit Phantom QuickOCR.

Foxit's OCR engine will convert some 3d text to searchable text, but only at the expense of rotating the entire image so that the text is horizontal.

If you need text in a 3D view to be selectable or searchable in the pdf, first explode all dimensions, then run the text conversion macro. That will also make all dimension text  horizontal and recognizable on the pdf page.

Alternatively you can first use File/Save_As/Save_2-D_Projection from a DC 3D view window.

Open the new 2D file, change any vector fonts to True Type, and use the macro to convert all text to Text-2D. After printing to Cute or Foxit, the text in the resulting pdf will be searchable. It will also be selectable, so long as its angle is not too severe.

To guarantee the text in a pdf is selectable, change its angle to 0 in the Info Box or in a macro before printing to pdf.

Regards
bd

bajanine

DesignCAD 2D 2020 Ver. 29.0