Default font: not selectable

If you have any comments or questions about plugins, please do not hesitate to contact us at this forum

Moderators: admin, SDS, support

Default font: not selectable

Postby Peter » 24 Apr 2009, 13:51

The "default font" should have a possibility to select Truetype and SHX-Fonts. This is the best way to select only real existing fonts and to avoid typos in font-name.

Peter
Peter
 
Posts: 255
Joined: 23 Jun 2005, 08:27
Location: Switzerland

Re: Default font: not selectable

Postby support » 27 Apr 2009, 07:16

CADView plugin allows defining default fonts:
  • right mouse click over CADView plugin;
  • select "Options..." item in the popup menu;
  • select "SHX fonts" tab;
  • set on "Use SHX fonts";
  • define "Search path" - this is where SHX fonts to be searched of;
  • define "Default path" - this is where default SHX font to be stored;
  • define "Default font" - default SHX font.
If necessary SHX font is not found it is to be replaced by TTF font with the same name.

Sergey.
Please post questions to the forum or write to support@cadsofttools.com
support
 
Posts: 2226
Joined: 30 Mar 2005, 08:36
Location: Russia

Re: Default font: not selectable

Postby Peter » 27 Apr 2009, 10:33

support wrote:...
[*]define "Default font" - default SHX font.[/*][/list]
If necessary SHX font is not found it is to be replaced by TTF font with the same name.

Sergey.

That is not what I meant. In AutoCAD I use "Wingdings" as "Standard replacement font". The reason is that I

- do not want to replace an unknown font
- but want to see clearly with strange signs (Wingdings) that a font is missing.

And to avoid wrong typing of name (wingding, windings, plus extension or not ...) there should be a selecting menu.

Peter
Peter
 
Posts: 255
Joined: 23 Jun 2005, 08:27
Location: Switzerland

Re: Default font: not selectable

Postby support » 27 Apr 2009, 11:07

Can you please send us file example?

Sergey.
Please post questions to the forum or write to support@cadsofttools.com
support
 
Posts: 2226
Joined: 30 Mar 2005, 08:36
Location: Russia

Re: Default font: not selectable

Postby Peter » 27 Apr 2009, 11:25

I sent it now per e-mail.

Peter
Peter
 
Posts: 255
Joined: 23 Jun 2005, 08:27
Location: Switzerland

Re: Default font: not selectable

Postby support » 27 Apr 2009, 12:02

OK, thank you.

Sergey.
Please post questions to the forum or write to support@cadsofttools.com
support
 
Posts: 2226
Joined: 30 Mar 2005, 08:36
Location: Russia

Re: Default font: not selectable

Postby support » 28 Apr 2009, 12:03

The search fonts logic is the following:
  • SHX font is to be searched, if it is required for some text;
  • default SHX font is to be searched, if necessary SHX font does not exists on a computer and respective setting are made on "Options..." dialog;
  • TTF font with the same name as necessary SHX font is to be searched, if necessary and default SHX fonts weren't found;
  • Arial.ttf font is used, if non of fonts were found.
Do you suppose that there is not enough Arial.ttf font to be used, if non of required fonts were found?

Sergey.
Please post questions to the forum or write to support@cadsofttools.com
support
 
Posts: 2226
Joined: 30 Mar 2005, 08:36
Location: Russia

Re: Default font: not selectable

Postby Peter » 28 Apr 2009, 14:23

support wrote:The search fonts logic is the following:
  • SHX font is to be searched, if it is required for some text;

Question 1:
Is SHX always searched, independent from the settings in Options?

support wrote:The search fonts logic is the following:
  • default SHX font is to be searched, if necessary SHX font does not exists on a computer and respective setting are made on "Options..." dialog;

Question 2:
Does "respective settings" mean that "SHX" is enabled?
What happens if it is disabled?

support wrote:[Do you suppose that there is not enough Arial.ttf font to be used, if non of required fonts were found?


Question 3:
What do you mean with "not enough"?

I looked at Cadview.ini:
Code: Select all
SHX default path=C:\
SHX default font=wingdings

Now it is clear that "default font" only can be a SHX-font.

IMHO the AutoCAD solution is fine:
- They do not use the word "Default", but they use "Alternative" (similiar). That is more clear
- The user can select what he wants - so the user is free and the logic is not so complicated.

Peter
Peter
 
Posts: 255
Joined: 23 Jun 2005, 08:27
Location: Switzerland

Re: Default font: not selectable

Postby support » 29 Apr 2009, 07:35

Peter wrote:
support wrote:The search fonts logic is the following:
  • SHX font is to be searched, if it is required for some text;

Question 1:
Is SHX always searched, independent from the settings in Options?

No, it is not. It is TTF font to be searched, if "Use SHX fonts" option is switched off.
Peter wrote:
support wrote:The search fonts logic is the following:
  • default SHX font is to be searched, if necessary SHX font does not exists on a computer and respective setting are made on "Options..." dialog;

Question 2:
Does "respective settings" mean that "SHX" is enabled?
What happens if it is disabled?

"Respective settings" means "Use SHX fonts" option.
It is TTF font to be searched, if "Use SHX fonts" option is switched off.
Peter wrote:
support wrote:[Do you suppose that there is not enough Arial.ttf font to be used, if non of required fonts were found?


Question 3:
What do you mean with "not enough"?

"Not enough" means Arial.ttf font. This font is used if no SHX and respective TTF font were found.
Peter wrote:I looked at Cadview.ini:
Code: Select all
SHX default path=C:\
SHX default font=wingdings

Now it is clear that "default font" only can be a SHX-font.

Yes. it is.
Peter wrote:IMHO the AutoCAD solution is fine:
- They do not use the word "Default", but they use "Alternative" (similiar). That is more clear
- The user can select what he wants - so the user is free and the logic is not so complicated.

Peter

We will consider this question and inform you about results.

Sergey.
Please post questions to the forum or write to support@cadsofttools.com
support
 
Posts: 2226
Joined: 30 Mar 2005, 08:36
Location: Russia


Return to CS_xxx.DLL, CADImage.DLL, CADView for TC - Plugins

Who is online

Users browsing this forum: No registered users and 0 guests