I'm guessing you need to tell the <font/> that its' bold.  Try thins:

<canvas>
    <font name="serifFont" src="ariosob.ttf" style="bold"/>
<text x="50" y="50" text="Merhaba" font="serifFont" fontstyle="bold" fontsize="40"
fgcolor="#BB0000"/>
</canvas>

More info here:
http://labs.openlaszlo.org/trunk-nightly/docs/reference/lz.font.html

Let me know how it goes!

Regards,
Max Carlson
OpenLaszlo.org

On 6/3/10 7:12 AM, cem sonmez wrote:
Hi all

<canvas>
    <font name="serifFont" src="ariosob.ttf"/>
    <text x="50" y="50" text="Merhaba" font="serifFont" fontsize="40"
fgcolor="#BB0000"/>
</canvas>

for the code above works properly on swf8, but for swf9 and 10 I get
this error :

org.openlaszlo.sc.CompilerError: myfont.lzx: 5: : Error: unable to
build font 'serifFont', in line:
[Embed(mimeType='application/x-font-truetype',
source='/home/cem/Masaüstü/lps-4.8.0/Server/lps-4.8.0/lps/fonts/ariosob.ttf',
fontName='serifFont',
fontWeight='plain',fontStyle='plain',advancedAntiAliasing='true')]
myfont.lzx: 5: : Error: Unable to transcode
/home/cem/Masaüstü/lps-4.8.0/Server/lps-4.8.0/lps/fonts/ariosob.ttf,
in line: . The font may be a bold or italic style, try adding
style="bold" or "italic" attribute to font tag

I have see these reports:
http://jira.openlaszlo.org/jira/browse/LPP-7055
http://jira.openlaszlo.org/jira/browse/LPP-7038

they say that is no longer reproducible with the latest trunk. I have
also tried it with 4.8.0 candidate. But nothing changes.
Do you have any idea about that? Thanks.


Reply via email to