LUALoriotPro WEB site

LoriotPro scripting documentation
Extensions for LUA language

Table of contents Search function

Print the current page Mail this  link UTUBE Channel version française

lpav.SetFontName - Change the font of a text object

LoriotPro has extended the LUA sripting language by providing its own LUA libraries. The new functions provided are dedicated to the creation of monitoring and SNMP automation application.

Syntax

result = lpav.SetFontName("font name");

Description

Change the text font of the default object. The font should exist and be loaded.

Parameters

font name - The name of the font.

Return Values

result = 1 or return nil if error

Example


lp_value = 0;
lp_buffer ="error";

dofile(lp.GetPath().."/config/script/loriotinit.lua");

zz=LPAV_OBJ_FILL_RECT;

-- Créé des objects r s
k=0;
for i=0,20 do
lpav.Insert(10*i,1,9,9,zz);
lpav.SetFontName("courier");
end

lp.Trace("fin");
lpav.RefreshMap();

 


www.loriotpro.com