About this site's lack of design: Yes, it's supposed to look this way — I'm helping create a new sandbox theme for WordPress (see it on GitHub).

Dan Rubin's SuperfluousBanter

Suffering from chronic idiocy since 1977

Archive for July, 2004

There’s a New Blog in Town

Monday, July 19th, 2004

With­out fur­ther ado I bring you:

http://www.nundroo.com

Com­ments on this entry are closed, you will find enough oppor­tu­nity to com­ment on my new blog. I give all the con­trols back to Dan. My time here has been a blast — more on that later. For now: enjoy!

Categories:

No Comments

Bitmap Fonts in Flash

Tuesday, July 6th, 2004

It’s 3:00AM and I just spent 2 hours fix­ing a bitmap font (pixel) to dis­play cor­rectly in my Flash movie. I even­tu­ally solved the prob­lem. Thank god, because I think I was going mad. Here’s what I did to avoid a few noto­ri­ous problems.

Prob­lem 1: Blurry Text

You got your nifty font all ready and sud­dendly Flash is not being nice and diplay­ing it all blurry. Yuck. It turns out that when a text field’s X and Y stage coor­di­nates are non-integer val­ues (for exam­ple X: 102.4 and Y: 301.3) the pix­els at the edge of the font suf­fer from over anti-aliasing. You can read more about it in a Flash Tech­Note. The solu­tion is pretty sim­ple: just change those nasty non-integer val­ues to nice inte­ger val­ues. This was some­what of a “duh” moment — when read­ing the Tech­Note I remem­bered this odd­ity (the doc­u­ment dates from 2001 for cry­ing out loud.) Addi­tion­ally Fonts For Flash has a use­ful user guide to help you make sure those bitmap fonts dis­play as crisp as they should (note: they carry a nice selec­tion of bitmap fonts for sale.) Good, time to move on.

Prob­lem 2: Filled Characters

My prob­lems were far from over. The first prob­lem was solved in a mere 5 min­utes. A lit­tle Google here and there and you’re ready to get going again. But then sud­dendly some char­ac­ters of my font filled them­selves where no fill was intended. Com­pare the two images below.

Look mom! I screwed up my font in Flash!

Now, obvi­ously sit­u­a­tion A totally sucks. Use­less. Before I go on I must add that this was a bitmap font I edited and changed myself using Macro­me­dia Fontog­ra­pher, an appli­ca­tion I’m not ter­ri­bly famil­iar with. I didn’t like some spe­cific let­ters. How­ever only “R” and “D” were giv­ing me trou­ble (i.e. fill­ing up) and I didn’t touch those — go fig­ure. Any­way, to be hon­est I had no clue what was going on. I redesigned both let­ters, but alas with­out sat­is­fac­tory result (I was doing some­thing wrong obvi­ously.) After doing some research I came across a tuto­r­ial at Ultrashock.com on this very sub­ject. I was saved. I cor­rectly edited the let­ters that were caus­ing the pain and it automag­i­cally all worked per­fectly as shown in sit­u­a­tion B.

Feel­ing Silly

I feel a bit silly for my lack of knowl­edge in this spe­cific case — it’s not like this is an extremely recent prob­lem or any­thing (more like known for ages.) I guess I never really used bitmap fonts much in Flash and if I did, I was a lazy bum and would import images (which is obvi­ously a big no-no con­sid­er­ing file size and dynamic text fields.) Any­way, I hope my igno­rance will help you with future projects and lead to less frus­tra­tion and time loss. I’m going to bed and dream about bitmap fonts in Flash and world dom­i­na­tion. Catch you later.

Categories:

6 Comments

Tour de France 2004

Saturday, July 3rd, 2004

Tour de France

15 sec­onds. That’s the amount of time Ull­rich lost today to Arm­strong. Not much, right? True. But this is not about the amount of sec­onds as such — this is about the psy­cho­log­i­cal effect. This fact aside, the big ques­tion of course is: will Arm­strong win a 6th Tour. Will he be the first to break the myth­i­cal 5 Tour de France vic­to­ries? Leg­ends such as Anquetil, Hin­ault, Mer­ckx and Indurain all failed at their 6th try. Per­son­ally I will be root­ing for Ull­rich. Not because I do not like Arm­strong or think he is not enti­tled to win a 6th Tour, but sim­ply because I pre­fer Ullrich’s style of cycling and personality.

Jan Ullrich
Yet, today Arm­strong did not win the pro­log — as usual I would say. It is a pain to wear the yel­low jer­sey the first week and US Postal knows it. Arm­strong would rather have other teams con­trol the race, have them do the sprints etc. Could he have won? Prob­a­bly. Not impor­tant any­way. He did his job. Sur­pris­ingly enough, a young (23) Swiss fel­low named Can­ce­larra won. Another inter­est­ing fact is the amount of Amer­i­cans in the top 20, namely 6. That’s a good thing for the pop­u­lar­ity of cycling on the other side of the pond.

So, my favorite sport­ing event has started. 3 weeks to enjoy, espe­cially the last week where every­thing will be decided. I will not be blog­ging the Tour as such, maybe an occa­sional post, but I doubt even that. I will be enjoy­ing the event on TV and maybe even drive to the French Alps to view a stage live. Check out the stage stand­ings and stage cities descrip­tion and detailed itin­er­ary.

Categories:

10 Comments