Hmmm,
I've had absolutely no problems like that with Java/printing/fonts
cross platforms /Mac OS/Linux/Windows/fonts, everything has just worked
for me.
Could it be that there is some subtle bug in your code or that you are
assuming/relying on some behaviour that is not actually promised by the
Java printing API?
An executable isolated sample code that demenstrated the problem would
help others to help you.
br Kusti
>>> Adam Ornstein <email@hidden> 27.8.2008 3:17:52 >>>
hi!
I just felt that I should vent a little bit.
I developed an desktop application in java. Initially for the pc , the
idea was to create a macintosh version using the same (or similar code).
This was my first time that I was doing something like this, so I
expected some minor issues to come up.
At first it was no big deal, some of my gui's had to be redesigned to
fit the mac design scheme. Also I had to do some very minor
backtracking to java 1.4.12 - simply because I wanted to develop for the
lowest grade mac that I could (with os 10.3.9 or higher). THis involved
some extremely minor touchups to code!
So far this is a fantastic experience, in a couple of days I was able
to get the majority of my application running on the mac!
Then it turned for the worse - I had a graphics2d item that appeared on
the screen for a "preview" of what their program output would be. This
became one of 2 major headaches. What i finally discovered, is that by
setting the a non-default font for text I was printing out - I needed to
adjust every piece of text that I had printed out to about half. What I
mean is that if I wanted to print text to coordintate space 10, 20. I
needed to write it out to space 5,10. Why?!?!?! It made no sense to
me. Default text writes out in the proper place, and when a font was
set I needed to print out to half the space. PLUS, at times ridiculous
things would happen. for instance I would print line 1 at 5,10. and the
next line which should be printed out at 15,10 under the halving rule, I
would have to print to 7.5,10!
UCH! But I finally got that piece working.
Now the final output of the program takes the same information and
writes it to an image double the size of the earlier image. needless to
say I am still struggling with it, as the output is always
non-standardized. for instance I cannot determine when to print out in
the correct original pc location, or if I need to halve it, or if I need
to adjust the font-metrics measurements to meet the new oddity of a (1/2
fontwidth) equalling a full font width. Therefore never being able to
properly and dependably center a line of text.
I want to throw my macintosh out the window.
Anyway, sorry for venting here, but its extrememly frustrating.
_________________________________________________________________
Talk to your Yahoo! Friends via Windows Live Messenger. Find out how.
http://www.windowslive.com/explore/messenger?ocid=TXT_TAGLM_WL_messenger_yahoo_082008
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden