List Info

Thread: Embedded fonts looks dfferent for flash8 and flash9 and different from Flash CS applicatio




Embedded fonts looks dfferent for flash8 and flash9 and different from Flash CS applicatio
country flaguser name
Russian Federation
2008-05-01 02:16:56

Hello.

I see that text looks different while I am using font embedded into swf by Swfmill.

I use DejaVuSans font.

I compiled font to resource8.swf and resource9.swf by swfmill for both flash8 and  flash9 and then I used them as swf-lib for haXe flash application.

Also I built flashResource8.swf and flashResource9.swf by Adobe Flash CS – they also contains that font.

And text fields in the four resulting swfs which uses these resources looks different!

Font from swfmill resources looks bolder than font from flash CS resources.

And font for swfmill resources fonts looks different for flash8 and flash9 (flash9 is smoother and looks shorter).

See it on the image.

Does anybody answer me if I did something wrong?

Is it a bug of Swfmill?

 

I can send the code on request.

View Original Image
Re: Embedded fonts looks dfferent for flash8 and flash9 and different from Flash CS applic
user name
2008-05-01 10:36:52
This problem is caused by the missing support for the new
font features
that were introduced in flash 8. I'm not sure if I have time
to
implement any of this in the near feature.
Please send me the generated swf files. Are you able to
create a flash 7
version of the font resource file with the flash ide? This
would help to
improve the current font support without the flash 8
features.

Ralf

> Hello.
> 
> I see that text looks different while I am using font
embedded into
> swf by Swfmill.
> 
> I use DejaVuSans font.
> 
> I compiled font to resource8.swf and resource9.swf by
swfmill for both
> flash8 and  flash9 and then I used them as swf-lib for
haXe flash
> application.
> 
> Also I built flashResource8.swf and flashResource9.swf
by Adobe Flash
> CS – they also contains that font.
> 
> And text fields in the four resulting swfs which uses
these resources
> looks different!
> 
> Font from swfmill resources looks bolder than font from
flash CS
> resources.
> 
> And font for swfmill resources fonts looks different
for flash8 and
> flash9 (flash9 is smoother and looks shorter).
> 
> See it on the image.
> 
> Does anybody answer me if I did something wrong?
> 
> Is it a bug of Swfmill?
> 
>  
> 
> I can send the code on request.



_______________________________________________
swfmill mailing list
swfmillosflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org
Re: Embedded fonts looks dfferent for flash8 and flash9 and different from Flash CS applic
country flaguser name
Russian Federation
2008-05-04 06:22:30
Hello Ralf,

RF> This problem is caused by the missing support for the
new font features
RF> that were introduced in flash 8. I'm not sure if I
have time to
RF> implement any of this in the near feature.
RF> Please send me the generated swf files. Are you able
to create a flash 7
RF> version of the font resource file with the flash ide?
This would help to
RF> improve the current font support without the flash 8
features.

Maybe you can point us to some docs/info on these extra new
font
features? We can try adding support ourselves then...

Mike

RF> Ralf

>> Hello.
>> 
>> I see that text looks different while I am using
font embedded into
>> swf by Swfmill.
>> 
>> I use DejaVuSans font.
>> 
>> I compiled font to resource8.swf and resource9.swf
by swfmill for both
>> flash8 and  flash9 and then I used them as swf-lib
for haXe flash
>> application.
>> 
>> Also I built flashResource8.swf and
flashResource9.swf by Adobe Flash
>> CS – they also contains that font.
>> 
>> And text fields in the four resulting swfs which
uses these resources
>> looks different!
>> 
>> Font from swfmill resources looks bolder than font
from flash CS
>> resources.
>> 
>> And font for swfmill resources fonts looks
different for flash8 and
>> flash9 (flash9 is smoother and looks shorter).
>> 
>> See it on the image.
>> 
>> Does anybody answer me if I did something wrong?
>> 
>> Is it a bug of Swfmill?
>> 
>>  
>> 
>> I can send the code on request.



RF> _______________________________________________
RF> swfmill mailing list
RF> swfmillosflash.org
RF> http://osflash.org/mailman/listinfo/swfmill_osflash.org



-- 
Best regards,
 Michael                            mailto:pltepkom.ru
_______________________________________________
swfmill mailing list
swfmillosflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org
Re: Embedded fonts looks dfferent for flash8 and flash9 and different from Flash CS applic
user name
2008-05-04 08:10:07
On Sun, May 4, 2008 at 1:22 PM, Michael Pliskin <pltepkom.ru> wrote:
>  Maybe you can point us to some docs/info on these
extra new font
>  features? We can try adding support ourselves then...

How about the official specs, which just had the
restrictions removed
a few days ago? 

<http://www.adobe
.com/devnet/swf/>

Mark

_______________________________________________
swfmill mailing list
swfmillosflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org

Re: Embedded fonts looks dfferent for flash8 and flash9 and different from Flash CS applic
country flaguser name
Russian Federation
2008-05-04 08:21:47
Hello Mark,

MW> How about the official specs, which just had the
restrictions removed
MW> a few days ago? 

MW> <http://www.adobe
.com/devnet/swf/>

I was going to use these ones, but I think Ralf can shade
some light
on
 - what is currently supported in swfmill
 - what is missing
 - where to look in source code
 - some other comments/advice/whatever

;) btw this spec only covers swf9 I believe (or I am
wrong)?

-- 
Best regards,
 Michael                            mailto:pltepkom.ru


_______________________________________________
swfmill mailing list
swfmillosflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org

Re: Embedded fonts looks dfferent for flash8 and flash9 and different from Flash CS applic
user name
2008-05-04 08:36:38
Hi Mike,

As far as I know, Swfmill only supports DefineFont2, not
DefineFont3
as it is used in SWF9 (or 8?). DefineFont3 would be needed
to take
advantage of the better font rendering settings.

I might miss something, so please Dan or Ralf correct me,
but it seems
the places to look for are:

<http://swfmill.org/trac/browser/trunk/src/x
slt/simple-import.xslt>
from line 140, and
<http://swfmill.org/trac/browser/trunk/src/SWF
ImportFreetype.cpp> from
line 48 need an importDefineFont3 equivalent.
<http://swfmill.org/trac/browser/trunk/src/SWFGlyph
List.cpp> might be
of interest as well.

Anyway, I don't know C++, but the links above should be a
start.

And the spec covers all of SWF, not just 9. The AVM2 opcodes
are
missing, though.

Regarding differences in font output, I imagine that they
still
wouldn't be 100% the same, since Swfmill uses FreeType and
Flash
uses... something else. That something might be in the Flex
SDK
sources somewhere, but there it would probably be in Java.

HTH,
Mark



On Sun, May 4, 2008 at 3:21 PM, Michael Pliskin <pltepkom.ru> wrote:
> Hello Mark,
>
>  MW> How about the official specs, which just had
the restrictions removed
>  MW> a few days ago? 
>
>  MW> <http://www.adobe
.com/devnet/swf/>
>
>  I was going to use these ones, but I think Ralf can
shade some light
>  on
>   - what is currently supported in swfmill
>   - what is missing
>   - where to look in source code
>   - some other comments/advice/whatever
>
>  ;) btw this spec only covers swf9 I believe (or I am
wrong)?
>
>
>
>  --
>  Best regards,
>   Michael                            mailto:pltepkom.ru
>
>

_______________________________________________
swfmill mailing list
swfmillosflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org

Re: Embedded fonts looks dfferent for flash8 and flash9 and different from Flash CS applic
country flaguser name
Russian Federation
2008-05-04 11:47:49
Hello Mark,

  thanks for the pointers, I think we will look into the
code anyway.
  Will update the community about the results of course.

  I don't think we need 100% similarity, we just need to
improve the
  look'n'feel a bit - currently, CS one seems a lot better
in some
  cases, and it'd be nice if swfmill output could be of
comparable
  quality.

Mike

MW> As far as I know, Swfmill only supports DefineFont2,
not DefineFont3
MW> as it is used in SWF9 (or 8?). DefineFont3 would be
needed to take
MW> advantage of the better font rendering settings.

MW> I might miss something, so please Dan or Ralf correct
me, but it seems
MW> the places to look for are:

MW> <http://swfmill.org/trac/browser/trunk/src/x
slt/simple-import.xslt>
MW> from line 140, and
MW> <http://swfmill.org/trac/browser/trunk/src/SWF
ImportFreetype.cpp> from
MW> line 48 need an importDefineFont3 equivalent.
MW> <http://swfmill.org/trac/browser/trunk/src/SWFGlyph
List.cpp> might be
MW> of interest as well.

MW> Anyway, I don't know C++, but the links above should
be a start.

MW> And the spec covers all of SWF, not just 9. The AVM2
opcodes are
MW> missing, though.

MW> Regarding differences in font output, I imagine that
they still
MW> wouldn't be 100% the same, since Swfmill uses
FreeType and Flash
MW> uses... something else. That something might be in
the Flex SDK
MW> sources somewhere, but there it would probably be in
Java.

MW> HTH,
MW> Mark



MW> On Sun, May 4, 2008 at 3:21 PM, Michael Pliskin
<pltepkom.ru> wrote:
>> Hello Mark,
>>
>>  MW> How about the official specs, which just
had the restrictions removed
>>  MW> a few days ago? 
>>
>>  MW> <http://www.adobe
.com/devnet/swf/>
>>
>>  I was going to use these ones, but I think Ralf
can shade some light
>>  on
>>   - what is currently supported in swfmill
>>   - what is missing
>>   - where to look in source code
>>   - some other comments/advice/whatever
>>
>>  ;) btw this spec only covers swf9 I believe (or I
am wrong)?
>>
>>
>>
>>  --
>>  Best regards,
>>   Michael                            mailto:pltepkom.ru
>>
>>



-- 
Best regards,
 Michael                            mailto:pltepkom.ru


_______________________________________________
swfmill mailing list
swfmillosflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org

Re: Embedded fonts looks dfferent for flash8 and flash9 and different from Flash CS applic
user name
2008-05-04 13:56:02
SWFImportFreetype.cpp isn't used anymore the font import
code is in
swft/swft_import_ttf.cpp.
I did some work on the font import some time ago, but didn't
commit the
results yet. I think I finished almost all the lowlevel
stuff (xml->swf
and back) for the DefineFont3 and DefineFontAlignZones
(incorrectly
called DefineFontInfo3 in current svn) tags. The DefineFont3
support
shouldn't be hard to implement, but I'm not sure about the
font align
zones.
I'll commit the work I've already done in the next days when
I've
checked that it doesn't break anything else.

Ralf

> Hi Mike,
> 
> As far as I know, Swfmill only supports DefineFont2,
not DefineFont3
> as it is used in SWF9 (or 8?). DefineFont3 would be
needed to take
> advantage of the better font rendering settings.
> 
> I might miss something, so please Dan or Ralf correct
me, but it seems
> the places to look for are:
> 
> <http://swfmill.org/trac/browser/trunk/src/x
slt/simple-import.xslt>
> from line 140, and
> <http://swfmill.org/trac/browser/trunk/src/SWF
ImportFreetype.cpp> from
> line 48 need an importDefineFont3 equivalent.
> <http://swfmill.org/trac/browser/trunk/src/SWFGlyph
List.cpp> might be
> of interest as well.
> 
> Anyway, I don't know C++, but the links above should be
a start.
> 
> And the spec covers all of SWF, not just 9. The AVM2
opcodes are
> missing, though.
> 
> Regarding differences in font output, I imagine that
they still
> wouldn't be 100% the same, since Swfmill uses FreeType
and Flash
> uses... something else. That something might be in the
Flex SDK
> sources somewhere, but there it would probably be in
Java.
> 
> HTH,
> Mark


_______________________________________________
swfmill mailing list
swfmillosflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org

Re: Embedded fonts looks dfferent for flash8 and flash9 and different from Flash CS applic
user name
2008-05-15 12:04:48
There were no recent changes in the code causing this error.
Did he
compile older versions of swfmill successfully?
What platform did he use and witch version of libxml and
libxslt?

Ralf

> Hi.
> Mike Pliskin built swfmill from SVN for us, but it
throws an error:
> 
> swfmill] error
> [swfmill] xsltCompileStepPattern : no namespace bound
to prefix svg
> [swfmill] compilation error: element template
> [swfmill] xsltCompilePattern : failed to compile
'svg:svg'
> [swfmill] error
> [swfmill] xsltCompileStepPattern : no namespace bound
to prefix svg
> [swfmill] compilation error: element template
> [swfmill] xsltCompilePattern : failed to compile
> 'svg:linearGradient[not(xlin
> href)]'
> [swfmill] error
> [swfmill] xsltCompileStepPattern : no namespace bound
to prefix svg
> [swfmill] compilation error: element template
> [swfmill] xsltCompilePattern : failed to compile
> 'svg:linearGradient[xlink:hr
> ]'
> [swfmill] error
> [swfmill] xsltCompileStepPattern : no namespace bound
to prefix svg
> [swfmill] compilation error: element template
> [swfmill] xsltCompilePattern : failed to compile
'svg:g'
> [swfmill] error
> [swfmill] xsltCompileStepPattern : no namespace bound
to prefix svg
> [swfmill] compilation error: element template
> [swfmill] xsltCompilePattern : failed to compile
'svg:g'
> [swfmill] error
> [swfmill] xsltCompileStepPattern : no namespace bound
to prefix svg
> [swfmill] compilation error: element template
> [swfmill] xsltCompilePattern : failed to compile
'svg:g'
> [swfmill] error
> [swfmill] xsltCompileStepPattern : no namespace bound
to prefix svg
> [swfmill] compilation error: element template
> [swfmill] xsltCompilePattern : failed to compile
'svg:rect'
> [swfmill] error
> [swfmill] xsltCompileStepPattern : no namespace bound
to prefix svg
> [swfmill] compilation error: element template
> [swfmill] xsltCompilePattern : failed to compile
'svg:flowRoot'
> [swfmill] error
> [swfmill] xsltCompileStepPattern : no namespace bound
to prefix svg
> [swfmill] compilation error: element template
> [swfmill] xsltCompilePattern : failed to compile
'svg:text'
> [swfmill] error
> [swfmill] xsltCompileStepPattern : no namespace bound
to prefix svg
> [swfmill] compilation error: element template
> [swfmill] xsltCompilePattern : failed to compile
'svg:flowRegion'
> [swfmill] error
> [swfmill] xsltCompileStepPattern : no namespace bound
to prefix svg
> [swfmill] compilation error: element template
> [swfmill] xsltCompilePattern : failed to compile
'svg:flowPara'
> [swfmill] error
> [swfmill] xsltCompileStepPattern : no namespace bound
to prefix svg
> [swfmill] compilation error: element template
> [swfmill] xsltCompilePattern : failed to compile
'svg:tspan[position()=1]'
> [swfmill] error
> [swfmill] xsltCompileStepPattern : no namespace bound
to prefix svg
> [swfmill] compilation error: element template
> [swfmill] xsltCompilePattern : failed to compile
'svg:tspan'
> [swfmill] ERROR: internal stylesheet could not be
read.


_______________________________________________
swfmill mailing list
swfmillosflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org

Re: Embedded fonts looks dfferent for flash8 and flash9 and different from Flash CS applic
country flaguser name
Russian Federation
2008-05-16 10:14:49
Hello Ralf,

RF> There were no recent changes in the code causing this
error. Did he
RF> compile older versions of swfmill successfully?
RF> What platform did he use and witch version of libxml
and libxslt?

I am compiling on Windows using MinGW, and I've just went
back and
re-compiled everything ensuring I am regenerating all XMLs
as well.
The errors went away, but some other ones appeared:

  [swfmill] WARNING: end of tag DefineFont2 is 405651,
should be 409678
  [swfmill] WARNING: this file is not a valid MP3
../source/client/resource/soun
d/beep.mp3
  [swfmill] xmlXPathCompiledEval: evaluation failed
  [swfmill] runtime error: element apply-templates
  [swfmill] Failed to evaluate the 'select' expression.

Looks like two warnings.. but they look fatal after all. Any
ideas?

Mike

RF> Ralf

>> Hi.
>> Mike Pliskin built swfmill from SVN for us, but it
throws an error:
>> 
>> swfmill] error
>> [swfmill] xsltCompileStepPattern : no namespace
bound to prefix svg
>> [swfmill] compilation error: element template
>> [swfmill] xsltCompilePattern : failed to compile
'svg:svg'
>> [swfmill] error
>> [swfmill] xsltCompileStepPattern : no namespace
bound to prefix svg
>> [swfmill] compilation error: element template
>> [swfmill] xsltCompilePattern : failed to compile
>> 'svg:linearGradient[not(xlin
>> href)]'
>> [swfmill] error
>> [swfmill] xsltCompileStepPattern : no namespace
bound to prefix svg
>> [swfmill] compilation error: element template
>> [swfmill] xsltCompilePattern : failed to compile
>> 'svg:linearGradient[xlink:hr
>> ]'
>> [swfmill] error
>> [swfmill] xsltCompileStepPattern : no namespace
bound to prefix svg
>> [swfmill] compilation error: element template
>> [swfmill] xsltCompilePattern : failed to compile
'svg:g'
>> [swfmill] error
>> [swfmill] xsltCompileStepPattern : no namespace
bound to prefix svg
>> [swfmill] compilation error: element template
>> [swfmill] xsltCompilePattern : failed to compile
'svg:g'
>> [swfmill] error
>> [swfmill] xsltCompileStepPattern : no namespace
bound to prefix svg
>> [swfmill] compilation error: element template
>> [swfmill] xsltCompilePattern : failed to compile
'svg:g'
>> [swfmill] error
>> [swfmill] xsltCompileStepPattern : no namespace
bound to prefix svg
>> [swfmill] compilation error: element template
>> [swfmill] xsltCompilePattern : failed to compile
'svg:rect'
>> [swfmill] error
>> [swfmill] xsltCompileStepPattern : no namespace
bound to prefix svg
>> [swfmill] compilation error: element template
>> [swfmill] xsltCompilePattern : failed to compile
'svg:flowRoot'
>> [swfmill] error
>> [swfmill] xsltCompileStepPattern : no namespace
bound to prefix svg
>> [swfmill] compilation error: element template
>> [swfmill] xsltCompilePattern : failed to compile
'svg:text'
>> [swfmill] error
>> [swfmill] xsltCompileStepPattern : no namespace
bound to prefix svg
>> [swfmill] compilation error: element template
>> [swfmill] xsltCompilePattern : failed to compile
'svg:flowRegion'
>> [swfmill] error
>> [swfmill] xsltCompileStepPattern : no namespace
bound to prefix svg
>> [swfmill] compilation error: element template
>> [swfmill] xsltCompilePattern : failed to compile
'svg:flowPara'
>> [swfmill] error
>> [swfmill] xsltCompileStepPattern : no namespace
bound to prefix svg
>> [swfmill] compilation error: element template
>> [swfmill] xsltCompilePattern : failed to compile
'svg:tspan[position()=1]'
>> [swfmill] error
>> [swfmill] xsltCompileStepPattern : no namespace
bound to prefix svg
>> [swfmill] compilation error: element template
>> [swfmill] xsltCompilePattern : failed to compile
'svg:tspan'
>> [swfmill] ERROR: internal stylesheet could not be
read.


RF> _______________________________________________
RF> swfmill mailing list
RF> swfmillosflash.org
RF> http://osflash.org/mailman/listinfo/swfmill_osflash.org



-- 
Best regards,
 Michael                            mailto:pltepkom.ru


_______________________________________________
swfmill mailing list
swfmillosflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org

[1-10]

about | contact  Other archives ( Real Estate discussion Medical topics )