PDA

Click to See Complete Forum and Search --> : SDK and C++ help



aloeman
08-15-2000, 11:56 AM
I'm not a C++ programmer beyond some basic stuff from college. I need to learn how to use the SDK, though. It wasn't so difficult to pick up, but I was having trouble with getting text to display using the SDK classes.

I don't want to create a glyph for each letter I need to use, and I'd like to, if possible, take advantage of existing fonts. I've only been looking at this for a couple of days, but I haven't figured out how to get text to display with an existing font like Arial or Tahoma. Please remember that my C++ knowledge is limited when replying.

Thanks in advance...

JAEzell
08-16-2000, 02:13 PM
I have written font classes that will do the TTF conversion work for you (assuming Win32 based system) and set up bounding rects, etc. They can be used or modified to do anything SWISH can do (and much more if you have an imagination) and they are currently FREE for the use of anyone. I upload new versions of the code to the Macromedia forum whenever I put out some updates. If you can convince FlashKit to put up a source code section, I will upload it here also.

If you want to do it yourself, here is what you have to do.

1) Use the system to "Get Glyph Ouline"
2) Calculate bounding rects and position offsets
2) Convert Outline to Shape record

Only those three steps...the problem is that both the SDK and the get font glyph stuff from MS are poorly documented, so it takes a lot of persistance.


--Jesse

Scills
08-29-2000, 01:30 PM
Sounds very interesting, I'll see what I can do.

Flashkit
08-29-2000, 10:20 PM
We will be adding soon a source code section to support
the new flash .as scripts, I think it will be an easy extension to add other languages as well!

krimson
09-26-2000, 02:32 AM
hi JAEzell,

could you do me a favour. Can you pls mail me the latest versions of the font class code...

my email "vigneshis@hotmail.com"

TIA
Krimson