<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
gabriel schrieb:
<blockquote cite="mid:49758482.1040402@gmail.com" type="cite">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
<font face="Verdana">Hi Axel, great f*** news...<br>
<br>
I've tested installing the font and nothing happened... ON VISTA!...<br>
Tried the same example in xp and it works<span class="moz-smiley-s2"><span>
:-( </span></span>...I can go on in this way, but any idea in which
could be the problem with vista?<br>
<br>
thanks again!<br>
Gabriel<br>
</font><br>
Axel Huizinga wrote:
<blockquote cite="mid:496FAFF2.3070309@3drachen.de" type="cite">
<meta content="text/html;charset=ISO-8859-1"
http-equiv="Content-Type">
<font face="Helvetica, Arial, sans-serif">Hi Gabriel, are you
working
with windows?<br>
I tried your example and on windows it didn't work for me too until I
installed the font into the <br>
windows fonts directory - weird but then it works<br>
<br>
Axel<br>
</font>
<blockquote cite="mid:496F72F5.8040804@gmail.com" type="cite">
<meta content="text/html;charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
<font face="Verdana">Mark, thanks I can't figure it out...<br>
<br>
I've tried your suggestion and no way:<br>
<br>
<font face="Courier New, Courier, monospace"><font face="Verdana"><font
face="Courier New, Courier, monospace"><?xml version="1.0"
encoding="iso-8859-1" ?><br>
<br>
<movie width="320" height="240" framerate="12"><br>
<background color="#ffffff"/><br>
<font id="<b>jettat</b>" name="<b>jettat</b>" import="<b>jettat</b>.ttf"
/><br>
<textfield id="hellobox" width="200" height="50" size="20" font="<b>jettat</b>"
text="HELLO world!"/><br>
<place id="hellobox" name="output" depth="10"/><br>
<frame/><br>
</movie><br>
</font><br>
</font></font>The library tag has something to do here? swfmill
is
not
complaining about anything. <br>
The TTF file is called "jettat.ttf" and the font name is "Jetta Tech".
I assume that @font in textfield is "jettat" (the font id) right?<br>
I've attached the ttf file, can you test it please? so we know if is
working or not? <br>
<br>
I'm compiling like this:<br>
<br>
<font face="Courier New, Courier, monospace">swfmill.exe simple
testText.xml testText.swf<br>
<br>
<font face="Verdana">is that correct?</font><br>
</font><br>
thanks again.<br>
Gabriel<br>
</font><br>
Mark Winterhalder wrote:
<blockquote
cite="mid:388d2ce00901150811r1e1f7214raee6cadc7d8e94fd@mail.gmail.com"
type="cite">
<blockquote type="cite">
<pre wrap="">What is vera.ttf ? it is the real TrueType file?
</pre>
</blockquote>
<pre wrap=""><!---->
Yes.
</pre>
<blockquote type="cite">
<pre wrap="">The ID (vera in this case) may be anything? or should be the font name, and
how do you use it in the TextField?
</pre>
</blockquote>
<pre wrap=""><!---->
Yes, both -- it /may/ be anything, but /should/ be the font name for
clarity's sake.
What's missing in the tutorial, because font handling in Swfmill has
developed much further since it was written, is that there's also a
@name attribute to go with @id. @id is the Swfmill internal name (for
textfields created in Swfmill), @name is for AS usage (textfields
created by the script).
So, try this:
<font id="KlingonBlade" name="KlingonBlade" import="KlingonBlade.ttf" />
Note the @name attribute I added. An advantage of this is that you can
import multiple font types, like normal, bold, italic etc., and all
give them the same @name. When you use a bold style in your textfield,
the appropriate font style will be chosen.
HTH,
Mark
On Thu, Jan 15, 2009 at 10:14 AM, gabriel <a moz-do-not-send="true"
class="moz-txt-link-rfc2396E" href="mailto:gbelvedere@gmail.com"><gbelvedere@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi Robin,
I've already checked this link, but I had problems doing this:
Fonts work slightly different. To import all numerical characters of
vera.ttf as "vera", you would add the following after the library node:
<font id="vera" import="library/vera.ttf" glyphs="0123456789"/>
What is vera.ttf ? it is the real TrueType file?
The ID (vera in this case) may be anything? or should be the font name, and
how do you use it in the TextField?
I made a quick (really quick) sample with a weird TTF and it does'nt work
for me :(
<?xml version="1.0" encoding="iso-8859-1" ?>
<movie width="320" height="240" framerate="12">
<background color="#ffffff"/>
<font id="KlingonBlade" import="KlingonBlade.ttf"
glyphs="abcdefghijklmnopqrstuvwxyz!"/>
<textfield id="hellobox" width="200" height="50" size="20"
font="KlingonBlade" text="hello world!"/>
<place id="hellobox" name="output" depth="10"/>
<frame/>
</movie>
and this is what I get
thanks again for the time!
Gabriel
Robin Palotai wrote:
Hi!, Check <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://swfmill.org/doc/using-swfmill.html#fonts">http://swfmill.org/doc/using-swfmill.html#fonts</a>
Cheers
Robin
--
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="http://www.mindless-labs.com">www.mindless-labs.com</a>
On Tue, Jan 13, 2009 at 11:00 AM, gabriel <a moz-do-not-send="true"
class="moz-txt-link-rfc2396E" href="mailto:gbelvedere@gmail.com"><gbelvedere@gmail.com></a> wrote:
Hi all,
can anyone please point me in the right direction about embedding fonts with
swfmill?
thanks
Gabriel
_______________________________________________
swfmill mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:swfmill@osflash.org">swfmill@osflash.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://osflash.org/mailman/listinfo/swfmill_osflash.org">http://osflash.org/mailman/listinfo/swfmill_osflash.org</a>
_______________________________________________
swfmill mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:swfmill@osflash.org">swfmill@osflash.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://osflash.org/mailman/listinfo/swfmill_osflash.org">http://osflash.org/mailman/listinfo/swfmill_osflash.org</a>
_______________________________________________
swfmill mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:swfmill@osflash.org">swfmill@osflash.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://osflash.org/mailman/listinfo/swfmill_osflash.org">http://osflash.org/mailman/listinfo/swfmill_osflash.org</a>
</pre>
</blockquote>
<pre wrap=""><!---->
_______________________________________________
swfmill mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:swfmill@osflash.org">swfmill@osflash.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://osflash.org/mailman/listinfo/swfmill_osflash.org">http://osflash.org/mailman/listinfo/swfmill_osflash.org</a>
</pre>
</blockquote>
<pre wrap=""><hr size="4" width="90%">
_______________________________________________
swfmill mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:swfmill@osflash.org">swfmill@osflash.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://osflash.org/mailman/listinfo/swfmill_osflash.org">http://osflash.org/mailman/listinfo/swfmill_osflash.org</a>
</pre>
</blockquote>
<br>
<pre wrap=""><hr size="4" width="90%">
_______________________________________________
swfmill mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:swfmill@osflash.org">swfmill@osflash.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://osflash.org/mailman/listinfo/swfmill_osflash.org">http://osflash.org/mailman/listinfo/swfmill_osflash.org</a>
</pre>
</blockquote>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
swfmill mailing list
<a class="moz-txt-link-abbreviated" href="mailto:swfmill@osflash.org">swfmill@osflash.org</a>
<a class="moz-txt-link-freetext" href="http://osflash.org/mailman/listinfo/swfmill_osflash.org">http://osflash.org/mailman/listinfo/swfmill_osflash.org</a>
</pre>
</blockquote>
<font face="Helvetica, Arial, sans-serif">Sorry - am not really a
windows expert and have only XP here - <br>
Generally prefer to work with linux.<br>
<br>
Axel<br>
</font>
</body>
</html>