Characters show up as boxes when using AWT components.

Having installed on a Windows XP english OS the asian languages packs (with fonts included, from Microsoft) and knowing that with MS Gothic, Gulim and Simsun you can display japanese, korean and chinese characters it seems that on JRE 1.5 and up this is not possible (boxes appear instead) on any applet.
How to reproduce:
Label l2 = new Label("Japanese chars: \u8457\u4f5c\u6a29");
Workaround:
Step 1. Rename ..\jre\lib\fontconfig.properties.src to ……\fontconfig.properties
Step 2. Modify the following line:
sequence.allfonts=alphabetic/default,dingbats,symbol
to
sequence.allfonts=alphabetic/default,dingbats,symbol,japanese,chinese-ms936,chinese-ms950,korean
How is this possible? On JRE 1.4 this was working. Also another fix is to use Swing components instead but this is not realistic for a big project.
Any help will be greatly apprecied.

The problem is related to the JRE v. 1.5.0_11 or greater. In JRE 1.4.2_13 for each language there was a configuration file that Java was using to determine which fonts to use for different categories of objects.
The problem is encountered only for AWT components.
Starting with JRE 1.5 (http://java.sun.com/j2se/1.5.0/docs/guide/intl/fontconfig.html) there is only one configuration file (fontconfig.properties.src) for all the languages. Since the character subsets supported by given fonts often overlap, in the file separate search sequence properties are used to define in which order to try the fonts when rendering a character. In the default version of the file this properties do not specify also the asian languages.
We have to do the following things:
*1.* You must first install into Windows the support for asian languages: Control Panel - > Regional and Language Options
� On the Advanced tab add the conversion tables for all Asian languages (this action may not be required).
� On the Languages tab check �Install files for East Asian Languages (this action is required)
Restart the computer.
*2.* Assure you have the needed asian fonts : batang(fopr korean), simsun, gulim, mingliu, msgothic(for japanese) installed.
*3.* Rename ...\jre\lib\fontconfig.properties.src to ��\jre\lib\fontconfig.properties. By doing this the fontconfig.properties file will be used by the JRE as the default configuration file.
*4.* Modify the following line:
sequence.allfonts=alphabetic/default,dingbats,symbol
to
sequence.allfonts=alphabetic/default,dingbats,symbol,japanese,chinese-ms936,chinese-ms950,korean
*5.* Assure that in the file the logical to physic font binding, binds to existing fonts.
Obs: If step 1 is skipped the titles of the windows will still have boxes.
Hope it helps.
Donoiu Cristian

Similar Messages

  • Arabic characters appear as empty squares when using certain HTML tags or font styles

    Only when HW acceleration is on. Arabic characters appear as empty squares when using "italic" or "oblique" font styles or when using <i> or <em> html tags.
    Try this code to replicate the problem
    <pre>
    &lt;p&gt;مشكلة ظهور المربعات الخالية بدل الحروف&lt;/p&gt;
    &lt;p style="font-style: italic;">Italic مشكلة ظهور المربعات الخالية بدل الحروف&lt;/p&gt;
    &lt;p style="font-style: oblique;">Oblique مشكلة ظهور المربعات الخالية بدل الحروف&lt;/p&gt;
    &lt;i&gt;i tag مشكلة ظهور المربعات الخالية بدل الحروف</i> &lt;br&gt; &lt;br&gt;
    &lt;em&gt;em tag مشكلة ظهور المربعات الخالية بدل الحروف &lt;/em&gt;
    </pre>

    After lots of research, I found the problem. The boxes (squares) show up whenever there is a font in the webpage that does not have Arabic within its Unicode range such as Times New Roman Italic or Oblique. Normally, Firefox will pick another font to display the characters but now, a newly introduced feature is interfering.
    To fix the problem without turning off hardware acceleration.
    Go to about:config
    locate: gfx.font_rendering.directwrite.use_gdi_table_loading
    which is True by default in FF4.0 Beta 10, and change it to False.
    This is a bug that has to be fixed.

  • How can I show additional tab rows when using many open tabs?

    How can I show additional tab rows when using many open tabs?

    What method (code) did you use to get the Tab bar displaying in the space used for the Navigation Toolbar (location bar)?
    The Tab bar should be displayed above the Navigation Toolbar.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Can I turn off the setting that displays the height and width in a little black box when using the marquee tool?

    In Photoshop CC, on a mac...
    When using the marquee selection tool, a little black box pops up next to the curser and displays in real time, the height and width of the selection.  The same annoying box also appears when dragging an item with the move tool, displaying the numerical location of the cursor.  Is there anyway to turn off the display of that little black box?  It is driving me bonkers.

    Under the preferences cmd/ctrl-k click on "Interface". At the bottom of the UI is a drop down box for show transformation. Set that to "Never"

  • Compatibility of shows produced with QT7 when used with QT6?

    I recently built a slideshow for my website using Quicktime 7.1.5 on my G5. It works just great when I access it from my G5, but when I try to view it on my G3 (using QT 6.5.2) I get audio but no picture. The controls for the show are there, but just a blank box where the video should be. Reading through recent forum questions it souonds like a lot of people are experienceing problems using QT 7.1.5, but I haven't seen anything else about backward compatibility issues like this one.
    The URL is http://www.tomellisphoto.com/slideshow1.htm, I'd be curious to know if any of you using pre-QT 7.1.5 are able to see anything. And if anyone has any ideas how I might fix this problem I'd really like to hear them! Thanks!!
    G3 Blueberry w/G4 processor   Mac OS X (10.2.x)  

    Hi David, I've been trying to get a Pageot version of my slideshow working but am doing something wrong. I did a minor mod on the old show and put it up using the old (slow) method and that works fine (at old URL). But all of my attempts with Pageot (quite a few) just give a blank screen.
    Here is what I did. Used the Pageot program to create a file RobinPaul1 that I placed in my Movies folder. When I click on that file I get a perfect slideshow on my desktop. But when I upload the RobinPaul1 file and try to view it I get nothing. The file shows that it has uploaded and is there as RobinPaul1.html, but nothing but blank screen when I try that URL, http://www.tomellisphoto.com/RobinPaul1.html
    Clearly I've screwed up somewhere, but I don't know where. Help??
    G5 2.0 Mac OS X (10.4.8)
    G5 2.0 Mac OS X (10.4.8)
    G5 2.0 Mac OS X (10.4.8)
    G5 2.0   Mac OS X (10.4.8)  

  • Internet Explorer 9 not showing as not installed when using Windows Update - Error: Code 9C48 Windows Update encountered an unknown error.

    I built a few new Windows Server 2008 R2 with SP1 VMs today and ran into a problem where Windows Update is not detecting the fact that Internet Explorer 9 is already installed. Internet Explorer 9 keeps showing up as an available update when
    using Windows Update. When I try to install it as a test I get the error message: Code 9C48 Windows Update encountered an unknown error.
    My normal build procedures include applying all the patches for the OS prior to any other work on the servers. The way I like to do the patching is to do every update other then IE9 in the begininng and once all the other updates have been
    completed, install IE9 and then patch it if there are updates available. I followed this procedure on every build for the last year and I have not run into any issues until today. The only difference today is the latest patches that were released yesterday
    April 10th, 2012. To test the theory that it may be one of the latest patches, I reinstalled Windows from scratch making sure to format the disks and then I installed IE9 right after the OS install without any other updates. Once the
    server was rebooted, I checked Windows Update and Internet Explorer 9 still showed up as update (Not the Cumulative Update which normally shows up after an IE9 install) and yes, I did make sure to click the 'Check for Updates' link before I looked just
    in case. My next test was to patch a couple of the servers I had built prior to April 10th, 2012. Those servers did not have any issues with the latest updates and they are not experiencing the same behavior as the newly built servers.
    I ended up comparing the IE9 Version on the cleanly install OS (No updates were installed except IE9) and the servers I built last week which were patched. The versions are exactly the same.
    My findings above lead me to believe that there is a problem with the latest IE9 install package (which includes the latest cumulative update) and the Windows Update detection component.
    I guess I am looking for someone to report this up the chain to get this fixed so no one else runs into this problem. I know in some cases we may not be able to see additional IE9 updates until this is resolved.

    I just started having the same problem.
    I was creating a new VM in Vsphere from our 2008 R2 SP1 image and it hasn't been updated and repacked in a while, so i have to install about 60 updates, including IE9.
    I went through my normal setup as i had just created 2 VMs and updated them on Monday with no problem.
    I got the same error code as you. The install looks like it installed IE9, but the update is still showing up as available in Windows Update.
    I deleted the VM, created a new one, chose all updates except IE, then did that and it still shows up again.
    Then i deleted the VM, installed just IE 9 and it still shows up as available on reboot.
    I have a script that i can use to reset/clear WSUS cache on the computer, (Software distribution folder, and the windows update log, and recreates a certificate), so i tried that and then rebooted and it still showed up.
    I then decide ok, maybe the Image got messed up somehow, so i started creating a new 2008 R2 install from scratch last night and chose to update just IE9 as the first install. I did that, rebooted and it didn't show up in Windows Updates, so i though GREAT.
    I proceed to kick off the 100+ downloads needed before i left and left the console up.
    When i got in to work this morning, the updater seemed stuck on 31 of 102 updates, this one in particular: KB288516. I rebooted the computer, because it wouldn't stop and just seemed stuck since last night, which these updates should only have taken about
    an hour to install at most. I log back in and sure enough, it now shows Internet Explorer 9 at the bottom of the update list as being needed for install.
    I believe this is Patch Tuesday week, so maybe they screwed up something with the Windows Update detection engine, because it worked fine on Monday when i had to update IE9 on 2 VMs that i created.

  • If you check the don't show this again box when closing multiple tabs, how do you get it to warn you when closing multiple tabs, or to save previous tabs? Checking the warn me when closing multiple tabs box under tools/tabs does not work to solve this?

    I accidentally checked the do not ask me again box when closing multiple tabs. Now I no longer get a warning when closing multiple tabs, and it saves my previous session. I have tried checking and un-checking the warn me box under tools which has not worked. If I open a second window and try to close multiple tabs it will warn me but not on the first window.

    You can reset the warn prefs on the about:config page via the right-click context menu.
    browser.tabs.warnOnClose , see http://kb.mozillazine.org/About%3Aconfig_entries
    browser.warnOnQuit , see http://kb.mozillazine.org/browser.warnOnQuit
    browser.warnOnRestart , see http://kb.mozillazine.org/browser.warnOnRestart
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />

  • JComboBox only show 10 items data when using DataBinding

    JComboBox only show 10 items data when binding to one table more then 10 lines. List Binding Mode is "Navigation Mode".
    JComboBox's property "maximaxRowCount" is seted to 30, but still display 10 items.
    some code:
    private JComboBox jComboBox2 = new JComboBox();
    jComboBox2.setModel((ComboBoxModel)panelBinding.bindUIControl("ChartView2", jComboBox2));
    ps. Table "Chart" has 35 lines.
    JDeveloper 10g(Version 10.1.2.0.0 Build 1811)

    I am encountering the same problem. I tested the binding VO in the Business Component Browser, it's fetching the correct result set.
    Any suggestion would be greatly appreciated!
    Stephanie

  • How to configure my Firefox thus allowing me to input Chinese characters into the search box by using PenPower writing pad while this problem doesn't exist when I am using Internet Explorer?

    I am using the electronic writing pad made by PENPOWER Inc. to input Chinese characters onto my PC programs (e.g. Winword, Internet Explorer, Excel, etc.) But I can not make it happened on Firefox, please advice what I have to do with the configuration of the Firefox or using any other method to make it work. Thanking you guys in advance for helping me to solve this problem.

    cor-el,
    Thank you very much for your advice. The new software of Penpower works rightaway after I installed it on my pc. Thanks again.
    十分感激你的幫忙!

  • Spry Conditional Validation of Txt Boxes When Using Show/Hide

    Hi everyone.. just a quick question (if their is such a thing) if that is ok...
    I have been working on this single issue for 3 days.. it is driving me mad and hoped someone may be able to point me in the right direction...
    I have a form and it has a radio button with 3 options (about relationship status):
    Married
    Defacto
    Single
    If they select married a text box appears with Enter spouses first name;
    If they select defacto a text box appears with Enter partners first name..
    If single no text box appears..
    User then clicks on next to go to next page..
    All good.. except.. I am using DW CS4 and using spry to validate both txt boxes (spouses first name and partner first name).. problem is only one will be displayed depending on the option selected – Married or defacto.. spry tries to validate both even the hidden one and therefore will not allow the user to go to next page.. as at least one not completed..
    I have spent almost 3 days trying to write a php/java if statement to get spry to only validate text box 1 or 2 if radio button says married, defacto or single etc..
    I would really really really apperciate your input about how I should do this as it is driving me nuts!!!
    Anyway thanks and really hope to hear from someone..
    Cheers from Downunder
    UPDATE:
    Been playing and got this to work:
    <script type="text/javascript">
    function decision(){
    if(document.martial_status.martial_status[0].checked) {
    <!--
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none", {validateOn:blur});
    //-->
    sprytextfield1.reset();
    } else if(document.martial_status.martial_status[1].checked) {
    } else if(document.martial_status.martial_status[2].checked) {
    window.alert("test3");
    } else {
    window.alert("Pick something!!");
    // -->
    </script>
    BUT (and always a but).. if person goes back and selects say single rather then married after already clicking married the spry error msg is already in place for married.. and person cannot go to next page.. The joys.. tried martial_statur.reset and destroy and does clear the error message but still does not allow user to go to next page..
    Any thoughts? Thanks in advance..

    You can destory the validation:
    sprytextfield1.destroy();
    and it should validate.

  • Photo edits not showing up in iPhoto when using PSE

    I have recently purchased Photoshop Elements 13 and have set iPhoto to use it as my editor. That is working, however, when I save the file, the new file does not show up in iPhoto. It does, however, show up in Organizer. Is there any way to fix this?

    Thanks Larry, I don't doubt that I'm not doing it correctly, but I don't know what I am doing wrong.  I have selected PSE to be my external editor in the iPhoto preferences and when I select a photo in iPhoto to edit, it comes up in PSE. I edit the photo and select save (or click on the X in the top right corner of the image, I have tried both and gotten the same results both ways. I get a dialog box that indicates PSE is going to save the file in psd format. I have let it do that and I have also changed to JPG, neither has made any difference. I have also gone in and changed the preferences in PSE to replace the original file on the advice of help at Elements Village. It didn't change the file in iPhoto before that change and it hasn't changed it after that change either.
    The file I originally was working with was in RAW format, and I read in another thread that there was no way for PSE to save the edited RAW file back into iPhoto directly, that it would need to be saved somewhere else, such as to the desktop, and then imported back into iPhoto. So, I edited a jpg file and saved it and that edited file did not show up in iPhoto either. From reading other threads, it seems to work for other people, but I don't know what I and doing wrong or what else to try. I have spent a ton of time trying to get this to work because I don't care for the PS Organizer and would prefer to use iPhoto to organize my photos and PSE and ACR to edit them, but so far I am not having any luck with it other than saving the edited file somewhere else and then importing it again into iPhoto, which is a pretty clunky way to have to do it.

  • How can i get rid of the print dialog box when using api to print an html file

    i am using the systemshell.vi provided by labview the VI is working fine but it will open a dialog box for printer selection and properties. i would like to hide that dialog box and have it print to the default printer with the default properties

    ShellExec is part of lvwutil and merely calls a function in Shell32.dll. There is nothing about the function call that controls the display of the printer dialog. I think that what shell32.dll does when it prints (just like right clicking on the file) is print the file according to what is defined about that file type in Windows Folder Options. On my Win2K system, the print application is defined as "C:\Program Files\Microsoft Office\Office\msohtmed.exe" /p %1. If I remove the /p, then Word starts up and in order to print, I get a printer dialog when choosing Print from the File menu. So it seems like the printer dialog is entirely dependant on the application that does the printing. I get no dialog when I use the VI to print a .txt file. I
    nstead of using shell32, you might want to try some ActiveX method or property of an application like Internet Explorer that can open and print an html file.

  • How to have my employer's phone # show on caller id when using my personal cell/iphone 5s to call customers?

    I use my personal cell phone throughout the day to call customers before arriving for scheduled apptmnts.  Is there a way to have my employer's phone # show up on their caller id instead of my personal cell #?  I do not want my personal cell # to be given out with these calls.

    No. However, you might want to look in to google voice. Using the google voice app, you can have your GV # appear instead of your personal number. I've been using it for years now (it's free in the US), and it's worked very well. You can also have caller ID for incoming calls display your GV # instead of the callers # so you know it's a work call, and you can set schedules for when calls to GV are allowed through to your forwarding numbers.

  • Tabs not showing up in iTunes when using iPad

    When I log onto iTunesU on my desktop PC, the course shows up with the tabs to different sections of the course. However when I log on using an iPad the tabs are not shown in iTunes and it defaults the the first section only. There is no way to get to another section(tab) of the iTunesU course. Has anyone else experienced this and does anybody have a solution for this?

    Groups/Tabs do not exist within iTunes U for private sites on iOS devices so a collection with multiple groups/tabs is essentially broken into multiple courses.
    iTunes desktop client
    iOS device

  • ITunes & App Store in Mac show old e-mail when using "Tell a Friend"

    Hi,
    I have changed my e-mail address on my Apple Account a while ago. All seems to work and when i go to manage the account it shows my current e-mail.
    But when i use "Tell a Friend" feature in the iTunes Store and in the App Sore in Mac is shows my old e-mail. Where can i update this please?
    Thanks

    Whilst browsing through the other questions...I found a solution that whilst seemingly unlikely...worked for me.
    The full description can be found here:
    https://discussions.apple.com/message/13124170#13124170
    Quick summary:
    Under parental controls, disable the app store option but enable the iTunes U option. Click okay. Wait for iTunes to load iTunes U. Once that's done, go back to parental controls and enable the app store option and voila! problem solved. Strange but true. =)

Maybe you are looking for

  • Preview (and also Quicklook) no longer show certain JPGs

    i run latest 10.6.8 software. It was always that preview and later also quicklook showed all the jpgs i created with Photoshop in CMYK mode with included color profile without any problems. Now both dont show them anymore. When trying, this error sho

  • Web Template with document icon in result row

    Hi All, I have a web template created in WAD 7.0. It has Analysis item with a Query as dataprovider.I have checked the "Document Icons for Data" to On in the cell content section of Analysis Item. In query property also,Document link for infoprovider

  • Customer master record problem

    Sir in tcode VA01 i a getting following error message " No customer master record exist for sold to party 1" Can u pleaase tell me what customization i will have to do ? I wait online.

  • Painting In Color Mode

    Hello to anyone reading! I seek dire assistance when painting in 'color' mode. When I select a color and begin painting, it is completely different to the color I originally selected. But when my friend does it, hers is the same color? I don't unders

  • How do i fix itunes system error msvcr80.dll

    When selecting the Itunes icon i receive the following error: The program can't start because MSVCR80.dll is missing from your computer. Try reinstalling theprogram to fix this problem. Do i need to remove itunes before reinstalling? What happens to