Re: [Flashcoders] Runtime Font embedding

2010-02-19 Thread Geografiek
Ah, that's nice. Using [Embed...] is only possible from Flash CS4, not CS3 right? Willem On 11-feb-2010, at 14:45, Jon Bradley wrote: You can embed a range of characters through AS3. The unicodeRange property of the embed directive handles this. [Embed(source='pathToFond',

Re: [Flashcoders] Runtime Font embedding

2010-02-18 Thread mika
You might want to look at http://code.google.com/p/fstream/ Haven't tried myself, but looks promising mika On Wed, Feb 10, 2010 at 17:52, Glen Pike g...@engineeredarts.co.uk wrote: Hi, I am working on some runtime font embedding with Flash CS3 by loading in a SWF at runtime with font

Re: [Flashcoders] Runtime Font embedding

2010-02-11 Thread Geografiek
Hi Glen, I don't think it's possible to embed a range of characters through AS3. It's all or nothing I'm afraid/ Willem van den Goorbergh On 10-feb-2010, at 17:52, Glen Pike wrote: Hi, I am working on some runtime font embedding with Flash CS3 by loading in a SWF at runtime with font

Re: [Flashcoders] Runtime Font embedding

2010-02-11 Thread Jon Bradley
You can embed a range of characters through AS3. The unicodeRange property of the embed directive handles this. [Embed(source='pathToFond', fontName='NameOfFont', unicodeRange='Range1Start-Range1End,, RangeNStart-RangeNEnd')] - jon On Feb 11, 2010, at 6:35 AM, Geografiek wrote: Hi

RE: [Flashcoders] Runtime Font embedding

2010-02-11 Thread Benny
Maybe this will help you a step in the right direction: The IDE uses C:\Program Files\Adobe\Adobe Flash CS4\en\First Run\FontEmbedding\UnicodeTable.xml http://livedocs.adobe.com/flash/9.0/main/0894.html http://blog.madebypi.co.uk/2009/06/01/flash-character-embedding-adding-addit

Re: [Flashcoders] Runtime Font embedding

2010-02-11 Thread Glen Pike
Hi, Thanks guys - it looks like the only way to use Embed is CS4 or FlashDevelop - that's fine with me, but I also need to get my head around the fonts that actually have the characters I need - part of the problem, Arial has Arabic, but not Chinese, so I need to load accordingly there.

[Flashcoders] Runtime Font embedding

2010-02-10 Thread Glen Pike
Hi, I am working on some runtime font embedding with Flash CS3 by loading in a SWF at runtime with font symbols defined in library, exported for Actionscript, but not for sharing. I wish to use Arabic and Chinese characters in my fonts, so I have symbols for Arial and MingLiU Bold

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-19 Thread Michael William Ypes
I've got that already although its vmware but I just prefer working in the mac environment now - most times anyway. I have got the embedding working but am trying to slim down the code and I am having a problem with the unicode. I want to put the unicode into a variable and then use those

[Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread Michael William Ypes
Something that should be sooo easy always seems to be a real struggle in flash. I had finally worked out how to do it in as2 and now all the parameters have changed again in as3. I have read various articles on the subject and get most of it. I have one swf with two font symbols exported

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread Geografiek
Hi Michael, I agree embedding fonts in Flash is a pain. I don't think you can define a range of characters in an exported font symbol in the Flash IDE. (as stated in www.betriebsraum.de). developer.yahoo.com describes the flex approach. You might try the following: Define 2 dynamic text field

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread Ian Thomas
On Mon, Aug 18, 2008 at 12:01 PM, Geografiek [EMAIL PROTECTED] wrote: Define 2 dynamic text field off stage (one for each font) and define the character range there. These characters should now be available to all text fields in the .swf *Should* work, but with Flash and font you never know

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread Michael William Ypes
I know the offstage technique but what I want is to load an external swf with the specific font in it. Then use that font in all other swfs. You could do this in as2 by loading in a swf that had a shared library font in it. Bit of a hack but it worked. I cant quite believe Adobe has not

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread jonathan howe
I haven't tried this myself but have you used my old bff getDefinitionByName var fontClass:Font = getDefinitionByName(fontClassNameWithinTheSwf) as Font; and then use the font via the Font class? -jonathan On Mon, Aug 18, 2008 at 1:40 PM, Michael William Ypes [EMAIL PROTECTED] wrote: I

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread Glen Pike
Hi, You should still be able to load a separarte SWF with a font embedded then use this on the stage: http://www.scottgmorgan.com/blog/index.php/2007/06/18/runtime-font-embedding-in-as3-there-is-no-need-to-embed-the-entire-fontset-anymore/ A workaround for the [Embed] does not

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread jonathan howe
Sorry, I realized the syntaxt is wrong - would need to first cast as a Class then instantiate... On Mon, Aug 18, 2008 at 2:27 PM, jonathan howe [EMAIL PROTECTED]wrote: I haven't tried this myself but have you used my old bff getDefinitionByName var fontClass:Font =

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread Cedric Muller
Hello Michael, try the following: 1) create a FLA, blank, empty timeline, empty stage 2) show the Library, then from the menu on the top right click on 'New font ...' 3) select the font you want to embed, give it a 'Name' with no spaces. For example: Arial Narrow (actual font name) would be

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread Cedric Muller
As a precision: This technique works perfectly with AS3 (I was also using the great zarate's shared library hack with AS2). The only big drawback, with AS3, is that you have to be sure that NO single textfield with the embedded font you want to use is in the loading SWF (means: don't put

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread Michael William Ypes
I was thinking of this route but my flex 3 trial has run out. I am assuming then that I can load that into a normal flash application and get it via the class name as per normal. Has anyone got an example font file (made from flex) that I can test it with. If not I shall have to go and

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread Michael William Ypes
I can access the fonts but do not know how to cast them as a class to regsiterfont. Here is what I have so far with that route in mind. Embed the fonts on the timeline: Use the following code but I need to register the fonts to make them globally available. var

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread Ian Thomas
Michael, You can do this with the Flex SDK, which is free. HTH, Ian On Mon, Aug 18, 2008 at 3:07 PM, Michael William Ypes [EMAIL PROTECTED] wrote: I was thinking of this route but my flex 3 trial has run out. I am assuming then that I can load that into a normal flash application and get

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread Glen Pike
Hi, You can do the AS3 Embed test with FlashDevelop = £0, so download the FlexSDK, install it, then FD, then maybe try the example on ScottMorgan's blog - You should be able to create a simple FD project (AS3 default) paste in the code for the font from the blog, and click the build / run

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread Michael William Ypes
Thanks Glen, I made the move to mac a few months ago and alas I cannot use Flash Develop anymore as it was definitely my preferred choice as editor. However the mac system has proved to be much better for my development now than the pc ever was so not really grumbling. Anyhow after a

Re: [Flashcoders] Runtime font embedding in Flash CS3...

2008-08-18 Thread allandt bik-elliott (thefieldcomic.com)
get parallels and a copy of windows xp (vista is too chunky to use in virtualization) then go to http://www.flashdevelop.org/community/viewtopic.php?t=2463 and set it up as instructed - i barely notice the jump between the two apps now On Mon, Aug 18, 2008 at 6:03 PM, Michael William Ypes