On Thu, Aug 14, 2008 at 10:38 AM, henrik weber <[EMAIL PROTECTED]> wrote:
> cheers darren,
>
> just a shot in the dark... have you already thought about using a glowFilter
> with a huge strength-value??? was the first thing that came to my mind...

In fact, a GradientGlowFilter with a very sharp drop-off at the
outside edge gives you a slightly better result - but that was my
first thought, too. :-)

Also - placing a 64pt text over a 72pt one won't give you the results
you want (or will be very difficult). Traditionally, you take the
shape left by the text field and 'inflate' it in all directions. Or up
the stroke. Both of which are difficult in Flash with dynamic text.

(A traditional approach for simple device text would be - draw 8
textfields in the border colour, one at x-1,y, one at x-1,y-1, one at
x,y-1, one at x+1,y-1, one at x+1, y etc. etc. then draw a textfield
in the desired colour at x,y. This only works for a one-pixel border,
but you get the idea. Slow, but works.)

I'd go with the GradientGlowFilter. Or maybe a ConvolutionFilter of some sort?

Ian

>
> greetz!
> henrik
>
> Darren Cook wrote:
>> I've a client interested in doing text effects like this (with text
>> being dynamic from some kind of database):
>>    http://dcook.org/letters_with_borders.png  (*)
>>
>> I.e. each letter has a border. I think I can do this by drawing each
>> letter in say 72pt in one colour, then drawing the same letter on top in
>> say 64pt. As I need to do this letter by letter I need to take care of
>> kerning.
>>
>> I wondered if there already existed some open source library that
>> already does this, before I reinvent the wheel. Or does the new Flash 10
>> text support do this out-of-the-box? (Similarly, I do drop shadows by
>> drawing the text first in black, offset a few pixels, then the same text
>> on top in the real colour; is there an easier way nowadays?)
>>
>> Darren
>>
>> *: For the curious, that is three Japanese characters, read as
>> o-kono-mi, meaning your favourite (something), or (something done in)
>> the way you like it.

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to