Mx.controls.Text zoom issue with wrapped text. Is this a bug?

We have created a diagram drawing tool in Flex, but we are having a serious issue with zooming. Everything zoom fine expect the Text control if it contains wrapped text. At certain zoom levels, some of the text seems to disappear (usually text at the end). I have tried everything, embedding fonts, turning anti-aliasing on and off, setting anti-aliasing to normal or advanced, but it doesn't seem to fix the problem. Is this is a known bug?
If you check out the pictures (see attachments), you will see that the part of the text ('34') disappears at a certain zoom level.
There is another blog who suggest to embed the font and set the antiAliasType to ‘animation’ (http://www.mehtanirav.com/2008/08/20/zooming-text-area-in-flex-messes-up-word-wrap-bug%20), but this doesn't seem to work for me either. I don't know if I am doing this correctly though, but I embedded a font and called text.setStyle("fontAntiAliasType","animation"). However, 'animation' is not one of the  AntiAliasType contants. According to the official documentation, the AntiAliasType constants are 'advanced' or 'normal'.
Any help will be appreciated.

Try this:
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
import javax.swing.text.*;
class textpaneColor extends JFrame {
   JTextPane tp = new JTextPane();
   JButton button = new JButton("color");
   public static void main(String args[]) {
      textpaneColor obj = new textpaneColor();
      obj.showMe();
   void showMe() {
      button.addActionListener(new buttonListener());
      setSize(200,200);
      getContentPane().setLayout(new BorderLayout());
      getContentPane().add(tp, BorderLayout.CENTER);
      getContentPane().add(button, BorderLayout.SOUTH);
      setVisible(true);
   class buttonListener implements ActionListener {
      public void actionPerformed(ActionEvent e) {
         SimpleAttributeSet set=new SimpleAttributeSet();
         StyleConstants.setForeground(set,Color.BLUE);
         StyledDocument doc=tp.getStyledDocument();
         doc.setParagraphAttributes(0,999999,set,true);
};o)
V.V.

Similar Messages

  • Issue with displaying text in BEx

    Hi all,
    We are facing an issue with displaying text in the query output.
    We have a master data carrying charac ' 0MATERIAL'.When i do maintain master data ,I am able to see medium description in the output.
    Now when i drag 0MATERIAL in bex designer and in properties set display to key and text(medium text), it shows me only the key and it shows some wierd text which is in no way related to the medium description ( that was shown under maintain master data)
    can anyone pls tell me why i am not able to see the medium description when executing the query that too when the text is loaded.
    Pls help
    Regards,
    Suchitra

    But what i wouldlike to know is what about the master data which is present in 0MATERIAL now?
    Nothing will happen to your data.
    Its showing there ...dosent that mean its present and activated?
    They are present n in active version.
    If u change any records they will be in M version..by activating the data...u are converting it to A version.
    Regards,
    Ram.

  • Word 2013: No Text Zoom Option with Comments

    I'm trying to read my document that has had comments added to it. I need to zoom b/c the text of both the document and the comments are too small. But the zoom does not apply to the doc or the comments. 
    Is there some way to export the comments into a separate document so I can at least zoom them there?  Something else?
    Word 2013 -- The notion we only get to read 1 paragraph at a time is absurd and counter-productive.

    Please note that MSDN forums target programming questions developers have when writing code using Microsoft products. Your issue falls into the category end-user, so you're less likely to find people who work with Word the way you do in the MSDN forums.
    The better place for you to ask in the future:
    http://answers.microsoft.com/en-us/office/forum/word
    Cindy Meister, VSTO/Word MVP,
    my blog

  • Issue with document text - converting from PDF to Word

    I have used Adobe Reader in the past with no issues.  Today, I tried to convert a PDF to a word document.  It worked, but the text all changed to wingdings font (even though it says it is Calibri).  Any suggestions?

    Hi marleighp23001196,
    Are you facing this issue with a specific file or with other word files too?
    Regards,
    Rahul

  • Issues with dynamic text box formatting

    I'm running into issues with using HTML formatting for a dymanic text field. I know these are quirky and I cannot figure out how to get the formatting proper.
    I have on my stage a dynamic text box called "content_txt" inside of a movie clip instance "content_mc". When it enters the frame, I fade the "content_mc" from alpha 0 to 100 using a timeline animation. In order for this to work, I have to embed the font in my "content_txt" text field. However, the only way I get get the HTML formatting to work is if I do not embed the font.
    The dymanic text field is set to render as HTML. In my actions layer, I set the text:
    this.content_mc.content_txt.htmlText = "<b>Hello world,</b> it is me again."
    In summary:
    1. If I do not embed the font, the alpha fade does not work but the HTML formatting does.
    2. If I embed the font, the alpha fade works but the HTML formatting does not.
    How do I resolve this? It's driving me nuts!

    How do you embed just one style?
    I've tried typing three words in the text field and formatting each (regular, bold, italic) but the text field just defaults to whichever format is first.
    Also, I tried embeding the whole character list and did not have success.

  • Text display issues with htmlText, Embedded Font

    Hey All,
    I'm having an issue with the display of my hyperlinks in a
    textfield that is using embedded fonts. It offsets the hyperlinks
    to the left along the line they are on and the underline doesn't
    stretch all the way under the text field. The text display normally
    when I don't embed the font. For some reason I think this might
    have to do with the embedded character range so I opened it up.
    Does anyone know if this range is enough or if there are special
    characters flash uses that need to be embedded for their width even
    though they arn't displayed.
    Embedded range:
    [Embed(source='MyriadPro-Regular.otf', fontName='Myriad Pro',
    unicodeRange='U+0000-U+00fe')]
    Here's a link to the related code:
    http://pcpnew.privatepaste.com/a7eKaAuCTt

    Any ideas?

  • Display issue with Long Text in Smartform

    Hi All,
    We have a custom smartform, where we are displaying the Invoice Item level details.
    The Item description (InvoiceItemItem Text) is of about 1000 character length and a variable v_temp with 2000 length has been defined and saved.
    In debug mode, the complete text is saved in the variable v_temp.
    The same variable is placed in the smartform to display the complete text.
    But the complete Text is not getting displayed and only the system displays 256 char.
    How to resolve this issue?
    Regards
    Pavan

    Hi,
    Another workaround will be to define internal table with a field of lenght 256, and use the function module RKD_WORD_WRAP to split the string (v_temp) into 256 characters length. Now loop at this internal table and print the same.
    Regards,
    Swarna Munukoti.

  • Text Box issues with a poster template

    This sounds stupid and all but, I am trying to type lowercase in a text box in one of the poster templates and it will only type caps. I cannot seem to find anything to clikc or unclick. It seems like this shouldn't be so difficult.

    Hi there,
    I too am having problems with the text box. I have a line at the beginning of each sentence, I can't seem to get rid of. Now this problem does not exist on the first page, but any other pages I try to edit the text on I get this line. I've looked everywhere, but can't seem to find the solution. Any help out ther? Or if you need further clarification to the issue, just let me know!
    Bryan

  • Issues with sent texts

    My text messages are breaking up making it  unreadable by those who I send my messages to. Anyone have any suggestions of what I could do? Other iPhone users who are my friends have reported the same issues with my messages, howevery their messages aren't affected.
    Thanks!

    Check Settings>General>Date & Time>Set Automatically>On. Make sure that the time zone setting is also set correctly.
    If that didn't solve the problem, restart your iPad and try again. If that fails, reset your iPad and try again.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    If Messages is activated but not sending texts, try Settings>Messages>Show subject field>Off.

  • Formatting Issues with SO10 text in Adobe forms

    Hi Everyone,
    I Have the below text maintained in SO10.
    "Thank you for choosing Enterprise.  We look forward to seeing you at 9:00 am on Monday, November 28, 2011.  This message is to confirm you have updated your reservation.  Following are the details for the updated reservation:
    P.S. Remember us when you're renting in town.  Enterprise is always nearby at more than 6,500 neighborhood locations."
    I have created an text module of type include text in Adobe form context. the text which has to be bold is not being displayed as bold and the line space after first paragraph is being skipped out and the 2nd paragraph is being displayed as the continuation of the first. The out put looks as below
    "Thank you for choosing Enterprise.  We look forward to seeing you at 9:00 am on Monday, November 28, 2011.  This message is to confirm you have updated your reservation.  Following are the details for the updated reservation: P.S. Remember us when you're renting in town.  Enterprise is always nearby at more than 6,500 neighborhood locations."
    I tried Styles using SE72 on the SO10 text. And I cannot assign smartform styles on SO10 text in Adobe forms.
    Greatly appreciate your suggestions and solutions.
    Thanks,
    shalini

    Thanks Rakhi, but that did not resolve my issue. Below is new out as per the thread suggestion and this is not what I wanted.:
    "<H>Thank you for choosing Enterprise.</> We look forward to seeing you at 9:00 am on Monday,
    November 28, 2011. This message is to confirm you have updated your reservation.
    Following are the details for the updated reservation:
    P.S. Remember us when you're renting in town. Enterprise is always nearby at more than 6,500
    neighborhood locations."
    - shalini

  • Issue with updating texts in Quotations

    Hi All,
    I am facing a very weird issue in one of my programs. The program creates or changes a bunch of quotations based on the input data via a file through a BDC. Once it completes creating or changing the quotations it updates a particular text object in the item - texts screen using SAVE_TEXT. In most cases the text details are updated properly but in some cases it is not getting updated. This problem is very sporadic and it does not even get repeated for the same input data. I am using the COMMIT_TEXT function also. Please let me know if any of you have faced a similar problem and have solution for it. Any pointers on the same will be highly appreciated.
    Thanks,
    Praveen

    Solved on my own

  • Photoshop CS5 - Issues with 3D Text and Reppouse

    Recently, I downloaded Photoshop CS5. Whenever I try to transform normal text into 3D with the Reppouse feature, I this error:
    "Your 3D scene now exceeds the limits of lights and/or textures for the video card's hardware-accelerated 3D Rendering. As long as the limits are exceeding, 3D rendering will be done in software only, and some features (e.g. Reppouse) will be disabled."
    If anyone has tips or advice on this problem, please fill me in because I will be gradly appreciate it. Thank you.

    1. Yes, many Laptops  that have onboard video chipsets are not good enough.
    2. Yes, your card does support some OpenGL and in this case this error reveals your card  does not support the 2 default Lights that are generated whn creating a Repousse mesh.
    3. Repousse requires OpenGL, other 3d functionality dos not require OpenGL
    For more info > GPU and OpenGL Support in Photoshop CS5 and CS4
    http://kb2.adobe.com/cps/404/kb404898.html
    Hope this helps

  • Issue with pasting text when saving for web and resizing

    This seems to be a very specific problem in PS CC 14.2.1 Mac.
    I have text in the clipboard.
    I go "SAVE FOR WEB" then  "SAVE . . ."
    I can then paste my name into the "Save As" name dialog.
    BUT
    If I I go "SAVE FOR WEB" then change the size of the file in the Image Size Box before I "SAVE . . ." I can no longer paste text in the naming dialog box.
    I haven't tried this for every permutation in the Save For Web dialog, but saving optimized as JPEG is what I'm having trouble with.
    I believe this is a bug.

    What might be happening is after you change the image size in the save for web dialog, one of the size fields is still highlighted, so when you paste
    in the save as dialog, the name is actually being pasted in one of the size fields in the main save for web dialog.
    After you change the size in the save for web dialog press the enter/return key and then see if pasting into the name field of the save dialog in save for web works.

  • Issue with Full-Text (FTS) master merge on SQL Server 2012 SP2

    Hi,
    On my current project we have really annoying issue with master merge process that occurs after Full Population of FTS Index.
    Let me describe our process: we have continuous build that setup environment and run unit tests after each commit in our source control. For each run we create new DB (on the same SQL Server) then fill it with test data and run unit tests. Sometimes unit
    tests failed because FTS Index population cannot finish in time.
    We have constantly seeing in [sysprocesses] table lots of sessions with wait type FT_MASTER_MERGE that block our tests
    In FTS log we have following error:
    The master merge started at the end of the full crawl of table or indexed view [TABLENAME] failed with HRESULT = '0x80000049'. Database ID is '45', table id is
    706101556, catalog ID: 5.
    Here is an example of how we create FTS catalog and add table to it (As you can see it's created with auto change tracking together with
    index update in background):
    -- Create FTS catalog
    EXEC sp_fulltext_catalog 'WilcoFTSCatalog', 'create'EXEC sp_fulltext_table 'Users', 'create', 'WilcoFTSCatalog', 'PK_Users'
    EXEC sp_fulltext_column 'Users', 'UserId', 'add'
    EXEC sp_fulltext_column 'Users', 'Name', 'add'
    EXEC sp_fulltext_table 'Users', 'activate'
    EXEC sp_fulltext_table 'Users', 'start_change_tracking'
    EXEC sp_fulltext_table 'Users', 'start_background_updateindex'
    Does anybody know what is the root cause of this issue and what should be done to avoid it?
    Thank you in advance,
    Olena Smoliak

    Hi,
    On my current project we have really annoying issue with master merge process that occurs after Full Population of FTS Index.
    Let me describe our process: we have continuous build that setup environment and run unit tests after each commit in our source control. For each run we create new DB (on the same SQL Server) then fill it with test data and run unit tests. Sometimes unit
    tests failed because FTS Index population cannot finish in time.
    We have constantly seeing in [sysprocesses] table lots of sessions with wait type FT_MASTER_MERGE that block our tests
    In FTS log we have following error:
    The master merge started at the end of the full crawl of table or indexed view [TABLENAME] failed with HRESULT = '0x80000049'. Database ID is '45', table id is
    706101556, catalog ID: 5.
    Here is an example of how we create FTS catalog and add table to it (As you can see it's created with auto change tracking together with
    index update in background):
    -- Create FTS catalog
    EXEC sp_fulltext_catalog 'WilcoFTSCatalog', 'create'EXEC sp_fulltext_table 'Users', 'create', 'WilcoFTSCatalog', 'PK_Users'
    EXEC sp_fulltext_column 'Users', 'UserId', 'add'
    EXEC sp_fulltext_column 'Users', 'Name', 'add'
    EXEC sp_fulltext_table 'Users', 'activate'
    EXEC sp_fulltext_table 'Users', 'start_change_tracking'
    EXEC sp_fulltext_table 'Users', 'start_background_updateindex'
    Does anybody know what is the root cause of this issue and what should be done to avoid it?
    Thank you in advance,
    Olena Smoliak

  • Getting text ID and Text object  associated with item texts in PO...

    Hi,
    To print standard text on smartform for a given item in purchase order, I need to find the text ID and object associated with it.
    There are various texts like item text, Info record PO text, Material PO Text, Delievry Text, etc...
    Now when I go to ME22N, and select item detail for any item -> Texts , how do I get text ID, and object associated with it ?

    Hi ,
        Use table stxh,stxl
        FM read_text.
        you can view the text id by following
        this link
         me23->header-text-double click on text->menu goto->
         header        
    Regards
    Amole

Maybe you are looking for

  • Changing color of lines that identify selected objects

    Some of my artboards use the color yellow to highlight selected objects. Can I change that?

  • Identfying the Duplicate Entries

    Hi All, As per my requirement 1.  The internal table is the input. 2.  I need the duplicate records of the internal table with the combination of 2 key fields. 3. I should not use SORT because i need the  index number in order as per in the table . E

  • Possible to increase rate of rotation over time?

    I need to simulate something similar to the effect of a car wheel rotating, strictly in 2-D, a totally flat side-view. The complication is that I need the "wheel" to be stopped at first, then slowly ramp up speed over time until it reaches a maximum

  • Bill from CMR Claims department for drop wire

    After calling Miss Uitility to mark all lines, was doing yardwork and lost Fios services.  No lines were visably cut since we knew were they were marked.    The lines are not buried very deep.  Just below the surface. Received a bill in the mail from

  • Ipod shuffle (1st generation) won't sync with iTunes 7.0.2.16

    iTunes locks when I attempt to load music from any music folder. iTunes will recognize my iPod after resetting it using the "iPod reset utility", but will lock if I try to drag and drop, or Autofill. However, iTunes will AUTOFILL from MUSIC folder at