Problem viewing text in canvas

Good day.
I've tried to use Canvas for wiewing long text in midp application.
I'm using drawString() method of class Graphics.
For calculating the substring viewed horizontally a screen I'm using the method stringWidth() of class Font.
The font is:
Font f = Font.getFont(Font.FACE_PROPORTIONAL, Font.STYLE_PLAIN, Font.SIZE_MEDIUM);
In some phones the rows are clipped.
I've tried using Font.FACE_MONOSPACE and / or Font.SIZE_SMALL but with the same result.
Debuging code I've seen that the value calculate from stringWidth() method id less than the with of the screen, but really is clipped.
Why?
Best regards and good work.
Stefano Errani

sure you're not setting clipRect() anywhere? I've never seen what you're describing, and I've done LOTS of canvas/text work. hmm. i'm sure there's a good explanation

Similar Messages

  • Problem viewing video in canvas window

    Been editing a project in FCP for good few days now and worked fine up until today when I cannot view any of the sequence from the timeline in the canvas. But it is playing because playhead is moving and sound track plays fine
    Please help!
    Thanks
    Richard

    Glad you got it fixed.
    For future reference, the W key is the toggle for the Image/Image+Wireframe/Wireframe modes that Nick's screenshot shows. I come across many folks who - thinking they're in a text input box - press W and end up with the black screen.
    Of course, I see one of those dudes in the mirror every morning.

  • Problems viewing text in Safari 2.0.4

    I'm hoping someone can help me; when a user visits this website in Safari 2.0.4 on certain sub-category pages the text either runs off the page and under the graphics on the right handside or words get cut off in the middle and word wrapping does not work.
    Text gets cut off - http://www.totallybarbados.com/barbados/Barbados_News/3025.htm
    Text runs off the page and behind the graphics - http://www.totallybarbados.com/barbados/Accommodations/
    This website is newly designed and works perfectly in IE, Firefox, Netscape, Opera and other Mozilla based browsers but not Safari. These pages and website all pass W3C World Wide Web standards but isn't displayed properly in Safari.
    Can anyone help give me any advise on this problem and if there can be a solution?
    Much appreciated.
    islandman

    Where did you get 67 errors? http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.totallybarbado s.com%2F shows the only error is the "pre" tag which are necessary hacks for formatting the "pre" tag. The other "warnings" are no different than checking apple.com http://jigsaw.w3.org/css-validator/validator?profile=css2&warning=2&uri=http://w ww.apple.com
    They also do not assign background-color to "every" css element. Why would you (to bloat CSS)? So, there is exactly "one" error which is well documented and is supported in CSS2.1 when released.
    The problem is that Safari does not adhere to white-space or "pre" tags (preformatted text). This has been an ongoing problem since it's incarnation. All other browsers (FireFox, Netscape, IE, Opera, Mozilla..etc) do. http://www.w3.org/TR/1998/REC-html40-19980424/struct/text.html#h-9.3.4
    edited: Sorry, had to edit as this forum software actually rendered the <"> tags (without quotes)

  • Stills - Aspect Ratio Problem: Viewer vs. Canvas

    Working in DV/NTSC 720x480, A/V settings correct and matched.
    I've prepared a number of stills in Photoshop CS set to non-square pixels. I import these images into FCP and everything looks fine in the Viewer, and the aspect ratio under the Motion/distort tab shows a setting of "0".
    But, when I then drop the image into the timeline the aspect ratio of the image changes, the yellow render bar appears, and in the Motion/distort tab in the Canvas the aspect ratio changes to a setting of -12.5.
    If the pixel aspect ratio was corrected in Photoshop at the outset, why does this occur? And why is this happening in the Canvas only and not in the Viewer as well???
    Many thanks.

    why does this occur? And why is this happening in the Canvas only and not in the Viewer as well???<<</div>
    When you load an image or clip from the Browser to the Viewer, it displays in it's native size and aspect ratio. But once you plave it i a Sequence (Timeline), it takes on the Sequence's settings and will display accordingly.
    -DH

  • Problem viewing text in long text field

    Hi,
    I have a long text in the screen and it takes 65 characters per line in the long text field. iam able to populate data in the long text field but the text in the long text field is truncating in between the words as shown below.
    SAP Business One users can access and ru
    n reports by using the UI API provided as
    part of the SAP Business One SDK and the
    Crystal Reports .Net Winform viewer. Rea
    d the new ---
    Could any one suggest how to rectify this, my requirement is to end the lines at spaces like
    SAP Business One users can access and run
    reports by using the UI API provided as
    part of the SAP Business One SDK and the
    Crystal Reports .Net Winform viewer. Read
    the new ---
    Appriciate your time.
    Reward points for useful answer.
    Thanks,
    Sreeni.

    here is how I would do it:
    1) convert the input (short text) table to string
    2) apply this code to the string:
    DATA: lv_text TYPE text40,
              lv_length TYPE i.
    WHILE lv_string IS NOT INITIAL.
      lv_length = 39.
      lv_text = lv_string.
      WHILE lv_text+lv_length(1) NE space AND lv_length GE 0.
           lv_text = lv_text(lv_length).
           lv_length = lv_length - 1.
      ENDWHILE.
      IF lv_length GE 0.
         APPEND lv_text TO lt_short_text.
      ENDIF.
       lv_length = lv_length + 1.
       SHIFT lv_string LEFT BY lv_length PLACES.
    ENDWHILE.

  • Problems viewing text after installing snow leopard

    Im geting capital A's in side a box for areas on websites. any help would be apprecitated

    Hilgy --
    Welcome to Apple Discussions!
    And Merry Christmas!
    OK, that Box with the A in it usually indicates that something has happened to the
    LucidaGrande.dfont font in your SYSTEM>Library>Fonts folder. Did you do any "housekeeping"
    with your fonts???

  • Can you view text outside of the canvas? as with the view menu you can see animation paths, bounding boxes and handles??? many thanks

    re: Motion 5
    can you view text outside of the canvas? as when using the view menu you can see animation paths, bounding boxes and handles???
    I'm in the middle of a text animation design treatment and unless my memory is completely failing I thought this was an option.
    An example would be selecting all layers and being able to see all bounding boxes and animation paths while moving along the timeline.
    Of course this could be quite a mess if you couldn't selectively chose which layers, its just with this current project it would be so helpful if
    I could see the text beyond the canvas to aid in my animations.
    many thanks,
    robert
    Motion 5
    2014 MacBook Pro 2.6Ghz i7
    16GB RAM
    OS X 10.9.5
    2011 Mac Pro
    4 Boot drives OS X 10.9.4, 10.10, 10.7, 10.8
    960GB OWC Mercury Accelsior_E2 PCI Express SSD (Current screaming fast boot drive)
    64GB RAM

    thanks for both of your responses
    I do understand shift + v " to "Show Full View Area" and shift + z to fill screen, etc.
    and command + & - for zooming
    what I'd like to do is selectively view, say, the text outside of the canvas as you can see the bounding box
    which contains the text or object when selecting one or all layers in the layers column
    I haven't used this feature in a while though I do recall using it in the past.
    Any help would greatly appreciated
    thanks,
    R.

  • Having problems with texts width when viewed in Firefox

    I My site is OK when viewed in Chrome and Safari, but in Firefox, the width of paragraphs is becoming very long and all is displayed wrong.
    I need a clue where to look to fix. I have not , or very little knowledge of HTML code. So I rely on the DW CS5 interface.
    Thanks,D.

    Thanks Nancy ,
    I'll try,
    Should I just paste your info between the brackets, I guess.
    I am not so good with this but I need to spent a bit of time to fix this
    old web site while another one is being designed.
    Yes the images are too big, I'll reduce them, and optimize. This was
    done in a rush..
    D.
    Le 14-02-23 18:07, Nancy O. a écrit :
    >
          Re: Having problems with texts width when viewed in Firefox
    created by Nancy O. <http://forums.adobe.com/people/Nancy+O.> in
    /Dreamweaver support forum/ - View the full discussion
    <http://forums.adobe.com/message/6149874#6149874

  • Problems viewing form

    Hi,
    I created a form using LiveCycle and sometimes I have problems viewing the data. The text fields are blank and if I click my mouse in the field the text shows up then if I click out of the field it goes away. If I click into the field and type a space then the text remains visible. Sometimes the radio buttons do not display as I created them. It displays a circle inside the box instead of just the box.
    These problems only happen on some of the returned forms. Also, some people say they cannot save the data even though they are saving the form to thier hard drive first. At least that is what I tell them to do.
    Thanks for any help on this!

    OK,
    Last shot at this:
    AcroForm with document level javascript to populate a field with viewer type, version and variation. For example, this populates as "This AcroForm is open in Exchange-Pro, version 9.302. The variation is Full" in Acrobat Pro 9.
    Update button that increases a counter by 1 and repopulates the viewer type, version and variation field.
    This works in Acrobat and Reader. For example Reader comes up with "This AcroForm is open in Reader, version 9.301. The variation is Reader", which is correct.
    However in Preview it is evident that document level script do not work, as the viewer type, version and variation do not update.
    Also Javascript in a mouseUp event does not work, as the update button does not advance the counter nor update the viewer type, version or variation.
    Lastly simple calculation script (javascript) does not work, see the quantity/price calculation.
    This form is 100% AcroForm and even simple functionality does not work in Preview. I wouldn't trust Preview as far as I could throw it!!
    Sample here: https://acrobat.com/#d=JAg6ptZtGEcqpxHNJ-XMzg
    Niall

  • HAVING PROBLEMS VIEWING VIDEOS...

    I'M HAVING PROBLEMS VIEWING VIDEOS...THE BROWSER I USE IS SAFARI...THE MESSAGE I GET WHEN TRYING TO VIEW THE VIDEOS IS "HAS CONTENT OF MIME-TYPE "APPLICATION/XMPLAYER2" BUT YOU DON'T HAVE A PLUGIN INSTALLED FOR THIS MIMTYPE A PLUGIN SHOULD BE AVAILABLE ON THIS PAGE" THEN IT DIRECTS ME TO THE MICROSOFT WEBSITE TO DOWNLOAD MICROSOFT MEDIA PLAYER 9....???? WHAT SHOULD I DO?....WE TRY TO DOWNLOAD...AFTER DOWNLOAD IT STILL KEEPS DOING THE SAME THING OVER...I'M NOT REALLY SURE WHAT A PLUGIN IS OR HOW I CAN GET ONE...COULD YOU HELP ME OUT?...THANK YOU...

    Try posting in the QuickTime for Mac forum. You'll be more likely to get help there than you will here in the QuickTime for Windows forum.
    Good luck.
    Forum Tip: It is generally considered inappropriate behavior to type all in uppercase letters in Internet discussions, as text that is typed all in uppercase is by convention considered to be shouting. Uppercase is also more difficult to read, so please use all uppercase sparingly and only when you really mean to shout, which we hope you won’t need to do here .

  • Problems viewing picutres and opening music files

    I have just installed a 32 G micro SD card to my BB curve 8530; since then I start to have problems
    viewing pictures.
    In addition when opening some of the music files (not all of them) ; I have been receiving
    the following messege:
    [The media "file name" being played is in unsupported format]
    Although all music files are in .MP3 format.
    thanks for your help

    Back up all data.
    Quit Safari. In the Finder, select Go ▹ Go to Folder from the menu bar, or press the key combination shift-command-G. Copy the line of text below into the box that opens, and press return:
    /Library/Internet Plug-ins
    From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then launch Safari and test.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Problems writing text on Photoshop CC

    I am having problems writing text on Photoshop CC - the image goes black.

    Windows 8?  Update your video card driver from the GPU maker's website. If you cannot update your driver (like on a locked laptop machine), then set the GPU drawing mode in Photoshop to "Basic" and relaunch the app.

  • Solved: InDesign CC: Problems with text in text box: text flows around invisible object

    I just upgraded from CS4 to CC. I have two problems with text in some text boxes:
    The text seems to flow around invisible object that I cannot find or delete. It's as if there is a photo or other object behind the text box; but when I press COMMAND-a to select all, I don't see any such object.
    When I move this text box, the layout of the text within changes. For example, when the box is high on my spread, the text flows correctly within the box; but when I move it down, it flows around that hidden other object. For another example, when the box is low on the page, the text starts at the top of the box; but when I move the text box up, the text starts somewhere in the middle of the box.
    I have checked margins of the text box and the paragraph options of the text paragraphs (margins, indents, alignments). They all look OK.
    If I modify the text box, checking the box "Ignore text wrap", then the problem goes away; but then the text also will not flow around a real object that I want it to flow around.
    Solution:
    There were objects in a hidden layer on that one spread. It seems that in CS4 when you "select all" you would also select objects in hidden layers; but in CC it doesn't.

    Arthur, Garry
    Would be great if you could send the files as attachment in an email to [email protected]
    Else, you may post here using these steps: http://forums.adobe.com/message/3994281
    Thanks!
    - Neeraj

  • ID CS5: Problem with Text Wrap being Forgetful :(

    I am having a problem with text wrap. Whenever I open this INDD file I am working on now, some of the images shift from having what I call "actual" text wrap to having "false" text wrap. "Actual" text wrap *actually* wraps the text around the image as it is supposed to; "false" text wrap says that "Wrap Around Bounding Box" is applied to the image yet no text is wrapped. After opening the file, making sure to unset and reset the text wrap on each offending image to show an "actual" text wrap WITHOUT changing layer order, saving the file, closing, and reopening, some images have "false" text wrap again! This is a 77 page document with images on every page.
    Another occurrence is if I largely change the flowed text. If I must remove a paragraph on page 7, for example, then the "actual" text wrapped images on page 10, 12, and 18 change to "false" text wrapped images and I have to reset the text wrap on each image. There are often images in between offending ones that DO NOT change, but it doesn't seem to be the same ones each time. So once image A, C, and D will change to "false" text wrap, while B, E, and F are fine; the next time, A, B, and F are wrong and the others are fine. This is driving me crazy as I have never in 8 years of using InDesign encountered a problem using Text Wrap. Please note:
    Ignore Text Wrap IS NOT selected.
    The text box IS below the images.
    The copy is flowed throughout the document.
    Preferences>Composition>"Text Wrap Only Affects Text Beneath Selected"" DOES NOT FIX IT.
    "Wrap around bounding box" IS showing as selected for the image/images.
    There is NO CLIPPING PATH / PHOTOSHOP PATH / ALPHA PATH on these images.
    The images / text box order is not changed between being correct and being incorrect.
    Anyone else with this trouble? And, if so, how did you fix it? Thanks,
    A. Henson
    InDesign 7.0.3
    iMac i7
    8GB RAM
    OS X 10.6.6

    @henson26,
    I emailed you offline to see if you can provide me with an example file that shows the problem.
    Matthew

  • Is there a way to view texts from an account without being on the account? im trying to see who my husband has been texting but i am not on his plan

    Is there a way to view texts on an account that im not on? its my husbands account

    Yeah check on the phone. You can't get a transcript without a court order.
    Message was edited in accordance with Verizon Wireless Terms of Service.
    Message was edited by: Admin Moderator

Maybe you are looking for