Java font size problems

I am using sun java on Linux, version jre1.5.0_05
I find the font sizes in java applets are too small to read, e.g.
http://javaboutique.internet.com/aFont/
Is there a workaround for this?

827028 wrote:
JohnPM wrote:
then derive a font from that base font which is scaled by an affine transform to the pixel height you need using baseFont.deriveFont(at) I tried that already. Believe it or not the affine transform will do things like shearing but when you scale it simply jumps between integral point sizes. I thought that was kind of strange; but, that is the way it handles affine transforms on text in the deriveFont method and the Graphics2D object. Strange but true.O.k. I guess you were right with using an AffineTransform except that I need one more thing in the Grahics2D:
g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
                             RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
g2.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS,
                             RenderingHints.VALUE_FRACTIONALMETRICS_ON);

Similar Messages

  • Font Size problem : Swing font looks smaller than pdf font

    Hi
    I'm facing a problem with font size in my swing application. I'm showing some text with a certain predefined font size. Using the same font size and type on same m/c, I 'm generating some pdf text.
    The problem is that the text in swing looks smaller than the same text in pdf. Is there a way to achieve
    consistency in font sizes.

    please don't cross-post.  pick the appropriate forum and use it.  close your cross-thread.

  • [SOLVED] Urxvt increasing font size problems.

    Hello,
    I'm having some problems getting Urxvt to increase my terminus font size.
    I have installed aur/urxvt-font-size-git and have the following in my .Xdefaults:
    URxvt.keysym.Control-Up: \033[1;5A
    URxvt.keysym.Control-Down: \033[1;5B
    URxvt.keysym.Control-Left: \033[1;5D
    URxvt.keysym.Control-Right: \033[1;5C
    URxvt.iso14755: false
    URxvt.iso14755_52: false
    URxvt.keysym.Control-minus: perl:font-size:increase
    URxvt.keysym.Control-equal: perl:font-size:decrease
    URxvt.keysym.Shift-Control-V: perl:clipboard:paste
    URxvt.perl-ext-common: default,clipboard
    URxvt.font: xft:terminus:size=9
    !URxvt.font: -xos4-terminus-bold-r-normal--12-120-72-72-c-60-iso8859-1
    URxvt.antialias: false
    Running
    xrdb ~/.Xdefaults && urxvt
    returns no errors, however Control-Minus/Equal do not increase my font size. I have tried swapping the URxvt.font values between the commented/uncommented lines but it still doesn't work.
    Am I missing something?
    Thanks
    Edit: I am using I3 as my WM and I don't have any mappings that would conflict.
    Last edited by Minsc (2014-07-03 19:26:48)

    n125 wrote:
    Minsc wrote:URxvt.perl-ext-common: default,clipboard
    Looking at the wiki entry for this extension, it appears that you're missing font-size in this line. Try adding it and seeing if it helps.
    Wow, can't believe I missed that. Thanks!

  • Font size problems between Motion and FCP

    I created a custom Final Cut Pro title in Motion. I set the font size to 110 pixels. My custom title works great, with one exception. The 110 pixel font in my custom title doesn't match the size of 110 pixel fonts in other titles. I double checked the font specs between the two titles, and they are identical. But, the font in my custom title is much bigger (view screen shot). How do I fix this?

    Hi Jim,
    I found the problem. When I right click a text template in FCP and select "open in Motion", the template dimensions are 1920p X 1080p. My original custom templates were 1280p X 720p. So, I didn't realize I was toggling between different template sizes.
    Thanks for you input though.

  • Font size problem in pages and keynote for iPad

    I've been using pages and keynote for just under over a week and when I go to make a table and set the font size in either of them, it makes the text very large even though it is on the very small setting, even if I try to cut and paste in text that was originally small once in the table it become very big, and when I try copying tables between the two apps it makes it even worse to the point that a 5x5 table takes up 5 pages or goes off the edge of the slide.
    Please help.

    i have a first generation ipad but i expect it works the same way. Have you selected tiny on the table font options? also, select Times New Roman. It is a bit smaller. The tiny setting should be the same as size 12 Times New Roman font. When you select the table (tap on it) there should be a small blue dot in the bottom right corner. that is used to edit the table. It is a bit annoying, but I have not found a way to copy things into the t able in the right format, you have to change it manually every time. Hope this helps!

  • InDesign font size problems

    Hi
    Am having trouble with InDesign - My font size small arrow buttons (up and down) in top dock have decided not to work anymore - Can still change font size manually but I would rather they worked. Any ideas?
    Cheers

    See Replace Your Preferences to start.

  • ADF FACES: font size problems

    By default, when jdev creates a new .jspx file, it includes the jsp:output statement below:
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML" doctype-system="http://www.w3.org/TR/html4/loose.dtd" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    With this statement in place, the font size used by IE is incredibly tiny. When I remove this statement from the page, the font sizes are all "normal."
    Does this make any sense? How would this statement affect all the font sizing on the page?
    Thanks.

    This doctype reference is activating the (rather ironically named) standards mode in Internet Explorer. The current HTML used in ADF Faces renders better in Internet Explorer's quirks mode, though we're hoping to resolve that. The simplest tweak to your .jspx is to remove the "doctype-system" part of that <jsp:output> statement.
    I'll follow up with the JSP DT team to see if this can be tweaked or configured (or, ideally removed, since <afh:html> and <af:document> are already outputting a doctype).

  • Java fonts rendering problem

    Hi all,
    I've used JEditorPane to render an html page.
    My problem is that the way to interpreter fonts seems different from Java to the operating system font, also if I have the same font installed (for example Arial TT unicode).
    For example, I have an html page that misure 100 pixel with Explorer or similar; if I render it in Java, GetPreferredSize return me a value like 130, also if I've installed the same font and I have fixed the style of the page with css.
    In this a bug?
    --Carlo                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Have you used getInstalledFonts to see if the font is actually available to java?
    Not all fonts on the system can be used (especially under Unix/Linux). In which case Java would use a different font as a substitute.
    MArkee

  • Font size problems in Apple Mail (Snow Leopard)

    Dear all
    When I send messages in large font, e.g. size 18 or size 24, the recipient complains of the text being too small, e.g. size 8 or 9. This is happening on everyone who I send mail too... It's problematic for me because I then have to write emails using gigantic letters so that the recipient receives mail with an average size.
    Does anyone know how this can be addressed?
    Thank you
    Kate

    you're not alone. see a similar thread: http://discussions.apple.com/thread.jspa?threadID=2590118
    i just tried this and for now, it seems to work. i'm waiting for feedback from other Win PC & Mac users.
    Change Message font to Lucinda Grande 12 (seems to be the only font that works to solve this problem)
    Signature - change font to 10
    Uncheck "Always match..."
    if it works for you, please let us know.

  • Font size problem in CS2 for Windows

    I've run into a problem that I had about a year ago but can't remember how to fix it. When I highlight some text and look in the Character palette, the size shows as 9 pt (8.33 pt). When I try to change it to 10 pt, the number in the parentheses changes and is the actual size (not 10 pt). I know this can be fixed so that there are no parentheses and the size that shows is the actual size, but I can't remember how to do it.
    Any suggestions?
    Thanks,
    Lloyd

    Never mind: scale text attributes...

  • Java Heap Size problem? Help?

    Hello Everybody,
    Now i'm facing very big problem.
    I think, about 100 users access to our app, it is stopped.
    My configuration below:
    XMS_SUN_64BIT="16384"
    export XMS_SUN_64BIT
    XMS_SUN_32BIT="256"
    export XMS_SUN_32BIT
    XMX_SUN_64BIT="32768"
    export XMX_SUN_64BIT
    XMX_SUN_32BIT="512"
    export XMX_SUN_32BIT
    XMS_JROCKIT_64BIT="16384"
    export XMS_JROCKIT_64BIT
    XMS_JROCKIT_32BIT="256"
    export XMS_JROCKIT_32BIT
    XMX_JROCKIT_64BIT="32768"
    export XMX_JROCKIT_64BIT
    XMX_JROCKIT_32BIT="6144"
    export XMX_JROCKIT_32BIT
    if [ "${JAVA_VENDOR}" = "Sun" ] ; then
         WLS_MEM_ARGS_64BIT="-Xms16384m -Xmx32768m -XX:NewSize=640m -XX:MaxNewSize=640m -XX:SurvivorRatio=16"
         export WLS_MEM_ARGS_64BIT
         WLS_MEM_ARGS_32BIT="-Xms16384m -Xmx32768m -XX:NewSize=640m -XX:MaxNewSize=640m -XX:SurvivorRatio=16"
         export WLS_MEM_ARGS_32BIT
    else
         WLS_MEM_ARGS_64BIT="-Xms16384m -Xmx32768m -XX:NewSize=640m -XX:MaxNewSize=640m -XX:SurvivorRatio=16"
         export WLS_MEM_ARGS_64BIT
         WLS_MEM_ARGS_32BIT="-Xms16384m -Xmx32768m -XX:NewSize=640m -XX:MaxNewSize=640m -XX:SurvivorRatio=16"
         export WLS_MEM_ARGS_32BITI installed on linux 64bit, jrocket 64bit, 64GB ram only weblogic running.
    How can i configure JVM?
    Please help.
    BR,
    Eba

    There are different examples given here: http://middlewaremagic.com/weblogic/?page_id=7132
    In the setDomainEnv file you can use USER_MEM_ARGS to override the memory argument, for example,
    if [ "${JAVA_VENDOR}" = "Oracle" ] ; then
         JAVA_HOME="${BEA_JAVA_HOME}"
         export JAVA_HOME
    else
         if [ "${JAVA_VENDOR}" = "Sun" ] ; then
              JAVA_HOME="${SUN_JAVA_HOME}"
              export JAVA_HOME
         else
              JAVA_VENDOR="Oracle"
              export JAVA_VENDOR
              JAVA_HOME="/home/weblogic/jrockit-jdk1.6.0_29-R28.2.2-4.1.0"
              export JAVA_HOME
         fi
    fi
    if [ "${SERVER_NAME}" = "" ] ; then
         SERVER_NAME="AdminServer"
         export SERVER_NAME
    fi
    if [ "${SERVER_NAME}" = "AdminServer" ] ; then
         # JMX configuration for JRockit
            JMX_OPTIONS="-Djava.rmi.server.hostname=192.168.1.150 -Xmanagement:ssl=false,authenticate=false,port=7091,autodiscovery=true"
            export JMX_OPTIONS
            # Memory arguments for JRockit
            USER_MEM_ARGS="-jrockit -Xms512m -Xmx512m -Xns128m -XXkeepAreaRatio:25 -Xgc:pausetime -XpauseTarget:200ms -XX:+UseCallProfiling -XX:+UseLargePagesForHeap ${JMX_OPTIONS}"
            export USER_MEM_ARGS
    fiAbove an example is shown for JRockit. Xms and Xmx can be set accordingly (with a hundred users 4096m would probably be enough).

  • Problem with decreased font size in exported PDF.

    We have a web site running on a Windows 2008R2 server.
    The site was developed with Visual Studio 2010 using  .NET 4.0.and is running in 32bit. The associated application pool uses a specific local user.
    We have some reports that include a barcode font. The font is installed on the server and the reports are rendered in PDF on the server side to avoid the need to have the barcode font installed on all clients. The PDF renders correctly but we are facing the decreased font size problem
    We followed the instructions included in this post:
    Unfortunately the part regarding VS 2010 does not seem to work.
    If we add the specified Key on the HKLM section of the registry, it doesnu2019t have any effect.
    If we add it on the HKCU section while logged in with the same user assigned to the application pool, everything seems to work fine. But as soon as the user is logged out, the reports stop working.
    Have anybody figured out how to configure correctly those keys with this configuration?

    Try putting it under the HKU/.default path.  You can also use process monitor to see where the application is looking.

  • Font size - Drop down menus

    My PSE-8, newly installed on windows 7 platform has very small font sizes and I can only read with difficulty (aging eyes) the drop down menu headers; they are about font size 6 maybe even 5.   There are same font size problems elsewhere in the menus but I can`t remember where.
    Does anyone know if and how these font sizes can be increased ?  Much appreciate your time to direct me to the solution to this most annoying feature. 

    Thanks for the response - but, been there - done that, and . . .
    My dpi resolution is already at 150 % the max default setting and there is no change.  Is sure wish this could have worked.

  • Modifying Java font type and size

    Hi! I'm not sure if this is the right forum for this but I might as well try. I play a lot of Yahoo Chess which uses a java software to launch its program. I'm a new Macbook user and before when I was in Windows/PC, the font type and size setting was okay. Now I barely can read the font whenever I launch Yahoo Chess (using Java) in my Macbook.
    Any help would be appreciated. Thanks!
    Macbook Core 2 Duo with 2 GB Ram   Mac OS X (10.4.9)  

    Hi,
    Which font and font size did you use in your applet? Do you have sample code that could demonstrate the problem? This may have to do with the difference in font aliasing between MS VM and Sun JVM.
    Stanley Ho
    Java Deployment Tech Lead
    Sun Microsystems

  • How to change the font size of the string by using java?

    I wish to change the font size of the text, read from a text file by using java. Please send me the sample codes. By using ActiveX component for word we can do it. Please give me any other solution to suit the platform independ. Thanks in advance.
    thanks,
    Karthik.

    Text is displayed in some kind of text component - JTextField, JTextArea, JTextPane....To change the font of the text you change the font associated with the text component:
    textComponent.setFont( .... );

Maybe you are looking for

  • Need help with understanding the link between jndi and data source

    When I am trying to deploy my ear file. I am getting the error mentioned below. I have made a connection pool and 3 data sources at console. Is there a problem with the way I have defined them. Please do let me know. Thank You Ronak Parekh Connection

  • Bulk add Contacts to address book

    I have a bunch of contact information in an excel file I would like to add these contact to my address book.  I have tried to save the excel file as a csv and also a tab delimited file so I could import it, but address book would not read the files (

  • Specifications of deployment and lifecycle of JMX beans in a JEE server

    Hello, one colleague of mine is developping a service that uses an MBean to mimick a singleton (the MBean is not used for instrumentation or administration, it just holds a pool of shared non-standard resources) within a Glassfish server. I fought th

  • Buffer Issue in CRM2007 Interaction Center

    Hi Experts, We are facing one buffer issue in IC and the detailed process is:- 1) We open any account in IC and based on that account we have an Alert Ex:- Alert1. 2) Now we end the interaction and leave the IC window open. 3) Now we open a new WebCl

  • Reader stops working when newest GTK2.0 installed - bug report and proposed fix

    Adobe Reader 7.0.9 (Linux i386) stopped working when I installed a batch of updates on Xubuntu Feisty Fawn (7.04). The updates included GTK 2.0, version 2.10.11. The symptom was that upon startup, Reader ended up in a seemingly infinite loop, printin