I have been loading Fonts for a project for over 2 hours now and I am about 70% done. Basically I needed an SWF library of fonts to be used in an application I am developing, problem is the font needs to be registered (loaded) in order for the “New Font” option to see it. Now on the Mac I found adding/deleting fonts is easy, but very time consuming.
This is all being done in AS2, of course my love of Flash comes in to AS3, where I was able to (just for testing) create this little PHP script that reads a directory of fonts and creates the embed tags for me.. figured I would share it, so here it is.
Again, this is ONLY for AS3 (in Flex).
<?php
$dir = opendir('./fonts/');
while (false !== ($file = readdir($dir)))
{
if ($file != "." && $file != "..")
{
print "@font-face {\n\tsrc:url(\"fonts/" . $file . "\");\n\tfontFamily: myFont;\n\tflashType: true;\n}\n";
}
}
closedir($dir);
?>
It repeatedly prints out import blocks, like this:
@font-face {
src:url("fonts/LT_13171.ttf");
fontFamily: myFont;
flashType: true;
}
Continue Reading »
While working on a Flash project this week I came across a nice bug in the printing process. Basically you create a couple of shapes on the stage, call the print process and you get a printed page.. well thats how it is suppose to work.
However I found out that the local version of Flash doesn’t print the colors correctly and I did have one of my developer friends test this with the same results.
After a few hours wasted trying stuff I published the movie and went on with the rest of the project. Well today I tested it all live and found out the colors were perfect.
Local print results

Live (server) print results

You will notice I got a nice purplish blob and no V2 component label when printed locally. Just wanted to put this out there so you don’t waste time testing code like I had to.
After really not liking the default layout on the home screen and missing custom ringtones I decided to hack my iPhone.. well sort of, more like forcefully modified my iPhone.
Here is an older shot of the update.. now the carrier logo is “mkeefeDESIGN” because this one was too L33T for me
.. and one of the links off of that site offers up a way to change the keypad, but i haven’t done that yet.
I was able to accomplish these visual changes and add my own custom ringtones (no idea why an ipod phone didn’t have this to begin with)
but mine does now. Of course I must caution these mods are not for the inexperienced and failure to follow the steps may result in a sad iPhone.
Here is the app I have been using: iFuntastic
If for some reason the iPhone starts acting weird, just restore it with iTunes and you should be all set.. but
again I am not responsible in any way for the actions caused by modifying your iPhone.
I look forward to how this cool app will evolve over time and when it does I will post about it.