FONT_NAME

FONT_NAME N,S

SET THE FONT FOR THE CHARACTERS DISPLAYED BY THE SYSTEM OBJECT NUMBER N

  • Type: Command
  • Parameters: 2
  • Group: Font

ACTION

The command FONT_NAME N,S set the font for the characters displayed by the system object number N, by the name S of the font.

The system object is of type : BUTTON, EDIT, MEMO, COMBO, ALPHA, FORM, LIST, PICTURE, CHECK, OPTION, SPIN, GRID, CONTAINER, MEMO_RICH, BUTTON_PICTURE, SCENE2D, PANEL, GRID_DRAW, CONTAINER_OPTION, TAB, SYNEDIT, CHART.

SYNTAX: FONT_NAME N,S

  • N = system object number (integer or real). Must be greater than 0 and less than or equal to the allowed maximum number of system objects.
  • S = name of the font (string)

USE

  • The command FONT_NAME is used to set the font of the text displayed by a system object.

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of system objects.
  • If number N is less than 0.
  • If the system object number N does not exist.
  • If number N is not a system object of the type : BUTTON, EDIT, MEMO, COMBO, ALPHA, FORM, LIST, PICTURE, CHECK, OPTION, SPIN, GRID, CONTAINER, MEMO_RICH, BUTTON_PICTURE, SCENE2D, PANEL, GRID_DRAW, CONTAINER_OPTION, TAB, SYNEDIT, CHART.
  • If S is not a correct string expression.

EXAMPLE

rem create a MEMO

memo 1

rem fill it with a line

item_add 1,"Hello !"

rem wait for 1 second

wait 1000

rem use the font Times New Roman

font_name 1,"Times New Roman"

SEE ALSO

FONT_SIZE

FONT_COLOR

FONT_BOLD

FONT_BOLD_OFF

FONT_ITALIC

FONT_ITALIC_OFF

FONT_UNDERLINE

FONT_UNDERLINE_OFF

FONT_STRIKE

FONT_STRIKE_OFF

FONT_NAMES_ADD

FONT_NAMES_LOAD