gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-dev] flash swf italic


From: Zhonghua Zhu
Subject: Re: [Gnash-dev] flash swf italic
Date: Tue, 20 Nov 2012 13:29:29 +0800

After some research, I figured out that italic version of a font can
be done by matrix if I don't have a italic version of that font on my
system.
Like the following:

// italic
float lean = 0.5f;
FT_Matrix matrix;
matrix.xx = 0x10000L;
matrix.xy = 0x10000L*lean;
matrix.yx = 0;
matrix.yy = 0x10000L;
FT_Set_Transform(face, &matrix, 0);

Does gnash need this? Maybe I can create a patch about it.

This is the SWF. The text is in Simplified Chinese.

2012/11/18, Sandro Santilli <address@hidden>:
> Could it be that Gnash is using device rather than embedded
> fonts ? Or is "italic" something that could be produced with
> the "definefontalignzones" and/or "csmtextsetting" tags ?
> Because those two tags aren't implemented.
>
> Advice: use -v switch of gnash to get more info about the
> unimplemented tags, try simplifying the testcase removing
> anything that doesn't prevent differences to show up and
> finally attache the SWF here or on a Savannah ticket.
>
> --strk;
>
>   ()   Free GIS & Flash consultant/developer
>   /\   http://strk.keybit.net/services.html
>
> On Sat, Nov 17, 2012 at 06:56:27PM +0800, Zhonghua Zhu wrote:
>> i am reading code about gnash and gameswf, and compared with flash
>> player.
>>
>> i did a test.
>>
>> 1, create a swf, the main tag is definefont3, definefontalignzones,
>> defineedittext, csmtextsetting.
>> 2, so there is glyph text in definefont3.
>> 3, in defineedittext, text is italic.
>> 4, i didn't get a italic version of that font.
>>
>> flash player rendered that italic text, but like i said , i didn't
>> have one italic version of that font.
>>
>> do you guys know how fp did it? or give some advice?
>>
>> when i use a rare font to define edit text, on other platform which
>> hasn't that font, fp still can render that text like on my platform.
>>
>> any advice?
>

Attachment: fonttest.swf
Description: application/shockwave-flash


reply via email to

[Prev in Thread] Current Thread [Next in Thread]