Font rendering across OS's

Hi,
Hopefully this is a simple question.
I'm using Java2D to generate PNG's for a webapp. When I develop on my windows box, the font rendering looks great. When I push it out to my Linux server, the font's look awful.
In a best case, I like to make my fonts look great on both OS's, but I'll take making them look consistent. I assume that this is happening because Java2d id reaching out to the OS for font rendering. Since I'm operating in headless mode, though, I'd expect two PNG's to be byte for byte identical. If anyone can tell me how to do this I's appreciate it.
Thanks,
Jim
PS - Using Java 5, could move to 6 if a solution necessitated it, but would be a hassle.

JDK 5 and 6 uses same library to rasterize text and this library is not platform dependent.
But most of fonts are platform and even system dependent.
If you want identical images you need to be sure that same fonts are being used.
E.g. try to use Lucida Sans font shipped with JDK.
Note that if requested font is not available it will be substituted with default font.
Also note that logic fonts (e.g. Dialog) are always availbale but they are actually mapped to set of
platform dependent fonts.

Similar Messages

  • [SOLVED] Font rendering messed up after latest freetype2 upgrade.

    I haven't touched my font configuration, but the appearance of most fonts has changed across the board (i.e. in every application) since I upgraded to freetype 2.4.6 yesterday. In particular, the fonts are less strong, and in LibreOffice Calc in particular the spacing is messed up at certain levels of magnification despite having hinting enabled. Here is my ~/.gtkrc-2.0:
    gtk-icon-theme-name = "nuoveXT2"
    gtk-theme-name = "Clearlooks"
    gtk-font-name = "FreeSans 10"
    gtk-xft-antialias = 1
    gtk-xft-hinting = 1
    gtk-xft-hintstyle = "hintfull"
    gtk-xft-rgba = "rgb"
    I have tried many combinations of AA and hinting, and nothing seems to work. Fonts do look slightly differently when I change the hinting settings (except in Calc), but they do not look as crisp as before the upgrade. Can anyone help me?
    Last edited by nbtrap (2011-08-01 01:44:13)

    It figures that I fix this right after giving up and posting to the forums. It seems that either (1) Xresources overrides gtk settings or (2) Libreoffice ignores gtk settings. I had not had any ~/.Xresources file, but after creating one:
    Xft.dpi: 96
    Xft.antialias: true
    Xft.rgba: rgb
    Xft.hinting: true
    Xft.hintstyle: hintslight
    and adding
    xrdb -merge ~/.Xresources
    to ~/.xinitrc,, the font rendering has returned to normal across all applications, The strange thing is that I didn't have an Xresources config file before when the rendering was working fine. It's also weird that fonts in GTK apps looks crisper with Xresources configured than they do with the same configuration in ~/.gtkrc-2.0. I can't figure out why, but at least it's now working.

  • Font rendering is screwed up on my Galaxy Tab 2 7

    I'm using the latest Firefox Android browser on both my Galaxy Tab 2 7 running Jelly Bean as well my old i9000 phone running Gingerbread. On the phone, font sizes are rendered consistently across sites. However, on the tablet, pages such as Google News home page are messed up with text blocks that are rendered in the same font size on the desktop or phone being rendering in varied font sizes. This problem is also found on other sites. Is this something to do with the different font rendering on Jelly Bean that trips up many an Android app since Firefox seems to work fine on Gingerbread and, if so, can something be done about it as it is an excellent browser otherwise?

    Firefox and every other smartphone browser uses an algorithm to make pages designed for desktop browsers more readable. Though you see it more often on Firefox because website designers have been building restrictive mobile sites that only work on Safari iOS and the Android stock browser.
    There are certain web sites such as forums where this algorithm does not work so well. This results is 'random' text sizes. If you want to read the details of this behavior see http://www.jwir3.com/blog/2012/07/30/font-inflation-fennec-and-you/ This is described in the section "Incorrect Flow Roots".
    If you want to make the text size regular but smaller on desktop websites you can go into the Firefox settings.
    * Press the menu button
    * Scroll down to the settings and tap it
    * Scroll down to 'Text size' and tap it
    * Press the small 'A' till the text size is at the smallest size
    * Press set

  • Font Rendering Got Bad After 32.0 Update

    After the recent update, the font started to get badly rendered. Kind of blurry with jagged edges and transparent parts. It used to be okay D:
    Sometimes it becomes okay for a moment as I scroll down on pages, and sometimes when I stop scrolling, the font stays as it is; as if there are specific positions for the text to render properly. However, not all of the fonts are affected. Only the ones inside the scroll area.
    On times that the font renders properly, the bookmarks font, title bar, and tab names are unaffected and still appear not-smooth. Same thing does not happen on other browsers. All my other system fonts look okay; it's really just Firefox.
    Restarting Firefox = didn't work
    Restarting Computer = didn't work
    Tried setting up Clear Type = didn't work
    Tried enabling and disabling Hardware Acceleration on Firefox = didn't work
    Tried enabling and disabling the Graphics card itself = didn't work
    Tried just about all of the suggestions I found on Google = none worked
    Tried complete uninstall and re-install of Firefox 32.0 = didn't work
    Graphics Driver are updated ~
    Windows is updated ~
    I'm using Windows 7 Ultimate 32 bit
    Graphics AMD Radeon HD 6800
    I fixed it by downgrading to Firefox 31 which makes me sure that 32.0 is the culprit. As I was about to send the message on top; I tried downgrading as my last resort and it worked. Now I'm only sending this as a report. I am hoping you'll figure out what caused it because I am quite strict (OC) that everything in my PC must remain updated >_<; thus I want to use Firefox 32.0 as much as possible.

    No one to help on this ??????

  • Flex 4.5/FP10.2 web app: Font rendering problem

    Heya,
    Upped a web app from Flex 4.0/4.1 to Flex 4.5 & fonts started to render really badly (blurry & 'stronger').
    They are embedded as CFF, no errors or warnings gives. Also upgraded to Flash Player 10.2, which apparently has 'enhanched' font rendering.
    Haven't set applicationDPI on the s:Application tag, so DPI management should be disabled according to the docs.
    (See http://help.adobe.com/en_US/flex/mobileapps/WS19f279b149e7481c682e5a9412cf5976c17-8000.htm l)
    It's straight up @font-face embeds in a CSS file, nothing odd or wrong there.
    Is the case that this is how it's supposed to look now? In that case, how do I revert back to sane rendering?
    Do I need to configure 4.5 somehow to get it to do fonts right?

    Also tested Franklin Gothic, same deal. Tested on Mac (10.2) & PC (10.2 & 10.3). Flex 4.5 for both platforms.
    fonts.css:
    @font-face
    src: url("fonts/arial.ttf");
    font-family: Arial;
    font-weight: normal;
    embedAsCFF: true;
    FontTest.mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
    <fx:Style source="fonts.css"/>
    <s:Label x="20" y="20"
    fontFamily="Arial"
    fontLookup="embeddedCFF"
    fontSize="12"
    cffHinting="horizontalStem"
    text="TESTAR Testar testar" />
    </s:Application>

  • Font rendering differences between Xfce and KDE

    Hi,
    I am using both KDE and Xfce (mostly Xfce with KDE apps) and I observed that there is a font rendering difference between Gtk (Xfce) and QT (KDE) apps.
    In both desktop environments I use dejavu sans font, size 9 and I have set RGB subpixel rendering and hinting to full.
    I created some screenshots of dolphin and thunar to illustrate the differences (right click and select view image to see the screenshots in full resolution)
    Can somebody help me to make gtk app fonts to look the same as qt ones? Or at least tell me why there is this difference.
    Thank you.

    I cant tell you why there is a difference, but this page may help you. https://wiki.archlinux.org/index.php/Font_Configuration
    I ended up installing the Ubuntu patched packages in the AUR, but there are different options.

  • Font rendering quality in Illustrator is terrible!

    What the heck rode Adobe when they implemented the new font engine?
    Why, oh why is Apple's font rendering so much better? And why wouldn't Adobe use something that's already readily available on the mac platform?
    I have a huge problem mocking up website layouts in Illustrator. Type looks much better in Firefox or Safari. How come, huh?

    I believe this is the result of sub-pixel antialiasing (SPAA), which optimizes text appearance on laptops. Illustrator's rasterizing doesn't SPAA, which is fine for most CRTs, print, and LCD displays that might be rotated.
    It's more a case of the OS being savvy enough to tell what kind of display you have and antialias appropriately. Illustrator's rendering engine does need to support SPAA.

  • Font rendering OS X issues

    Hi people,
    I baught a MacBook Air and I am new to OS X. I have this machine since 1 month and I simply cannot get used to the font rendering of OS X. I thought I get used to it after a while, but I don't. I feel like I have body lotion in my eyes all the time, fonts are really blurry and I can only work on that machine for some time. On my windows machine I worked all day long, with no such problems, but not in OS X. It is set to native resolution and I already set the font smoothing to 1, but this is still not enough, while turning font smoothing completely off makes everything look very ugly.
    I wonder why no one ever mentioned that in reviews, etc.? Does it not bother mac users? However, is there some other option (besides scaling down to lower resolution)? I have headache almost every evening, so this is really a problem to me.
    Thanks in advance.

    Do any other applications behave like that? Or just these two?

  • Crisp / Clear Font Rendering?

    Is there any suggestion on Arch Linux running Gnome 2.6.30 to improve the crisp / clearness of my fonts? I installed the latest available nVidia drivers & under 'Appearance' > 'Fonts' > 'Details', I show the following:
    * Resolution: 98 dots per square inch.
    * Smoothing: Subpixel (LCD)
    * Hinting: Slight
    * Subpixel Order: RGB
    It just never seems as clear and crisp when I compare side by side to Ubuntu or Windows 7. The font clarity is notable difference beween Arch and I would like to change this. Any help and or tips would be greatly appreciated!
    Screenshot
    -Carlos
    Last edited by Carlwill (2010-04-28 13:25:23)

    Ubuntu uses special patches for their font rendering: http://wiki.archlinux.org/index.php/Fon … d_packages
    Windows uses Cleartype: http://wiki.archlinux.org/index.php/Fon … e_packages

  • Weird Font Rendering Issue?

    Okay i was looking fo some back up drives online, and i stumbled upon:
    http://www.circuitcity.com/ssm/Seagate-Barracuda-7200-9-500GB-Internal-Drive-ST3 500641ARK/sem/rpsm/oid/168899/catOid/-12976/rpem/ccd/productDetail.do
    it renders like this:
    http://img512.imageshack.us/img512/4641/picture3rn0.png
    http://img218.imageshack.us/my.php?image=picture4dr1.png
    but for some reason on my MacPro 2.66 the font renders odd in FireFox (doenst do it on Safari. and ive tried this exact sit eon my MacBookPro and it looks fine on Firefox.
    I have the following installed (on both machines)
    -FireFox 2.0.0.9
    -Microsoft Office 2004
    -Adobe CS2
    -Macromedia Studio 8
    theyre practically identical with programs & fonts installed, the only fonts that are installe are the ones that wer epreinstalled with the system, and that came with Office 04 and CS2
    any way to maybe fix this issue?

    hey! well i tried your site url on my MacPro and i have the same issue, so it must be a macpro thing? lol
    im running the latest firefox and no additional fonts installed other than the ones you have listed yourself (office, cs2, macromedia)
    so dont fret. i tried using font finangler and onyx to clean the font cache, (not sure i fhtat was a good idea,) but it shows up on mine so your not the only one! ive tried on two different macpros one wiht out any programs and it does the same thing. so it must be something with the wya its rendering on these machines.
    at first it hought maybe something got corrupted in my system aswell
    hope that helps!!

  • Font Rendering Issues-Help Required Please

    In the past week, any Google search on Firefox or Chrome (but not Opera) gives me results where the fonts look gappy. Sometimes there are additional dots above the letters. I uninstalled and reinstalled Firefox from scratch in case an add-on was at fault but even with a clean install I am still seeing the issue. I checked my font settings and do not have any minimum font size set. I have allow pages to choose their own font ticked.
    I've uploaded an image where I can see some correctly rendered text and some gappy looking text (not from a Google search but a Mozilla query). It also happens when commenting online sometimes, during typing it will be gappy but it will show properly once submitted. Any ideas for a fix would be warmly welcomed and I can give more examples if that would help. Although it's not Firefox related, I did restore all defaults in Chrome and it didn't fix the issue there either.
    I uninstalled the most recent Windows Update since the problem is recent but it didn't change anything. I'm not sure if browsers would even look to my computers fonts.

    hi Auds77, this is probably caused by microsoft update kb3013455 which can cause font rendering issues on vista:
    <blockquote>After you install security update 3013455, you may notice some text quality degradation in certain scenarios. The problem only occurs on systems that are running Windows Vista SP2 or Windows Server 2003 SP2. Microsoft is researching this problem and will post more information in this article when the information becomes available. </blockquote>
    <sup>reference: https://support.microsoft.com/kb/3013455</sup>
    one option may be to [http://windows.microsoft.com/en-us/windows/remove-update#1TC=windows-vista roll-back this particular update] for now until there is a fix by microsoft or you could also look if there is a [[Upgrade your graphics drivers to use hardware acceleration and WebGL|graphics driver update]] available on the website of the vendor (intel/amd/nvidia) which might also resolve this problem in some cases.

  • Ugly fonts rendering with poppler-qt-lcd

    Hello,
    These patches don't work on my system.
    All fonts rendering are beautiful, but pdf documents in okular are ugly.
    I have tried ubuntu cairo patches without effects on this issue.
    I have tried also to change hinting parameters in fontconfig without success.
    Here is screenshots.
    With extra/poppler-qt :
    with aur/poppler-qt-lcd :
    The rendering is worst with poppler-qt-lcd !
    Anybody other has this issue ?
    Thank you

    I'm afraid this is a problem with the Cairo backend; the patches just create a bridge between the Qt bindings and the Cairo backend, and instruct Cairo to use subpixel rendering.  Unfortunately, it doesn't always comply.  Since Cairo 1.10 came out, more documents are affected.  You'll notice the following comment was posted on AUR around the time Cairo 1.10 came out:
    Sadly, it seems an increasing number of documents are not properly subpixel-rendered in the Cairo backend, even with these patches. I'm afraid that issue is for other people with more understanding of Cairo internals to solve. (See here: https://bugs.freedesktop.org/show_bug.cgi?id=3307 ).

  • KDE : slow font rendering

    Hi everyone !
    I'm completely new to Arch (coming from Ubuntu) and was really amazed at how fast my system could get and how easy it was to set it up.
    I only have one problem left (apart from the missing japanese fonts) :
    When anti-aliasing is turned on (in KDE), fonts rendering gets really slow. It can be noticed when selecting a big chunk of text with the mouse, in Konqueror or Kate : you can feel it takes some time. Or when switching tabs in Konqueror. Those are definitely much faster in Opera and Firefox.
    However, with anti-aliasing turned off, it is almost instant, as it should. But it looks really awful (in general, I have much trouble getting a good font rendering in linux. Probably because of my 19" LCD that only reached 1280x1024)
    Do you have any idea ? My config is : nvidia geforce 6600, proprietary drivers, athlon 64 3200+. I tried some MS fonts and the DejaVu font.
    Just in case, you may see my xorg.conf, below.
    THANKS EVER SO MUCH for reading this far I think my problem may concern many other newbies like me
    # nvidia-settings: X configuration file generated by nvidia-settings
    # nvidia-settings: version 1.0 (buildmeister@builder3) Thu Nov 9 17:56:12 PST 2006
    Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0" 0 0
    Screen 1 "Screen1" RightOf "Screen0"
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Mouse0" "CorePointer"
    EndSection
    Section "Files"
    RgbPath "/usr/lib/X11/rgb"
    EndSection
    Section "Module"
    Load "dbe"
    Load "extmod"
    Load "type1"
    Load "freetype"
    Load "glx"
    EndSection
    Section "ServerFlags"
    Option "Xinerama" "0"
    EndSection
    Section "InputDevice"
    # generated from default
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons" "no"
    Option "ZAxisMapping" "4 5"
    EndSection
    Section "InputDevice"
    # generated from default
    Identifier "Keyboard0"
    Driver "kbd"
    Option "XkbLayout" "fr"
    EndSection
    Section "Monitor"
    # HorizSync source: edid, VertRefresh source: edid
    Identifier "Monitor0"
    VendorName "Unknown"
    ModelName "LG L1915S"
    HorizSync 30.0 - 83.0
    VertRefresh 56.0 - 75.0
    Option "DPMS"
    EndSection
    Section "Monitor"
    # HorizSync source: xconfig, VertRefresh source: xconfig
    Identifier "Monitor1"
    VendorName "Unknown"
    ModelName "TV-0"
    HorizSync 28.0 - 33.0
    VertRefresh 43.0 - 72.0
    Option "DPMS"
    EndSection
    Section "Device"
    Identifier "Videocard0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce 6600"
    BusID "PCI:2:0:0"
    Screen 0
    EndSection
    Section "Device"
    Identifier "Videocard1"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce 6600"
    BusID "PCI:2:0:0"
    Screen 1
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Videocard0"
    Monitor "Monitor0"
    DefaultDepth 24
    Option "metamodes" "CRT: nvidia-auto-select +0+0"
    SubSection "Display"
    Depth 24
    Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
    EndSection
    Section "Screen"
    Identifier "Screen1"
    Device "Videocard1"
    Monitor "Monitor1"
    DefaultDepth 24
    Option "metamodes" "TV: 800x600 +0+0"
    SubSection "Display"
    Depth 24
    Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
    EndSection

    Oh gees, it seems the culprit was the "sub-hinting" (halo de sous-pixellisation) option. I thought I had tried all possible combinations
    However, I wonder if it is supposed to slow down the display that much...
    Anyway... I would still be eager to find a solution to display japanese fonts
    Thanks for listening to me
    Last edited by mahen (2007-02-05 11:55:09)

  • Difference in font rendering of JList and other text components

    Hi,
    I have a swing application using JTextField,JTextArea and JList.When I use a font
    for an Indian Language for these components,the JList shows the data correctly
    but the other components shows it with junk characters.Is there a difference in the font rendering behaviour of JList from others?

    Use getFont() on each to the comonents to make sure they are using the same font.

  • Font rendering issue & multimedia keys not working

    Hi, yesterday i switched to KDEmod 4.1 and I have two major problems...
    One is font rendering issue... I did not change anything in my font-related packages (cairo, freetype, fontconfig, libxft) and i have to add that this setup worked perfectly in KDEmod 3.5.9, but now it looks like this:
    This bug occurs only in qt apps and mostly in kmenu... i.e firefox renders my fonts flawlessly...
    Second problem are multimedia keys on my keyboard...
    They worked in KDE 3.5.9, but now I cannot set them up properly... Sometimes they work, sometimes they don't...
    KDE recognizes the pressed key, but when I assign specific action and press the key, just nothing happens...

    You might be able to solve your font issue by going to System Settings -> Appearance -> Fonts.  I enable ant-aliasing.  I also clicked on configure and select "Use sub-pixel rendering" to RGB and the hinting style to Full.  I also use the Force fonts DPI to 96 DPI.  This makes the fonts pleasing to my eyes.
    This is how I got my multimedia keys to work in KDE4.1:
    Go to System Settings -> Regional and Language and make sure to set the County or region to your location.
    khotkeys needs to be running.  I added it to the autostarted progam list. System Settings -> Advanced tab -> Autostart
    When I got the multimedia keys working, I was really tring to get the keyboard shortcuts to work.  In addition to the above steps, I also deleted
    ~/.kde4/share/config/kglobalshortcutsrc.  I do not know if deleting this file is needed to get the multimedia keys working, but it was to get the keyboard shortcuts woring.
    Restart X
    Go to  System Settings -> Keyboard and Mouse -> Keyboard Shortcuts
    I set the volume control in the KMix component section.
    To get the keyboard shortcuts to work, go to the menu editor and select the program you want to create a shortcuts for.  Click on the advanced tab and create the shortcut in the shortcut field.  Save.
    Then go to  System Settings -> Keyboard and Mouse -> Keyboard Shortcuts. Change the component to KHotkeys.  Select the Program and then select the default shortcut that you just created.  (This works for the multimedia keys aswell).
    Hope this helps,
    pudge

Maybe you are looking for

  • IPod will connect to computer but not to iTunes (I followed the apple website guide already)

    My iPod touch 4th gen WILL connect to my computer but not iTunes. I ran the diagnostics in iTunes and Apple mobile service is running, iTunes is updated and iTunes says everything is ok EXCEPT it says there is no iPod connected, but my computer says

  • Problem in Rough Cut Plan while displaying horizon nbr of columns

    Hi Expert, During the creation of Rough Cut plan for material Trx MC87, the system display only one Column. I Tried to extend the period by using the the button "page Right" and "page left" but there is no  chance. your support is highly suitable Olf

  • The voice over thingy goes crazy when switching sound system.

    When itunes asked me if I wanted the feature where an artifical voice says to me what's currently playing on the ipod when pressing the middle button, I answered yes. Because I wanted it. The feature works as expected, when I listen away on the pod a

  • "dialer idle-timeout" fails

    Hi all, I have this configuration: version 12.2 service nagle no service pad service tcp-keepalives-in service tcp-keepalives-out service timestamps debug datetime service timestamps log datetime msec localtime service password-encryption service int

  • IPhone4 with IOS5 is performing very slow.

    I had upgraded my IPhone 4to IOS5 on the day it released. Theupgrade was successful without any issue. But from last few days.. my iphone performance is very poor L. Like opening Contacts, SMSs, etc. Even when I get a SMS or notification, the standar