Product Documentation
Cadence User Interface SKILL Reference
Product Version IC23.1, September 2023

dlQueryRasterFont

dlQueryRasterFont(
t_fontName
) 
=> l_fontProperties / nil

Description

Returns the font property list for the raster font.

Argument

t_fontName

Name of a font, which can be:

  • An X logical font descriptor (XLFD) such as "-*-courier-medium-r-*-*-12-*" and "-*-helvetica-medium-r-*-*-14-*”.
  • A standard alias name such as "6x13" or "fixed".
  • A font type such as "text", "ciw", "label", "error", or "help". When a font type is specified, the default font name used in IC6.1.6 or previous releases is used as shown below:
    font type font name
    ------ ---------
    text -*-courier-medium-r-*-*-12-*
    ciw -*-courier-medium-r-*-*-12-*
    label -*-helvetica-medium-r-*-*-12-*
    error -*-helvetica-medium-r-*-*-12-*
    help -*-helvetica-medium-r-*-*-14-*

Value Returned

l_fontProperties

A disembodied Property List (DPL) with same properties as that returned by the hiQueryFont SKILL function.

nil

Font cannot be found.

Examples

Retrieves the font property list of the XLFD "-*-courier-medium-r-*-*-12-*"

dlQueryRasterFont("-*-courier-medium-r-*-*-12-*")
(nil fontName "-*-courier-medium-r-*-*-12-*" fontAscent 10
fontDescent 3 fontHeight 13 fontWidth
7 minFontWidth 7 maxFontWidth 7

Retrieves the font property list of the font type label.

dlQueryRasterFont("label")
(nil fontName "-*-helvetica-medium-r-*-*-12-*" fontAscent 11
fontDescent 3 fontHeight 14 fontWidth

7 minFontWidth 2 maxFontWidth 12

Related Topics

View Display List Functions


Return to top
 ⠀
X