Width of a picture generated by font function
Author: Prinzessin
Publication Date: 8/9/2011 16:25
Hello,
is it possible to get the width of a picture that was generated by the CMS font function?
I generate a picture like this:
Example: $CMS_REF(font(font:font_family,size:20,justify:font_justify,yspace:5,xspace:10,filetype:"jpg",height:25,color:"#000000",text_antialiasing:true,text:st_zeile1))$
And after that I need the width / heigt of this image?
Tags: breite, CMS, font, funktion, generate, generieren, height, höhe, width
-
Author: Peter_Jodeleit - 8/9/2011 16:59
This should do the trick:
$CMS_SET(myFontImage, font(....))$
<img src="$CMS_REF(myFontImage)$" width="$CMS_VALUE(myFontImage.width)$" height="$CMS_VALUE(myFontImage.height)$">
Disclaimer: Not tested, typos possible.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar