Port80 Forums Ilisys Web Hosting Fast Hit Web Hosting

Our Platinum Sponsors:


Go Back   Port80 Forums > Development & Code > php & mySQL

Reply
 
Thread Tools Display Modes
  #1  
Old 05-12-2008, 12:02 PM
stevebramley's Avatar
stevebramley stevebramley is offline
Senior Member
AWIA Member
 
Join Date: Jun 2006
Location: Applecross, Perth
Age: 42
Posts: 177
stevebramley is on a distinguished road
Default text generation on transparent png problem

Hi folks,

I'm having a drama with generating italicised text on a transparent png. all is lovely except each successive letter seems to paint the transparent background colour over the top of the last letter. When letters overlap on the vertical axis, parts of the previous letter are overwritten.

you can see the problem here: where the 'o' has been partially obscured by the 'j' block.

Anyone have this drama before and solved it?

Steve
Reply With Quote
  #2  
Old 05-12-2008, 12:27 PM
Cindy's Avatar
Cindy Cindy is offline
Senior Member
AWIA Member
 
Join Date: Apr 2008
Location: Mandurah
Posts: 252
Cindy is on a distinguished road
Default

Italics does that with lots of fonts, because you require more space per character. Just increase your character spacing.
Reply With Quote
  #3  
Old 05-12-2008, 12:38 PM
stevebramley's Avatar
stevebramley stevebramley is offline
Senior Member
AWIA Member
 
Join Date: Jun 2006
Location: Applecross, Perth
Age: 42
Posts: 177
stevebramley is on a distinguished road
Default

Hi Cindy,

Thanks for the reply but that's not a very good alternative. increasing the kerning just limits the typographic treatment options. I was hoping someone had found a workaround. I can think of one but was hoping there was a simpler method on hand.
Reply With Quote
  #4  
Old 05-12-2008, 12:44 PM
tuna's Avatar
tuna tuna is offline
Senior Member
AWIA Member
 
Join Date: Apr 2003
Location: Perth
Posts: 3,093
tuna is on a distinguished road
Default

Quote:
Originally Posted by stevebramley View Post
Hi Cindy,

Thanks for the reply but that's not a very good alternative. increasing the kerning just limits the typographic treatment options. I was hoping someone had found a workaround. I can think of one but was hoping there was a simpler method on hand.
The issue is with the font rendering.

Tried dropping the font in as curve and rendering as a smart object this should render as the curve then translate to a bit map, an hence have no hidden overlap.
__________________
Gary Barber
User Experience Consultant
radharc * Freelance User Experience Designer * Random Smelly Fish + UX stuff
Reply With Quote
  #5  
Old 05-12-2008, 01:06 PM
madpilot's Avatar
madpilot madpilot is offline
Senior Member
AWIA Member
 
Join Date: Nov 2002
Location: Perth
Posts: 1,743
madpilot is on a distinguished road
Default

It is actually rendering correctly - italics can spill out of the bounding box, but my guess is a background colour is being applied at the same time, which is causing the issue.

Can you remove the background colour from the fonts? It you can alpha it, you shouldn't see and clipping.
Reply With Quote
  #6  
Old 05-12-2008, 01:18 PM
tuna's Avatar
tuna tuna is offline
Senior Member
AWIA Member
 
Join Date: Apr 2003
Location: Perth
Posts: 3,093
tuna is on a distinguished road
Default

Quote:
Originally Posted by madpilot View Post
It is actually rendering correctly - italics can spill out of the bounding box, but my guess is a background colour is being applied at the same time, which is causing the issue.

Can you remove the background colour from the fonts? It you can alpha it, you shouldn't see and clipping.
May also be the font, some (a lot) don't have a outline for italics, could try an alternative foundary.
__________________
Gary Barber
User Experience Consultant
radharc * Freelance User Experience Designer * Random Smelly Fish + UX stuff
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +8. The time now is 05:24 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.