The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> Circuit Simulators >> How to set Font Style of Cadence ViVA
https://designers-guide.org/forum/YaBB.pl?num=1487598566

Message started by cheap_salary on Feb 20th, 2017, 5:49am

Title: How to set Font Style of Cadence ViVA
Post by cheap_salary on Feb 20th, 2017, 5:49am

I would like to set default font(font_name, size, font_style) by using Skill Language.

Currently I set these except for font_style by using following.
Font_Name="Roboto Mono Medium"
Font_Size=10

Code:
my_font2 = "Roboto Mono Medium,10,-1,5,50,0,0,0,0,0"
envSetVal("viva.axis" "font" 'string my_font2)


However I can not set Font_Style as "Bold".
How to set Font style, e.g. Italic, Normal, Bold Italic and Bold.

And I don't know meaning of "-1,5,50,0,0,0,0,0".
What do these number mean ?

I know second and third zeros are for "Effects/Underline" and "Effects/Strikeout"

I use IC6.1.7-64b.500.5.

Title: Re: How to set Font Style of Cadence ViVA
Post by Geoffrey_Coram on Feb 20th, 2017, 7:22am

That reminds me of the options in the old "xfontsel" utility:
-fnddry-fmly-wght-slant-sWdth-adstyl-pxlsz-ptSz-resx-resy-spc-avgWdth-rgstry-encdng

for example,
-b&h-lucida-medium-r-normal-sans-10-100-75-75-p-58-is08859-1

Title: Re: How to set Font Style of Cadence ViVA
Post by cheap_salary on Feb 20th, 2017, 7:41am


Geoffrey_Coram wrote on Feb 20th, 2017, 7:22am:
That reminds me of the options in the old "xfontsel" utility:
-fnddry-fmly-wght-slant-sWdth-adstyl-pxlsz-ptSz-resx-resy-spc-avgWdth-rgstry-encdng

for example,
-b&h-lucida-medium-r-normal-sans-10-100-75-75-p-58-is08859-1
Unnh.
Logical Font Description does not match.

By the way, until IC6.1.6, Bitmap Fons are used.
However since IC6.1.7, TrueType Fonts are used.

Title: Re: How to set Font Style of Cadence ViVA
Post by cheap_salary on Feb 20th, 2017, 7:54am

I can find out hint.
https://community.cadence.com/cadence_technology_forums/f/38/t/30504

For these variables, the font string is

<Font family>, <Point size>, <Pixel size>, <Style hint>, <Weight>, <Style>, <Underline>, <Strikeout>, <Fixed pitch>, <Raw mode>

However still I can not set font style as Bold.
I can set Normal or Italic.

Of course, I can set it as Bold from GUI.

Title: Re: How to set Font Style of Cadence ViVA
Post by Geoffrey_Coram on Feb 21st, 2017, 7:16am

Using 100 for the weight looks bold to me:

my_font2 = "Roboto Mono Medium,10,-1,5,100,0,0,0,0,0"
envSetVal("viva.axis" "font" 'string my_font2)

(I can definitely see a difference between 50 and 100, when I plot the same waveform in two windows and switch back and forth between them.)

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.