547 posts Fuel Your Web
  • Elite Author
  • Won a Competition
  • Sold between 250 000 and 1 000 000 dollars
  • Exclusive Author
  • Has been a member for 7-8 years
  • Bought between 50 and 99 items
  • Referred between 200 and 499 users
  • Europe
Pirenko says

Hi!

I’ve recently change from PC to Mac. I’m facing a strange issue with font display. Here’s how the fonts are displayed:

PC PC

MAC MAC

Comparasion BOTH

As you can see the font is centered on PC, but at MAC is sits right on top. The y position is the same and the font is installed and embeded properly on both machines. Any ideas on how to solve this mistery?

Thanks. C78

2113 posts
  • Sold between 50 000 and 100 000 dollars
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
fifty_tons says

weird, makes no sense to me… but I’m not a mac user…

547 posts Fuel Your Web
  • Elite Author
  • Won a Competition
  • Sold between 250 000 and 1 000 000 dollars
  • Exclusive Author
  • Has been a member for 7-8 years
  • Bought between 50 and 99 items
  • Referred between 200 and 499 users
  • Europe
Pirenko says

I forgot to clarify this: the swf looks the same on both machines, but if I open the fla and recreate the swf on MAC the fonts appear some 3 or 4 pixels up. Argh!

2113 posts
  • Sold between 50 000 and 100 000 dollars
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
fifty_tons says

well, maybe they are correct on mac. I know that pn PC the text is never the same in the fla as in the swf. So maybe mac is displaying it correctly…

2113 posts
  • Sold between 50 000 and 100 000 dollars
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
fifty_tons says

rephrase: I see that on mac it’s a bit off. That’s how it is on my pc. Texfields are always off in the fla.

547 posts Fuel Your Web
  • Elite Author
  • Won a Competition
  • Sold between 250 000 and 1 000 000 dollars
  • Exclusive Author
  • Has been a member for 7-8 years
  • Bought between 50 and 99 items
  • Referred between 200 and 499 users
  • Europe
Pirenko says

What I’m worried about is that I place here some files built on MAC and then someone with a PC buys it . He will be certainly angry, because apparently the file I’m providing is messed up :(

2113 posts
  • Sold between 50 000 and 100 000 dollars
  • Exclusive Author
  • Has been a member for 6-7 years
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
fifty_tons says

no I don’t think so, as I said, my text fields are always off in the fla. The important thing is how they look in the swf. If they look ok on both mac and pc, it’s cool then :).

8183 posts Community Moderator
  • Attended a Community Meetup
  • Community Moderator
  • Has been a member for 6-7 years
  • United Kingdom
  • Contributed a Tutorial to a Tuts+ Site
  • Won a Competition
  • Contributed a Blog Post
  • Beta Tester
  • Bought between 50 and 99 items
+4 more
MSFX Volunteer moderator says

its more accurate within CS4 because there is actually an instance of the Player running on the stage (hence why it uses far more memory than CS3 ) but I still notice a little difference here and there…

if you trace out textfield.textHeight what values are you getting on both MAC and PC?

547 posts Fuel Your Web
  • Elite Author
  • Won a Competition
  • Sold between 250 000 and 1 000 000 dollars
  • Exclusive Author
  • Has been a member for 7-8 years
  • Bought between 50 and 99 items
  • Referred between 200 and 499 users
  • Europe
Pirenko says

@ MSFX – I already noticed that the textfield height is different… On PC with Flash CS3 it’s 15.9 and on MAC with Flash CS4 it’s 12.9
Again, what really worries me are compatibility issues.

8183 posts Community Moderator
  • Attended a Community Meetup
  • Community Moderator
  • Has been a member for 6-7 years
  • United Kingdom
  • Contributed a Tutorial to a Tuts+ Site
  • Won a Competition
  • Contributed a Blog Post
  • Beta Tester
  • Bought between 50 and 99 items
+4 more
MSFX Volunteer moderator says
@ MSFX – I already noticed that the textfield height is different… On PC with Flash CS3 it’s 15.9 and on MAC with Flash CS4 it’s 12.9
Again, what really worries me are compatibility issues.

then its fine, you can get around it… just centre the textfield vertically onto the background…?

textfield.y = background.x + Math.ceil((background.height – textfield.textHeight) * 0.5);

that will work on either and then you dont have to worry about what platform they are using in the event that they re-compile…

by
by
by
by
by
by