Groups | Blog | Home
all groups > flash (macromedia) > october 2003 >

flash (macromedia) : Multiple embedded fonts for one Text Input



CJ_
10/12/2003 9:10:12 PM
Hello all,

I got myself a quite annoying problem.
I'm building a website for the shop I work in and I want to build something where people can input a text and then see how that text looks in a specific font, color and background color. (it is for making stickers for on boats)

The problem is now that most of the fonts we use in the shop, are not standard Windows fonts. So I'm forced to use embedded fonts.
What I can do is to show an example of a specific font so that it looks the same on every pc, so that'll work for the other 19 as well.

The idea is that visitors enter their text and click on a font, so that the inputted text is shown in that specific font.
I just can't seem to get this last piece working. I've tried this:

input.setTextFormat(LuciaBT.getTextFormat());

(input is here the field where the visitors enter there text en LuciaBT the textfield which contains the example of the font Lucia BT, which is shown correctly)

So how can I change the font in one Text Input between multiple embedded fonts?

Plz help me, I've tried and tried and tried and nothing works... :(

Thanks in advance,
Chris

CJ_
10/13/2003 7:09:29 AM
Hmmm... if you say that what I want isn't possible, then I think your way will work fine. Thanks.
I MUST use those embedded fonts, because we make the stickers only with non-standard fonts, 'cause the standard ones are so boring that you don't want them on the side of your ship :)

ELECTRON
10/13/2003 7:44:06 AM
i think the way is only use no embedded fonts, so it is possible to use all
installed fonts on clients's machine..., but if you having input text, there
is no possible to include in one input text many fonts i think..., BUT! you
can "fool" it, by the way, create some timeline, and each frame should
contain a copy of your input textfield, with someone font embedded, for
example,in frame 1 - verdana, 2 - arial, 3 times.., and you can label those
frames too with same name, and create drop-down, or another way to select
font... and when client select font, movie goto specific frame with
textfielf with specific font embedded,
but remember that each embedded fint take kilobytes in your swf...

AddThis Social Bookmark Button