SGR GetTexteSize-EN : Différence entre versions
De BlueWiki
(2 révisions intermédiaires par un utilisateur sont masquées) | |||
Ligne 1 : | Ligne 1 : | ||
− | [[Composant_Graphe_SVG-EN#Commands|Component Command List ]] | + | [[Composant_Graphe_SVG-EN#Commands|Component Command List ]] - [[SGR_GetTexteSize|Version française]] |
− | + | ||
− | [[SGR_GetTexteSize|Version française]] | + | |
=== Parameters === | === Parameters === | ||
{| class="wikitable" | {| class="wikitable" | ||
Ligne 50 : | Ligne 48 : | ||
=== Description === | === Description === | ||
---- | ---- | ||
− | + | This command provides the width of a text in a given with a given size and font style. | |
− | + | ||
− | + | ||
− | + | She has a big advantage over the 4D command "OBJECT GET BEST SIZE", it does not need to have an object and therefore works even outside of a form. | |
− | + | This command uses the rendering engine of 4D SVG, so there may be a gap of a few pixels with the rendering of a 4D form either on screen or in print. | |
− | === | + | === Code exemple=== |
---- | ---- | ||
− | $JsonSize:=SGR_GetTexteSize(" | + | $JsonSize:=SGR_GetTexteSize("MyText";"Arial";48;Bold) |
− | + | You will get in $JsonSize : {"width":"223","height":"63"} |
Version actuelle en date du 2 juillet 2014 à 19:17
Component Command List - Version française
[modifier] Parameters
[modifier] Description
This command provides the width of a text in a given with a given size and font style.
She has a big advantage over the 4D command "OBJECT GET BEST SIZE", it does not need to have an object and therefore works even outside of a form.
This command uses the rendering engine of 4D SVG, so there may be a gap of a few pixels with the rendering of a 4D form either on screen or in print.
[modifier] Code exemple
$JsonSize:=SGR_GetTexteSize("MyText";"Arial";48;Bold)
You will get in $JsonSize : {"width":"223","height":"63"}