Navigation:  Macro > Instructions > Fenêtre utilisateur >

WFONT GET LEN

AiM Services
Previous pageReturn to chapter overviewNext page

WFONT GET LEN Numéro|Nom$,Text$;Len,Err

Cette fonction retourne la longueur en pixels d'un texte en caractères bitmap.
 

Paramètres d'entrée

Numéro

 :

Numéro de la police de caractères

Nom$

 :

Nom de la police type de caractères

 

 

Numéro

Nom

0

"8x16"

1

"8x16b"

2

"8x16i"

3

"10x20"

4

"10x20b"

5

"10x20i"

6

"12x20"

7

"12x20b"

8

"12x20i"

9

"8x11"

10

"7x10"

11

"6x8"

Numéro

Nom

12

"arial12"

13

"arial12b"

14

"arial12i"

15

"arial14"

16

"arial14b"

17

"arial14i"

18

"arial18"

19

"arial18b"

20

"arial18i"

Text$

 :

Texte a calculer la longueur

Paramètres de sortie

Len

 :

Longueur en pixels du texte

Err

 :

Numéro de l'erreur

Exemple

 WFONT GET LEN "8x16","Abcedf";Len
 WFONT GET LEN 0,"Abcedf";Len