The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Mar 28th, 2024, 1:18pm
Pages: 1
Send Topic Print
How to set Font Style of Cadence ViVA (Read 3047 times)
cheap_salary
Senior Member
****
Offline



Posts: 162

How to set Font Style of Cadence ViVA
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.
Back to top
 
« Last Edit: Feb 20th, 2017, 8:07am by cheap_salary »  
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1998
Massachusetts, USA
Re: How to set Font Style of Cadence ViVA
Reply #1 - 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-enc
dng

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

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
cheap_salary
Senior Member
****
Offline



Posts: 162

Re: How to set Font Style of Cadence ViVA
Reply #2 - 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-enc
dng

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.
Back to top
 
 
View Profile   IP Logged
cheap_salary
Senior Member
****
Offline



Posts: 162

Re: How to set Font Style of Cadence ViVA
Reply #3 - 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.
Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1998
Massachusetts, USA
Re: How to set Font Style of Cadence ViVA
Reply #4 - 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.)
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.