[CS2 Mac] Text resize issue

Hello,<br /><br />My plugin is iterating text runs to modify font size by a given scale factor.<br /><br />My code works fine for all text runs BUT the first one. <br /><br />The problem with the first text run is quite weird since InDesign is actually diplaying the new font size value in its toolbar but the related text is not resized accordingly within the text frame: it's displayed with the former font size - only the first text run (all others are fine). . .<br /><br />I must be missing something important in here: I am pasting my code below - thank you for any advice to help addressing this weird issue.<br /><br />Best regards<br /><br />Patrick Perroud<br /><br />- - -<br /><br />InterfacePtr<ITextModel> textModel(textFrame->QueryTextModel());<br /><br />InDesign::TextRange range(textModel,0L,textFrame->TextSpan());<br /><br />K2Vector<InDesign::TextRange> textRanges;<br />textRanges.push_back(range);<br /><br />K2Vector<ClassID> attrClasses;<br />attrClasses.push_back(kTextAttrPointSizeBoss);<br /><br />TextAttributeRunIterator iter<br />(<br />     textRanges.begin(),<br />     textRanges.end(),<br />     attrClasses.begin(),<br />     attrClasses.end()<br />);<br /><br />while(iter)<br />{<br />     ITextAttrRealNumber* fontSizeAttr = (ITextAttrRealNumber*) (iter->QueryByClassID(kTextAttrPointSizeBoss,IID_ITEXTATTRREALNUMBER));<br />     <br />     if(fontSizeAttr)<br />     {<br />          PMReal rSize = fontSizeAttr->GetRealNumber();<br />          <br />          rSize = rSize * scaleFactor;<br /><br />          fontSizeAttr->SetRealNumber(rSize);<br />     }<br />     <br />     ++iter;<br />}

Hi Peter,
Thanks for your attention to the problem. The independent stories were 
all threaded. I don't really understand why, but upon removing a 
return character at the beginning of the text that would not fill 
upwards, everything moved up to where it belonged.
Thanks again.
Gary

Similar Messages

  • Problem with text resizing and moving

    After much pain with this issue, I'm going to ask for help.
    The whole issue(s) resolves around text upsizing, changing and moving in Muse.
    No amount of grouping, layering and locking has stopped this issue for me.
    I don't have divs that are a pixel off and whatnot. This happens even when I have a blank site and I test it (as seen in the example pic below).
    The majority of the time, this is an issue when viewing Muse created sites on Android, although text does move when viewed on iOS.
    Example 1:
    I have a square div. I put text in the div that I want to stay contained in the div. Basic right?
    View site on browsers and iOS devices it generally plays by the rules (although not always, there are some movement going on). When viewing this example text and div on an android device, the text resizes larger. This results in the text overlapping the div and moving EVERYTHING below it down. This makes it impossible to tightly design anything for a website.
    I know Android has options within it for users to set text viewing size, but this worthless from a web designer standpoint. That is something I can't control.
    Example 2:
    I have 1 text field and set the typeface to 15. There is nothing else on the page, just a background image (under "Fill"). Viewed on browsers and iOS looks fine. When viewed on Android this text balloons to some enormous size (25+) that makes the website utterly useless. This random resizing makes it impossible to design to. 
    Example 2.5:
    I take that same text from example 2, copy it into 2 of the same size text fields. They are placed next to each other, taking up the same width as Example 2. It now looks like 2 columns of text. Set the typeface to 15 again. I view it on Android and get the resizing issues from example 1 not example 2. It's noting to the extent of example 2 but like example 1, it still changes enough to ruins any design I'm trying to accomplish.
    Is there any place in Muse to lock the text? I don't want to make the text into an image (obviously).
    I been dealing with this in Muse for 6 months and haven't been able to find anything online or in forums about. I understand with the bevy of platforms out there nothing will look the same across the board, but right now I don't see how I can continue working with this issue.
    Am I the only one dealing with this?
    Thank you for any assistance.

    Welcome to the annoying realities of working with text on websites... Nothing you describe is unique to Muse.
    Every browser has it's own text engine and thus each line breaks text differently. Even the exact same web page on the same computer with the same fonts will sometimes result in different line breaks in different browsers, or even in different versions of the same browser. It's just a side effect of the nature of determining a line break, where even the most miniscule difference in calculations can result in an entire word fitting, or not fitting.
    There are two "tools" that are especially important to understand and use effectively in order to create designs that work as effectively as possible with the variation in line breaks from one site viewer to the next.
    Text Frame Height Always Matters
    If a text frame is drawn to the exact height of the text wthin the frame, then any increase in the number of lines of text due to changes in line breaks will result in the text frame growing and other objects below the text frame being moved down.
    If a text frame is drawn larger than the height of the text then when line breaks change the text frame won't grow unless the changes in line breaks are severe enough to result in the flowed text being taller than the text frame was originally drawn.
    If you resize a text frame smaller than the text within the frame in Muse Design view, the frame will snap back to be large enough to accommodate the text, but a dotted horizontal line will appear within the text frame indicating the "minimum height" for the text frame. If line breaks change in the browser the text frame will grow or shrink in height down to the minimum height indicated by this dotted line.
    Careful sizing of text frames can go a long way to creating a design that will continue to work well even when line breaks, and thus text frame heights change.
    Grouping Has Consequences
    As part of the output process, Muse collections the objects you've drawn into a hierarchy of horizontal groupings, vertical groupings, or stacks. When line breaks change in different browsers and text frames change height, when the text frames are located in this output heirarchy determines what impact the change in height has on other objects (if any).
    For example, if you have a layout that looks like a 2x2 grid of text frames, by default Muse will interpret it to act as two colums. So if the first text frame gets taller it will push the text frame below it down, but won't impact the location of the two text frames in the second column.
    If that's not the behavior you want, the way to tell Muse to treat things differently would be to group the two items in the first "row". This would cause the top to to be treated as a horizontal group. If anything in the group grows taller than the group, the group resizes taller and pushes the objects below it down. Thus if the top to items are grouped, if either one of them grows taller than the group it would push both the text frames below downward.
    The 2x2 grid is just a simple example of the concept. In most cases you don't have to do anything special to get the behavior you want, but it is important to understand grouping has this ramification. Grouping an arbitrary set of objects on your page can result in undesired behavior when text frames resize in the browser.
    For the Andriod screenshot you've provided, I don't have an immediate explanation. For us to explain what's shown we need to know the exact browser, browser version, Android version and device the screenshot is for. It would also be immensely helpful to have the URL for the page, so we can attempt to reproduce what you're seeing and view the exact code involved.

  • [CS2 Mac] Unexpected Alert Window

    Hi All,<br /><br />I have a problem to find the reason for an unexpected Alert Window on ID CS2 Mac. I wrote a PlugIn with an Button that's open an Dialog. After I close the Dialog - I get an Alert Window with the following Text:<br />"5. Arbeitsbereich laden" maybe retranslated to English: "5. Workspace load"<br />I don't know why this Alert comes. Please help me.<br /><br />Now some info's:<br />ID CS2 MAC 4.0.5, CodeWarrior 9.3 <br /><br />maybe the problem code:<br />----------------------------------------------------------------------<br />InterfacePtr<IApplication> application(gSession->QueryApplication());<br />ASSERT(application);<br />if (application == nil)      {<br />     ASSERT_FAIL("application invalid"); <br />     return;<br />}<br />InterfacePtr<IDialogMgr> dialogMgr(application, UseDefaultIID());<br />ASSERT(dialogMgr);<br />if (dialogMgr == nil) { <br />     ASSERT_FAIL("dialogMgr invalid"); <br />     return;<br />}<br />PMLocaleId nLocale = LocaleSetting::GetLocale();<br />RsrcSpec dialogSpec(nLocale, kTestPluginID, kViewRsrcType, kTestDialogResourceID, kTrue);<br /><br />IDialog* dialog = dialogMgr->CreateNewDialog(dialogSpec, IDialog::kMovableModal);<br />ASSERT(dialog);<br />if (dialog == nil)  { <br />     ASSERT_FAIL("can't create dialog"); <br />     return;<br />}<br />dialog->Open();<br /><br />----------------------------------------------------------------------<br /><br />Thanks in advance<br />Ralph

    I have not changed any sound settings so the sound that I am hearing is 'Funk' and 'Submarine' in Mail.
    Message was edited by: Andrea Sian

  • Text wrap issue:ShowDetaillItem chop-off in the PanelAccordion.

    Issue: Text wrap issue in ShowDetailItem header. Tittle of the S+howDetaillItem+ chop-off does not display completely in the PanelAccordion.
    I have a few texts that does not wrap in ShowDetailItem Header used for the panel accordion. I could not fix it after trying a few options like changing the css skin, and in the design property inspector.
    Please suggest a way to fix this.
    Oracle Jdeveloper 11.1.1.5 is the version.
    Windows XP professional sp3
    Edited by: 899970 on Nov 30, 2011 11:34 AM

    Thanks for your response.
    Yes, we dont have enough room on the page.
    I want the text to wrap and display in the second line as it has more no. of letters compared to the other texts available.
    Please suggest me a way to get the text displayed the way I want it to be.
    Thanks
    Sam
    Edited by: 899970 on Nov 30, 2011 3:13 PM

  • Please help-Trying to compress to Mpeg-2 for Convention, also resizing issues

    Hello,
    I just recently finished making an AMV in Adobe Premiere 5.5, and I am having trouble trying to figure out how to compress it into an Mpeg-2 source for a competition/convention.
    I also have these massive black borders on the side of my video that I know is probably due to improper resizing on my part, and although I have tried to remedy this with a new avisynth script of the exported uncompressed AVI (before compressing to MPEG-2), whenever I try to run the avisynth script in either VirtualDubMod or TMPGEnc (the converting program recommended by: http://www.animemusicvideos.org/guides/mpegforcons/) it crashes, although the original video does work.
    This is the avisynth script I have created for the post-video:
    FFVideoSource("C:\Users\Freeman\Desktop\Fight the Power.avi")
    FFCopyrightInfringement("C:\Users\Freeman\Desktop\Fight the Power.avi")
    AssumeFPS("23.976")
    SSRC(48000)
    LanczosResize(720,352)
    AddBorders(0,64,0,64)
    per the recommendations from the guide listed below
    I do not know if the resizing I have set up in the new avisynth script will fix my resizing issues, and I would like to improve that as much as possible, so if someone could clarify for me, that would be greatly appreciated.
    You may also notice some audio issues throughout the video, however on further playback this never appears to happen in the same place. I believe this is caused by poor audio quality, and I have a friend of mine working on setting up a lossless source that I will try to recompress with the video before friday, however if someone else might know what is causing this, any advice would be greatly appreciated.
    Here is the current MPEG-2 I have, however for obvious reasons, I do not consider it acceptable as of yet:
    http://www.megaupload.com/?d=IIKYWRXF
    The original export from Premiere is Microsoft AVI Uncompressed, and then attempted to convert to MPEG-2 (I tried multiple settings, they all have the same sizing issues), and as I said before, no matter what I try to do with the avisynth script, it crashes.
    I have even tried taking out every line from the new avisynth script except for the first two detailing the location of the video and audio, however this does nothing, it still crashes.
    I had to convert all my original source avisynth scripts to AVI files (that are massive, as I am editing from 52 episodes of Fullmetal Alchemist: Brotherhood), and so editing the original scripts is impossible at this point, because to my knowledge, that would mean I would have to reconvert them all to AVI, which took over 16 hours, and then that would probably make me have to re-edit this entire video (which if you look at it, based on length and how much work I've put into it: is impossible, especially given the time constraints).
    So anything that I can do to fix this will have to be done to the export from Premiere, unless there is a way to work with the AVI's that I made from the avisynth scripts.
    The source is primarily 16:9 DVD (Fullmetal Alchemist) and very few parts from a 4:3 DVD (Naruto). (You can recognize these parts in the video, it is whenever someone is rowing in a boat during the lyrics "Row Row")
    The avisynth script for all the fullmetal alchemist DVD's is as follows:
    mpeg2source("F:\DVD RIPS\Music Video Rips\Brotherhood\Disc 1 (1-7)\MainMovie\FMA_BROTHERHOOD_P1_D1\FMAB 1-7.d2v", cpu=4)
    ConvertToYV12()
    Spline36Resize(848,480)
    #TTempSmooth()
    FastLineDarkenMod()
    LSFmod(strength=120)
    LUTDeRainbow()
    And the avisynth script for the one Naruto DVD is as follows:
    mpeg2source("F:\DVD RIPS\Music Video Rips\Random\Row Row\MainMovie\ROW ROW\VTS_01_1.d2v")
    TFM()
    TDecimate()
    Spline36Resize(848,636)
    Crop(0,78, 0,-78)
    These recommendations came from what I could figure out from:
    http://www.animemusicvideos.org/guides/avtech31/
    If anyone is curious, the song is "Libera me from Hell", and it is 44100 from what I could tell when I ran it in WINAMP (I converted it from mp3 to wav through WINAMP, if there is a better way that I am unaware of, please let me know).
    I know this is extremely long, and thank you anyone who has taken their time to look through it, it is greatly appreciated.
    The deadline for this is friday (5/20/11), so I need help with this ASAP and thanks,
    Dexter

    Dexter,
    Those "black borders," if they are visible in the Program Monitor, are most likely due to a mis-match between the Source Files and the Sequence Preset.
    If they are only showing up upon Export, then there is likely a mis-match between your Sequence and your Export, and could be either with the Aspect Ratio, or if using non-square pixels, the PAR (Pixel Aspect Ratio).
    I'll defer any commens on AVISynth to the experts here.
    Good luck,
    Hunt

  • Header and Footer Resize Issues

    When I create a Header and Footer look in adobe edge I go to resize the width of the page and the header images and texts resize fine but the images and text in the Footer area do not resize and they end up moving all around the screen.

    Hi Siclaria,
    Can you let us know if negative margins are in effect for the footer elements? (Do you -ve value in the margin field?)
    If something has a negative margin, as you resize your canvas, the element will move to the right instead of the left. In your case, it looks like some elements have negative margin values and some are fine.
    An easy solution is to "Edit -> Add Parent" around those elements. For example: Select "Industries", "Education", "Healthcare", etc. and do an Edit -> Add Parent.
    This makes the "set of elements" move to the left (because they are contained within a parent) and will be closer to the behavior you expect.
    Cheers,
    Anirudh

  • MacMac版 Adobe Illustrator CS2 をインストールしようとすると インストール先の選択 の画面でmacのHDが表示されず 選択ボタンもなく MacOS拡張形式ではないドライブへのインストールはサポートされませんとエラーマークがでます なぜでしょう?

    Mac版 Adobe Illustrator CS2 をインストールしようとすると インストール先の選択 の画面でmacのHDが表示されず 選択ボタンもなく MacOS拡張形式ではないドライブへのインストールはサポートされませんとエラーマークがでます なぜでしょう?

    記載の通りになってしまいますが、HDDのフォーマットを拡張形式にしていないからではないでしょうか。
    また実際にインストールされるOSのバージョン等はいくつになるでしょう、
    CS2は最近のOSでは対応していないので、インストール自体ができません。

  • Text justification issue in crystal report

    Hi,
    I have MVC application with crystal report in it. I am exporting crystal report to PDF, everything except text justification (as we do in MS-Word) is not working. Even in crystal report viewer itself it's not working.
    I have been trying since few days to solve text justification problem in CR. Well I have goggled a lot for this and found different available option to get the thing done. But that didn't solved my problem, I have read many replies on the crystal report discussion regarding the same but no result. I have tried four different versions of crystal report (13.0.5,13.0.6,13.0.9,13.0.13) as I found on the web that justify could work in these versions, but I was shocked when I didn't get anything useful.
    For me it's like justify doesn't work in crystal report by any means. Can any one here tell me who has solved the text justification problem in crystal report. I have attached sample screen shot of word document where in I have specified my requirement of text justification.
    Any positive reply would be highly appreciated.
    -Sunny

    Duplicate thread - Locked. Please continue discussion here:
    Re: Text justification issue in crystal report
    -Abhilash

  • I have an 6 year old mac mini having issues. I can turn it on, get the apple logo and blue screen and nothing else.....help!!

    i have an 6 year old mac mini with issues that started two weeks ago. I can turn it on , get blue screen and turning circle and nothing else......help !

    Hi,
    Have you tried some of these? http://support.apple.com/kb/ht1533
    The first things I would try would be to press shift during start up, this will boot into safe mode.
    I think you'll need to purchase a copy of Snow Leopard to re-install the OS.
    There's another couple of suggestions here; http://support.apple.com/kb/TS1417 where you can boot into single user mode and look at repairing disk permissions if that's the problem.
    I would hope that if you could boot into safe mode or single user mode, then that may automatically rectify your current issue. If not, then I'm pretty certain that a fresh install will be the ultimate answer.

  • BT Cloud App for Mac - Upload freeze issues?

    Anyone experiencing freeze issues during upload sessions? 
    I just downloaded the app yesterday and kicked off an upload of 20K (ish) files.  It progressed nicely through the day, but clearly froze at some point during the night.  Following a reboot I've seen a further freeze in the last couple of hours and resorted to closing/re--opening the app. 

    Hi there, 
    Thanks for replying.  I have had issues with this continually throughout the upload.  I've managed to back-up just over 8Gb since Saturday afternoon, but not without a bit of coaxing (closing and re-starting the app every time it appears to freeze.).  In fact my upload has just finished within the last few minutes.  I've left it on after I've gone to bed on two evenings, but it's clear by morning that the app froze at a much earlier point.  I'm not on Infinity yet, but I do get a rock solid 1Mb upload so whilst the upload rate isn't wild, it would be adequate if not for the reliability issue.  
    Basically the client seems to freeze after a certain time, but there doesn't seem to be any particular pattern in terms of when it happens. 
    I'm really excited about using BT Cloud, having had problems with several other similar services.  I love the fact that it doesn't mess with your local file copy, and that it doesn't expect the user to work 'in the cloud', and that it iteratively looks for changes and just deals with them.  
    The iPad app seems pretty good, other than the wildly random way the sub folders in my Documents folder display.  I have a lot of sub folders.  I know there's a search bar, but still, a simple alphabet order approach would be better. 
    Happy to provide any further input wrt the Mac app stability issue. 
    OS X (10.8.5) 
    Safari 6.0.5 

  • Post Moved Mac Port Forwarding Issues

    Post Moved to Other BB Queries http://community.bt.com/t5/Other-BB-Queries/Mac-Port-Forwarding-issues/td-p/550779
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

    Does this help...?
    http://community.bt.com/t5/Other-BB-Queries/Port-forwarding-and-Loopback-DO-work-YMMV/m-p/538328

  • Masking unwanted sides to drop shadow effect (AI CS2 Mac)

    I've got a problem with drop shadows in CS2 (Mac). Can anyone help? I've applied an offset of zero and a blur of 1mm which works fine but the object is at the corner of the artboard and the shadow spills over onto the pasteboard and leaves a fine line showing when imported into InDesign (at the edge of the graphics frame).
    Can you tell me how I can loose the shadow on the two sides I don't want it? I've tried creating a clipping mask behind to paste it into but I loose the solid area of the object (with the shadow) that I'm pasting in to the mask.
    Many thanks,
    Bob

    I don't see a problem. A clipping mask should work, but perhaps I might not be following the description in your second paragraph correctly.
    Could you clarify, preferably by providing a screenshot that illustrates what you get and what you want to achieve?

  • Photoshop CS2 (Mac) bricht bereits beim Starten ab

    Hallo,
    arbeite mit CS2 (Mac). Photoshop bricht seit Kurzem bereits beim Starten ab. Auch Neuinstallation hat nichts gebracht. Adobe konnte mir "nur" mit einer englischsprachigen Anweisung zur Fehlerbehebung aushelfen mit der ich, sprachlich bedingt, leider nicht klar komme :-(
    Kann mir jemand weiterhelfen? Ein Fehlerbericht liegt mir vor.
    Gruss OG

    Hallo,
    habe in einem anderen Forum die Loesung bereits entdeckt. Hatte mit meiner Epsonscan-Software zu tun. Dabei ist ein Crash aufgetreten. Hatte daraufhin diese Software deinstalliert. Heute nun eine neue Version installiert und jetzt lauft auch Photoshop wieder :-)
    Gruss OG

  • Text tool issue resolved with new upgrade

    It appears the text tool issue has been resolved with the new upgrade, now you don't have to use the transform function to move titles
    now the text tool converts to the move arrow tool as expected.
    They said it was a Lion's bug.
    Thanks,
    AppleLou

    If it's a "Mobility" card then chances are it's in a laptop, and many laptop manufacturers are required to be the source for driver updates.  You might have
    to check with the computer maker.
    If there's not a driver update for it, it's possible you could try downgrading the driver to an older version if one can be found.
    What operating system are you running (XP, Vista, 7, 32 or 64 bit)?
    I see they have a new release for your card for Vista and Windows 7 32 bit, for example, here:  http://support.amd.com/us/gpudownload/windows/Pages/radeonmob_win7-32.aspx
    -Noel

  • Mac/forfox/ebay issue

    I am having a problem with ebay.de on firefox running on a mac.
    It started when you developed and launched the 4.0. It doesn't show the ended button. only when I reload it appears for a split second. If I open it in a external window its working and even the button is shown. But not in the main window.
    It seems to be a Mac/Firefox/Ebay issue
    Best regards
    Brian

    This is what Im talking about

Maybe you are looking for

  • How can i link purchases from old apple id to new apple id?

    How can i change old apple id and purchases to new apple id?

  • IMac 20 inch early 2008 getting slow

    My iMac 20 inch early 2008 is getting slow. I have attached the EtreCheck report. Any suggestions? how about memory upgrade. Or is it time to just start lookin for a more recent Mac.... Thank you so much! EtreCheck version: 1.9.15 (52) Report generat

  • PDF view not working in Safari

    When I try and open a PDF from a web site in Safari, I get a black screen. Seems like the Adobe plug in is not working. What can I do?

  • Error in adapter module - jndi lookup can't find the class

    Hi gurus, I have a problem with my adapter module, the error from the RWB is: Error: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of KFCProc. My EJB-JAR looks like this:   <?xml version="1.0" en

  • Save for previous changes original source

    I've been having a couple of issues in LabVIEW 2009 when I try to save for previous to v8.6. One problem is a message, after it starts cranking, that it could complete, there was a file area, either disk full (40GB left) or permissions. Then when I t