Yes, when I tell that it's bold, works fine.
But this does not gives the solution for all the fonts, especially
that kind of problem occurs for swf10 mostly.
Although I try all the options for font style, sometimes I get this
compiler error when I try to use the external fonts.
I will give many tries with some fonts, and post back the results here.
Thanks Max

Regards

2010/6/3 Max Carlson <[email protected]>:
> 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.
>>
>



-- 
Cem SONMEZ

Reply via email to