Display Simsun Font in JTextPane, need all characters have same width

Hi, Gurus
Need help regarding this issue.
I am using a JTextPane for display and user input, and I need to use "Simsum" font(customer requirment). And an important requirment is that every character should have the same width, including space. And I find out that when displayed in JTextPane, for English characters and digits, there is no problem, they all have same width, only problem is with space, it is a little bit narrower than other characters. For example, if I type 26 characters "ABCD......XYZ" in the first line, then type 26 spaces in the second line, it is very noticeable that the spaces are narrower.
At first I thought it is the problen with the font, but then I tried type characters and spaces in Notepad using "Simsun" font and find out that space has the same width with other characters.
I am thinking probably I need to create my own font based on "Simsun" font, or there is some attributes or styles I need to add when create the styled document for my JTextPane.
Can anybody give me some help here? Thanks

Another new dude who is clueless as to the possible effects of cross-posting

Similar Messages

  • During installation "File archive part of Elements 13 is missing"  need all parts in same folder to extract.

    file archive part of elements 13 is missing.  Need all parts in same folder to extract.

    again, you need both the exe and 7z.  download both, put both in the same folder and then double click the exe.
    Downloadable installation files available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
    Acrobat:  DC | XI, X | 9,8 | 9 standard
    Premiere Elements:  13 |12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7
    Lightroom:  5.7.1| 5 | 4 | 3 | 2.7(win),2.7(mac)
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.
    window using the Lightroom 3 link to see those 'Important Instructions'.

  • List of dept where all employees have same age

    Hello Guys ,
    I have a emp table and a city table  , wherein I have details related to employees   and cities .
    I want those dept where in all employees belongs to a particular city .
    Thanks in advance

    Hi,
    96097f0e-f165-463a-a0a2-3d15214c8a3d wrote:
    Hello Guys ,
    I have a emp table and a city table  , wherein I have details related to employees   and cities .
    I want those dept where in all employees belongs to a particular city .
    Thanks in advance
    The title you chose for this thread is
    List of dept where all employees have same age
    but I don't see anything about age in the description of the problem.  This is one example why you need to post a little sample data (CREATE TABLE and INSERT statements) and the results you want from that data, as detailed in the forum FAQ: https://forums.oracle.com/message/9362002
    As mentioned before, post your best attempt at a solution.
    Did you mix up 2 separate problems from the same homework assignment?  If so, solve the problem about the particular city first; it's a little simpler.

  • All users have same bookmarks

    Updated to Mavericks.  Now all users have same bookmark set and changes by one user changes bookmarks in the other accounts.
    Any ideas?
    Thanks,
    David

    All the users are synchronizing Safari with the same iCloud account. That's what you have to change.

  • Need all textframes in equal width and height

    Hi All,
    Request:
    I need all the text frames in equal width and equal height in my active document.
    Trying code:
    var myDoc = app.activeDocument
    var myTF = myDoc.textFrames.everyItem().getElements()
    alert(myTF.length)
    app.activeDocument.viewPreferences.horizontalMeasurementUnits = app.activeDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.MILLIMETERS;
    for(k=0; k<myTF.length; k++)
        myTF[k].geometricBounds[3] = myTF[k].geometricBounds[1]+125    //Doubt this line
        alert(myTF[k].geometricBounds[3])
    Could anyone give solution for my request.
    Thanks
    Beginner_X

    Hi,
    You can edit geometricBounds as a whole array - not as a particular [x] element. So to change object position use:
         object.geometricBounds = YourNewArray;     //      [y,x,Y,X]
    but in THIS case better way is to use:
         object.resize(
                CoordinateSpaces.INNER_COORDINATES,
                AnchorPoint.TOP_LEFT_ANCHOR,
                ResizeMethods.REPLACING_CURRENT_DIMENSIONS_WITH,
                [ mWidth, mHeight] );
    Jarek

  • Make all pages the same width?

    I've seen several answers to this question but they all seem to involve using an external app such as PDF Creator, Distiller, or something like that.
    I have a pdf with three pages with different widths.  From within Acrobat X, what is the easiest way to make all three pages the same width, or is that even possible without using an external app?  If it is possible, please describe how to do this step by step.
    By the way, I know there are steps that can be taken to avoid ending up with pdf's that have pages of varying lengths, but this question is not about that.  It is about existing pdf's.  Thanks a lot
    I am using Adobe Acrobat X version 10.0.0.396 on Windows XP Pro SP3

    Good question - I would say make all the page be the same width as the widest one.  In general, these pdf's will contain 8.5" x 11" pages, sometimes in combination with legal size pages.  The actual size of each page will differ depending on such things as who they came from and how they produced the pdf's, what software was used, which scanner was used, etc.
    Here would be an example pdf:
    The first 3 pages approximately 8.5" x 11" format.  The last 2 pages are legal size.  As you page throgh the document, the widths change.  My usual setting as I page through a pdf is Fit Width.  But in this pdf, the first two pages look right, the third page is too narrow, the fourth page looks right, and the fifth page looks too narrow.  So given that, How would I make all 5 pages the same width so that as I page through the pdf, the widths are all exactly the same, and not just appear the same?  If I have to choose which width they should all be, I'd say go with the widest one.
    If I need to run some javascript to accomplish this, that's ok - I'll strip it out before distributing the pdf.  Thanks

  • Need all audio at same level

    I have edited 13 basketball games for a highlight video. I have 3 sound tracks in each video:track 1 is audio from the game, track 2 is audio with effects clips -primarily digital juice swipes, etc. and track 3 is a song to rev up the action. I have a hard time keeping the volume of track 3-every game has a different song- at the same level through out the project. I can't figure out if I can do this in soundbooth-doesn't seem to want to import all of my audio tracks-i read posts here, but don't have "normalize" as an option under the stereo setting of audio effects...is there a way to do this besides "by ear"?

    Actually, I think I just figured this out. Sorry to waste your time.

  • R12 Importing invoices all distributions have same description

    I am currently working on an import of invoices and invoice lines for R12 utilizing the interface tables and Payables Open Interface Import process. This process is working great except for one small issue. When you click on an invoice that has been imported in the invoice workbench screen and click "All distributions" the Line Number at the top of the screen will change as you click through the lines but the Line Description does not change. In the body you can see that the line descriptions are all different (and account #'s). The account description on the bottom changes as well.
    I don't know if it matters or not but on the left under "Num" they are all 1.
    This is 12.1.3

    This is a known bug with Financials. It's not considered a priority since the line description is ont he actual line (not at the top). So it's not a problem after all, just an issue witht he form.

  • All rows have same result

    hi,
    I use iis on windows 2003, php 5.2.4 and istantclient 10g.
    I want exec a select query on a oracle server view.
    But , when i exec the php page , all the rows of the html table have the same result.
    This is my code:
    <?php
    // Create a persistent connection to Oracle
    // Connection will be reused over multiple scripts
    $conn = oci_pconnect('tdb', 'tdb', '//1.1.1.1/A');
    if (!$conn) {
    $m = oci_error();
    echo $m['message'], "\n";
    exit;
    else {
    print "Connected to Oracle!";
    $query = 'select tcpip from TDB';
    $stid = oci_parse($conn, $query);
    $r = oci_execute($stid);
    // Fetch the results in an associative array
    print '<table border="1">';
    while ($row = oci_fetch_array($stid, OCI_RETURN_NULLS+OCI_ASSOC)) {
    print '<tr>';
    foreach ($row as $item) {
    print '<td>'.($item?htmlentities($item):' ').'</td>';
    print '</tr>';
    print '</table>';
    // Close the Oracle connection
    oci_close($conn);
    ?>
    any suggestion ...

    thanks, i have resolved...
    i have insert "DISTINCT" in my query and all is ok...
    Regards

  • Displaying swf fonts, not working

    In Adobe Shockwave Flash player object, are there any known differences between version 12.0.0.77 and 12.0.0.44 with regards to displaying swf fonts, in Internet Explorer? We have seen a variety of issues with almost all versions. We had 12.0.0.77 installed and the fonts were displayed quite improperly - very Large - , and then we downgraded to 12.0.0.44 and it worked, displaying the fonts properly. Then it upgraded to 12.0.0.77 and it worked again.
    This happens in Internet Explorer, all versions. We have a heavy install on IE8 where we see if most.
    What changes between the two versions would cause this?
    What connections are required between the client and the server, if any?
    In the page source, these transformations are triggered in statements similar to this one:
    sIFR.replaceElement("h4", named({sFlashSrc: "/SiteCollectionImages/sIFR/neosans.swf", sColor: "#333", sCase: "upper", sWmode:"transparent"}));
    Any idea what may cause such odd, inconsistent behaviour?

    This is a flash or shockwave font, no real development involved I believe. The fact is it worked for years, then Adobe did an upgrade on the Object and it did not work. So just wondering what may have caused this in the release on the updated object.
    It also does not work in Firefox, Chrome etc, as these browsers act as if it's not enabled. So it seems like there is a handshake that is not being addressed, access to the server-side font for example.
    The font stopped working because of the change in the client side Object, not with anything on the server, development-wise.
    In several places, in some companies, IE accounts for 100% of the browsers. And in some of those places IE8 may account for close to 100% of those installs. To dismiss a query because it involves IE is not really helpful, or constructive.
    Are there any dependencies on the Object running and the server presenting the material, or could it be rights within the browser environment that may have changed (running javascript with prpoer permissions for example)?
    Thanks, in advance, Dave

  • A question about the Font in JTextPane

    I added a JTextPane in a frame. When input letters in the text pane, the width of them is different. For example, a "H" is wider than "i". How can I make them have same width?
    package test;
    import java.awt.Color;
    import javax.swing.JFrame;
    import javax.swing.JTextPane;
    import javax.swing.text.AttributeSet;
    import javax.swing.text.BadLocationException;
    import javax.swing.text.SimpleAttributeSet;
    import javax.swing.text.StyleConstants;
    public class TestFont {
         * @param args
        public static void main(String[] args) {
            // TODO Auto-generated method stub
            JFrame frame = new JFrame();
            JTextPane textPane = new JTextPane();
            AttributeSet as1 = new SimpleAttributeSet();
            try{
                textPane.getDocument().insertString(0, "abcabc",as1);
                textPane.getDocument().insertString(textPane.getDocument().getLength(), "\nEEE", as1);
                frame.add(textPane);
                frame.setSize(100,100);
                frame.setVisible(true);
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            }catch(BadLocationException ex){
                ex.printStackTrace();
    }

    Use a monospaced font:
    textPane.setFont( new Font("monospaced", Font.PLAIN, 12) );

  • Find Whether Array Element have same element in all index

    Hi ,
    I need to check if an array have the same element in all its indexes.(Example: An Array of Size 4, should have index 0 ..index 3 as 1 and during next iteration let it be number 2 in all indexes......how do I check if all index have same number)
    Attached the VI I did.
    Anyone can suggest better than this.
    Solved!
    Go to Solution.
    Attachments:
    Check array_For Same Element.vi ‏12 KB

    get the first element , compare it with the hole array , AND all elements
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • Title tag does not display all characters

    Hello,
    I think my question is probably extremely easy, but because I am new, I have no idea..
    I bought a web template and so far all is fine.
    One thing, Each page has a header, body text that is all entered by an xml file.
    The header should be displayed by the title tag content. It looks like this...
    <title>Text Field 2</title>
    But when I look at my browser, some of the characters "Text Field 2" are missing and it displays "e Fed"
    please check this link to see what I mean...
    http://test.familycards.nl/
    Does anyone have any idea why some characters do not appear? I tried caps, numbers,.. they all react the same.
    thank you in advance...

    Thank you for your response and help!
    I did think of that.. Unfortunately the template did not come with .fla files, only a host of xml files. I did look for font info to see if perhaps there
    might be conflicts with fonts or missing fonts. but as far as I can interperate the coding, cant find anything.. I will now include some coding here.
    Perhaps it is helpful?
    This is the beginning of the xml page I am working on to add a header and body text...
    <?xml version="1.0" encoding="utf-8" ?>
    <data>
              <title>Text Page</title>
              <field>
                        <title>Text Field 1</title>    ............        (this is the title tag that I place my header text in. but when it shows in browsers as [e Fed]).. the T, x,i,d,l are all missing..
    <text><![CDATA[body text to come here.....
    This is the global options xml...
    <?xml version="1.0" encoding="utf-8" ?>
    <data>
              <global bg="images/bg1.jpg" logo="images/logo.png">
                        <title>Glance Photo Portfolio</title>
                        <slogan>Best photos</slogan>
                        <copyright>Copyright 2009. All Rights Reserved by BK Rascal Multimedia Productions</copyright>
              </global>
              <graphicslib theme="theme4.swf" />
              <playlist src="options/playlist.xml" />
              <menu startPage="homepage">
                        <item name="HOME PAGE" deeplink="homepage" type="page" content="txt1" location="options/text1.xml" visible="1" />
                        <item name="ABOUT US" deeplink="about" type="menu" content="" location="" visible="1">
                                  <item name="WHAT WE DO?" deeplink="whatwedo" type="page" content="txt2" location="options/text1.xml" visible="1" />
                                  <item name="EXHIBITION" deeplink="exhibition" type="page" content="txt2a" location="options/text1.xml" visible="1" />
                                  <item name="MY PUBLIC FORUM" deeplink="awards" type="page" content="txt1" location="options/text1.xml" visible="1" />
                                  <item name="FOURTH DROP" deeplink="awards" type="page" content="txt1" location="options/text2.xml" visible="1" />
                        </item>
                        <item name="NEWS" deeplink="news" type="page" content="news" location="options/news.xml" visible="1" />
                        <item name="GALLERY" deeplink="gallery" type="menu" content="" location="" visible="1">
                                  <item name="OBJECTS" deeplink="objects" type="page" content="gallery" location="options/gallery3.xml" visible="1" />
                                  <item name="PEOPLE" deeplink="people" type="page" content="gallery2" location="options/gallery2.xml" visible="1" />
                                  <item name="NATURE" deeplink="nature" type="page" content="gallery" location="options/gallery1.xml" visible="1" />
                        </item>
                        <item name="CONTACTS" deeplink="contact" type="menu" content="news" location="options/news.xml" visible="1">
                                  <item name="CONTACT PAGE 1" deeplink="contact1" type="page" content="cform" location="options/contact.xml" visible="1" />
                                  <item name="CONTACT PAGE 2" deeplink="contact2" type="page" content="cform2" location="options/contact.xml" visible="1" />
                        </item>
                        <item name="AURORAFlASH" deeplink="blog" type="link" content="" location="http://auroraflash.org/blog/" visible="1"/>
                        <item name="TEST TAB" deeplink="blog" type="link" content="" location="http://auroraflash.org/blog/" visible="1"/>
              </menu>
    </data
    Thats it...
    I hope this helps. (thanks again!!!)

  • Its important that all characters display correctly in my pdf.

    When I convert a file to pdf, I always get this error: Cannot extract the embedded font'HWNDJR 83mkhgdligynvro' some characters may not display correctly. What is wrong? Its important that all characters display correctly in my pdf ebook. Please advise.
    Thank you, Sherrie Vitello
    Email: [email protected]

    Ok, not sure what you mean exactly. I'm new to all of this. What I do is I create an ebook, I convert to pdf using Primo pdf converter, the I upload it to the adobe reader so I can distribute it to my prospects online or print it out, if they want, and send it to them. But when I open the ebook while in adobe reader to examine it, I receive that error message. ?? Any suggestions would be much appreciated.

  • Error message from Adobe Reader. cannot extract the embedded font 'LICCMC+MyriadPro-Light'. some characters may not display or print correctly. Print looks like gibberish

    Trying to view/print PDF documents from website. Print looks like gibberish and is unreadable. Problem is with the embedded fonts. Error message from Adobe says cannot extract the embedded font 'LICCMC+MyriadPro-Light'. some characters may not display or print correctly.

    Try Adobe support, that's not a Firefox support issue. <br />
    http://forums.adobe.com/index.jspa

Maybe you are looking for

  • Import Profit center in invoice by DTW

    Dear experts, I have to import the "Profit center" in an invoice by the DTW but I don't find the column, in the templates, where to insert this data. Thanks.

  • PL/SQL Cartridge with Union Query

    I have a pl/sql cartridge, with 3 select queries connected to each other by a "union". These queries basically generate a report from two tables. One of those queries is based on Table 1, and the other two are based on Table 2. What I need to accompl

  • I have one song that keeps crashing iTunes

    I have been trying to import a song into iTunes, but whenever I play it, it crashes the program.  It's from a relatively new CD (2010) which I made sure was clean and scratch free.  I have tried importing it multiple times and in multiple formats, bu

  • How to open an .exe file in flash using AS3.0?

    hi all Iam trying to open  an notepad.exe file, when I click a button in flash file. I tryed navigateToURL methoad, it is getting but it is showing some alert with " save  -  run  -  cancel "   options, when I click run it will open the notepad. But

  • [svn:fx-4.0.0] 13789: Disable the code that disables IME on the mac.

    Revision: 13789 Revision: 13789 Author:   [email protected] Date:     2010-01-26 14:09:32 -0800 (Tue, 26 Jan 2010) Log Message: Disable the code that disables IME on the mac. QE Notes: none Doc Notes:  none Bugs: SDK-25158 Reviewer: Carol Tests run: