Saturday Oct 31, 2009

Embedded fonts in JavaFX

I wanted to embed a font in my JavaFX application. Sure enough, the first Google result led to the answer (http://forums.sun.com/thread.jspa?threadID=5353505). But the result is not something that I liked. It worked programmatically, but visually I was disappointed:


Here is the same text using the same font in Photoshop.

I like the second one. The JavaFX rendering does not stay true to the intended look of the font, and for my eyes, has a smudgy look to it (then again, I am no fonts expert). If you are using such a font in many places in your application, this difference between the photoshop mockup and the actual application starts getting to your eyes.

Maybe I am missing some trick or maybe the font rendering is indeed like this on JavaFX. But if this is the way JavaFX renders fonts, I am a tad disappointed for now. Maybe things will improve in upcoming versions.

Monday Jun 30, 2008

BOJUG User meet (June 2008)

The Bangalore Open Java Users Group had it's user meet for June 2008 on the 27th at the Himalaya Conference Room at Sun India Engineering Center, Bangalore. The meet, though held on a week day, was well attended (in fact we had the best attendance till date). Not only that, the audience was enthusiastic and participating a lot by asking lots of questions and sharing their views. All and all, a great session - the best user meet I have attended till date. A special thanks to Amit Kumar Saha, the new JUG Leader, who did all the running around to make this meet a roaring success.

Talks:

JavaFX - Harish Singh (3i Infotech)
JDK6u10 - New and Noteworthy - Vaibhav Choudhary (Sun Microsystems)
From Journeyman to Master - Rohan Ranade (Sun Microsystems)

You can read about the proceedings at Mohammed's or Sreedhar Ambati's blogs.

Some snaps of the meet (courtesy Tirthankar):


Saturday Dec 15, 2007

Put a lid on closures

After wondering for so many days, where Josh Bloch had vanished... I am rubbing my hands with glee. What a statement he made at JavaPolis. Hats off, Sire, for being the one sane voice in a room full of G's and A's who are out to tear Java apart. Thank you, for saying what you did. You do not blog, nor do you go around saying "Closures, Closures" to every corner of this planet. But when you speak, you surely do pack a punch.

I am not a language researcher, I am just a programmer, happy with what I have got in Java. Perhaps I haven't written a smash hit application like what G's and A's have written, but I do know this: I threw away C++ before learning it, and I fell in love with Java. I may be a moron in the eye of  a computer scientist, but I love simplicity. I loved Java for what it was, and what it is, and I surely hate what it is going to be if it gets closures.

Now, I just offer an opinion, coz I have not completely read any closures proposal, but I have seen the code examples. They are horrible. Some, downright crazy. I will hate to write Java code if this mess comes along. Please, please leave my beloved language alone. Go find your own play ground to mess things.

I offer no technical insight here. For an extremely balanced analysis of the scenario, please read this excellent post by Bharath.

 

Sunday Sep 30, 2007

Riding the NimBUS

The Java 6 Update N Early Access Program is now live. This is HOT NEWS! I puffed and panted and downloaded the JDK Update N and first thing, took it for a ride to see how the eagerly awaited Nimbus L&F is shaping out. Boy, the results were impressive. I like it more than the default Metal or Ocean L&F and Windows L&F. It's really cool.

Here are some screen shots of the application that I am building, on Nimbus and Windows L&F. 10/10 for Nimbus, 8/10 for Windows L&F. Maybe coz I am a Sun guy :)

 

 

 

Tuesday Jul 17, 2007

Bangalore Open Java Users Group - User Meet III

The 3rd user meet of the Bangalore Open Java Users Group (BOJUG) will be held as a part of Bar Camp Bangalore 4 - on 28th and 29th of July 2007 at the Indian Institute of Management, Bangalore.

The user meet promises to be a power packed one, and we are hoping to get a huge interaction between all the members of various BCB4 collectives.

Loads of presentations, geeky stuff, discussions and yes, IntelliJ IDEA licenses to be won!

 

Interested people can register at: http://barcampbangalore.org/wiki/BCB4_BOJUG

 

Monday Dec 04, 2006

It's coming...!

BOJUG

Friday Jun 30, 2006

Giving something back...

Now anybody who knows what Design Patterns are will indeed bow in reverence to the field of Architecture. Bordering on art and engineering, it is a pure delight watching my parents (yes, they are architects) design huge buildings using nothing but pure imagination. The problems are similar, the solutions are similar, and the techniques are similar. You have a set of rules set down, a set of requirements from the clients and a budget. Now Go, design the building.

It's quite similar to designing software. It's a mind game. Not surprising that architecture has given us some cool things like Design Patterns. I still wonder how my parents can have their process incorporate a bug tracker though ;-)

And increasingly, architects like my parents depend hugely on software like AutoCAD(from AutoDesk - the Microsoft of the architecture software world). And quite frankly, I wonder at AutoCAD sometimes, but largely, I am starting to think that it is a complete waste of productivity. Ok, I am being a bit harsh. But AutoCAD does not even achieve 10% of automation that is possible with designing software.

Picture this: My father designs building plans and sections using simple lines in AutoCAD! Sure there is auto-dimensioning, auto fill and loads of other such nifty tools, but anybody who has seen an architect sketch a building plan while talking of walls, rooms, doors, staircases and other 'bye laws of government' will easily see that designing a building in AutoCAD is like writing an application software in assembly. There's no concept of a room, a wall, a door.. absolutely nothing. So, an architect has to recreate same entities again and again, and while doing that, commit mistakes again and again.

Just yesterday, a silly mistake on the part of a junior draftsman cost my dad lots of money in correction and rework. This draftsman, while enjoying the benefits of copy paste offered by AutoCAD, had forgotten to change the labels and markings on the copied section, thereby marking a 40 x 50 room as 100 x 120. This problem could have been avoided in two ways. Use formulas like those used in spread sheets to auto calculate the widths OR have some tools which would check and flag such violations... much like some of our static analysis tools.

I had just run across Find Bugs (findbugs.sourceforge.net) and decided to try a parallel for AutoCAD. I decided to do something about it and some digging for scripting and macros in AutoCAD told me that AutoCAD has a scripting system using VBA (Visual Basic for Applications... yes the cursing started). Time to revive my VB knowledge, I said, and designed a simple script for flagging duplicate text entries in the design document. And what fun and pleasure to see something that I created, help my father! :-)

Next goal : Take this project to Source Forge and keep adding rules for checking so that architects can start benefitting from it. I hope I have some time on hand to do this.

(Oh by the way, I dont understand what the people at AutoCAD were thinking when they decided to have a scripting system using Visual Basic. How many architects have the time and money and patience to learn a programming language? Why can't people think in a little simple manner..hmm..)

One thing is clear though: Some competition is needed in this field. As usual, monopolies stifle creativity. Is anybody listening?

About

Rohan Ranade's musings on anything and everything.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today