Page 1 of 1

Default font: not selectable

Posted: 24 Apr 2009, 16:51
by Peter
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

Re: Default font: not selectable

Posted: 27 Apr 2009, 10:16
by support
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.

Re: Default font: not selectable

Posted: 27 Apr 2009, 13:33
by Peter
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

Re: Default font: not selectable

Posted: 27 Apr 2009, 14:07
by support
Can you please send us file example?

Sergey.

Re: Default font: not selectable

Posted: 27 Apr 2009, 14:25
by Peter
I sent it now per e-mail.

Peter

Re: Default font: not selectable

Posted: 27 Apr 2009, 15:02
by support
OK, thank you.

Sergey.

Re: Default font: not selectable

Posted: 28 Apr 2009, 15:03
by support
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.

Re: Default font: not selectable

Posted: 28 Apr 2009, 17:23
by Peter
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

Re: Default font: not selectable

Posted: 29 Apr 2009, 10:35
by support
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.