Changing the Hierarchy Editor Fonts
To change the Hierarchy Editor fonts,
-
Create a file named
.hedinit(for standalone HED) or.cdsinit(for Virtuoso HED) in your home directory or current working directory. -
In the
.hedinitor.cdsinitfile, add anhiSetFontSKILL function call specifying the font to use.
The Hierarchy Editor only supports thelabelfont type for the t_fontType argument.
For example:
hiSetFont("text" ?name "Roboto Mono" ?size 12)
hiSetFont("ciw" ?name "Roboto Mono" ?size 12)
hiSetFont("label" ?name "Open Sans" ?size 12)
You can have multiple .hedinit or .cdsinit files. The Hierarchy Editor looks for the following files, in this order, and uses the first file that is found:
-
your_install_dir
/tools/dfII/local/.hedinit
Use this directory if you want to customize fonts for your entire site.
If you create a site.hedinitor.cdsinitfile, you should include the following in the file:if( and( isFile( "./.hedinit" ) isReadable( "./.hedinit" ) ) then loadi( "./.hedinit" ) else when( and( isFile( "~/.hedinit" ) isReadable( "~/.hedinit" ) ) loadi( "~/.hedinit" ) ) )
This loads users’./.hedinitor if it exists,~/.hedinitif that exists, and is needed because the Hierarchy Editor only reads the first.hedinitfile that is found. -
your_install_dir
/tools/dfII/local/.cdsinitif( and( isFile( "./.cdsinit" ) isReadable( "./.cdsinit" ) ) then loadi( "./.cdsinit" ) else when( and( isFile( "~/.cdsinit" ) isReadable( "~/.cdsinit" ) ) loadi( "~/.cdsinit" ) ) )
This loads users’./.cdsinitif it exists, or~/.cdsinit, if that exists, and is needed because the Hierarchy Editor only reads the first.cdsinitfile that is found.
Related topics
Hierarchy Editor Menu Commands
Customizing Hierarchy Editor Menus
Customizing Hierarchy Editor Columns
Return to top