Strange differences in printing between 1.5 and 1.6

I've been successfully running for some time now an application which prints CD labels based on information in a database.
The front label is fairly simple, dividing a square area into four rectangles, the top left and bottom right are squares of different sizes, the top right contains text (artist name(s)) printed horizontally, and the bottom left contains text (album name) printed rotated 90 degrees clockwise, both text fields centred both horizontally and vertically, with respect to the rectangle orientation. The application lays out a print preview panel, and if I'm satisfied with it I invoke a print function, which uses exactly the same code as the preview.
This has been working fine for a year and a half (for in excess of 600 labels) under Java 1.5. Now, using 1.6, the print preview works OK, after modifying the code for problem#1, but the printed output gets the bottom left area wrong. The reason I found problem#1 was that I test whether there is room for all the text on one line, and if not split it. I do that using FontMetrics.stringWidth(String). Under 1.6, when an affine transform is applied to rotate the rectangle, stringWidth returns a negative number - on 1.5 it was positive.
After changing the code to take the absolute value of stringWidth, the text in the rotated rectangle is not centered vertically, and seems to be
possibly centered horizontally, but in a much larger rectangle, so that most of the text is invisible, being outside the visible rectangle.. If I have to split this rectangle it's even worse, the text falling completely outside the rectangle, and the two lines being aligned according to different widths, quite apart from being presented in reverse order.
If stringWidth is behaving correctly, I'd like to know what the explanation is, and why it behaves differently depending on whether I'm creating a print preview or actually printing.
As a matter of interest, I just triedchanging the orientation of the bottom left rectangle to rotated 90 degrees anticlockwise - print preview exactly as expected, same displacement on the printer. I'm having to keep a copy of 1.5 just for this application, and having to remember to change my PATH every time I run it.
A similar application which writes the tray inserts, which produces, for the spines, text rectangles in BOTH rotated orientations, AND 180 degree rotation, works without a problem in 1.6.

Yes, of course, I'm running on the same system. My testing technique involved parallel tests in two command prompt windows, the only difference between the two being tha PATH environment variable.
I have resolved the problem by using Math.abs() for all the invocations of stringWidth, getHeight and getDescent for my rotated rectangle.
I'd still like to know where it is described that the return values for these methods are negative when the rectangles are rotated 90 degrees, and why.
I have found another resolution to the problem, by doing all stringWidth, getHeight and getDescent processing before rotating. The negative values only seem to occur when rotated �90�.
Message was edited by:
digby

Similar Messages

  • What is the difference, if any, between Photoshop CS6 and CC?

    What is the difference, if any, between Photoshop CS6 and Photoshop CC?

    Thank you, Garima. This helps!
    Larry
    Date: Thu, 13 Feb 2014 14:14:08 -0800
    From: [email protected]
    To: [email protected]
    Subject: What is the difference, if any, between Photoshop CS6 and CC?
        Re: What is the difference, if any, between Photoshop CS6 and CC?
        created by Garima.J in Photoshop for Beginners - View the full discussion
    Hi LarryMeikle
    The biggest difference between Photoshop CS6 and Photoshop CC is that Photoshop CC is subscription-based--you have to subscribe to Adobe's Creative Cloud service to use it.  Also, Photoshop CC includes new features that were not in Photoshop CS6.
    Let us know if that helps.
    Thanks!
    Garima
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6118812#6118812
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6118812#6118812
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6118812#6118812. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Photoshop for Beginners at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • SAP SD--Difference of upgrade between SAP4.7 and ECC6.0

    Hi friends,
    Somebody can pls tell --Difference of upgrade between SAP4.7 and ECC6.0 in terms of sap SD module or any links for this.
    Rahul

    Hi Rahul,
    Your question is a little general...Maybe you could go to sap help portal to search for the documentation for upgrading to 600.
    As I know, we have some new functionality in release 600. For example, shipping point determination with storage location, automaticly outbound delivery creation after saving stock transfer order...
    Also the screen is different for most list transactions like VA05.
    Regards,
    Smile

  • 3.     What is the difference, if any, between a Workset and a Role?

    3.     What is the difference, if any, between a Workset and a Role?

    Hai
    Pls check these links
    http://help.sap.com/saphelp_nw04s/helpdata/en/4f/bceaffeb8c114ebef8255b63079c7c/frameset.htm
    http://www2.sapdesignguild.org/resources/ma_guidelines_3/introduction/what.html
    Reward points if helpful
    Regards
    Nissy

  • Strange difference in prints from Photoshop and InDesign

    Hello,
    Recently I upgraded to CS5 but at the same time upgraded my good old Power Mac G5 to a 27" iMac i7.
    I also traded my Epson 7600 for an Epson 9800. So obviously many things changed at the same time.
    Now I created a new profile for my printer paper and noticed the folowing strange thing:
    When printing from photoshop the prints are consistently way too dark.
    When printing from InDesign the same photo it is perfectly as it should be and looks on screen.
    Then I checked printing from Preview and again way too dark, same as in Photoshop
    I applied the same printerprofile to all printjobs
    During the profiling I also printed the testpage from the Datacolor Spyder 3 software, which was perfect
    printing the same testpage from Photoshop: way too dark.
    I don't have a clue to where things are going wrong.
    Is it a bug in Photoshop,but why then also in Preview?
    is it the way the printerdriver handles things? But then why not in InDesign?
    Anyone any ideas?
    Regards,
    Hans

    Have you gone into the "Print Settings" dialog and turned off color matching in the Epson portion of the settings?
    Are you running the most recent version of the driver? There is a combination updater to version 7.0 available as the first result at:
    http://www.google.com/#hl=en&source=hp&q=epson+common+updater+v7.0+9800&btnG=Google+Search

  • Differences in NLS_LANGWE8ISO8859 between Oracle 8i and Oracle 9i or higher

    Are there any differences in NLS_LANG WE8ISO8859P1between Oracle 8i and Oracle 9i or higher?
    please, there is a document that explains what.
    thank you very much.

    Ok,      
    I want to know whether there was any difference when using this NLS_LANG between 8 and oracle 9.
    I read many documet about unicode, but i want to know this question.
    If NLS_LANG is a standard there isn´t changes between the to versions.

  • Difference in Amount between BI Report and GL Account

    Hi,
    Regarding the difference between BI report and GL,
    We found duplicated records in the data source 0FI_GL_4.
    (The difference was in an another account which did not match with the GL.)
    1.Account: 123456
      G/L Balance: $430,382.41
      BI Report:     $432,211.10
      Difference:     +$1,828.69
    u21D2In data source, there are a duplicated record for each of two accounting document below.
    Acct doc. 1900000900 item#2    $2,623.64
    Acct doc. 1900000901 item#2      -$794.95
    2.Account: 7891011
      G/L Balance: $92,301.92
      BI Report:     $78,341.42
      Difference:  -$13,960.50
    u21D2On data source, there are a duplicated record for one accounting document below.
    Acct doc. 1900000902 item#2   $13,960.50
    What could be the cause of this? How can I solve this issue?
    Thanks

    Hi,
    Since I already know where and what the duplicate amounts are in the PSA, Can I do the following:
    1. Delete the Amounts (and change them to 0) in the PSA
    2. Delete that particular load from the Cube
    3. Now that the duplicate amounts dont exist in the PSA, Re-Load it back to the Cube using DTP
    Would this work? Is this even possible?
    Thanks

  • Color difference in prints between LR vs printer managed colors

    Hi,
    I get a slight difference in color in my prints my when I use LR prifile vs Canon printer managed. The Canon is much truer to what I see on both monitors which, btw, are calibrated. LR throws in a slight magenta cast. Is there a way to correct this?

    Ken.Clunis wrote:
    I am now using LR5 but the magenta color cast also happened in LR4 forcing me to use the Canon managed paper profiles. I would like to use the Red River papers instead of Canon papers and the profiles for them appear in LR but when I turn off the Canon manged color and use the LR manaed color, it gives the print a magenta cast, and, BTW, the same thing happens when I print B/W from LR. The prints have a nice pinkish cast. Actually I never use B/W from LR but print using Canon "grayscale only" setting.
    I am using an iMac with a second display (Cinema) - both of which were calibrate with Spyder 4 Pro. The printer is a Canon Pixma Pro 9000 II.
    Not sure what you mean by 'Canon managed paper profiles' but I assume you are using Canon paper with profiles they supplied. They may just suck <g>. If you use Red River, you'll have to use the profiles they supply for that paper. You'll have to set the printer settings identically to how the profiles were built so see if you can find specific instructions for either paper/profile combo and set them as instructed.

  • What is the major difference in MM between R/3 and ECC?

    what is the major difference for MM module if any between R/3 and ECC?

    Hi,
    Pickup list - Batch where-used list display in transaction MB56
    Usability enhancements for transaction MIGO for the posting of goods movements
    New report : display list of invoice documents (MIR5)
    Requirement prioritizations in materials management
    Mass maintenance of outline agreements
    Commitment plan for purchase contracts
    Availability check in "Enjoy purchase order and requisition"
    External services: putting service items in the purchase order on hold (changed)
    Customizing transactions OX18 replaced by view
    Goods receipt: new movement types in inventory management
    Prepayment of invoices
    Purchasing accounting information to the former SAP Business Information Warehouse
    Automatic settlement of planned delivery costs with evaluated receipt settlement (MRDC)
    Parking service items
    Report MB5B : Stock on Posting Date
    Stock Transfer Between Storage Locations

  • Difference of balance between Sub Accounting and General Accounting !?

    Hi,
    i have a difference between the sub and the general accounting, the correct balance is in the general accounting.
    When i show the balance of the sub accounting with the Tcode FK10N i find that the difference comes from the last year, there is a balance of 10.000 Euro that is already cleared but it is still apearing in FK10N and in other Tcodes of sub accounting.
    Please how can i solve that ?
    Regards.

    F.07 is the Balance Carry Forward; it copies the suppliers (and customers) balances from one year to the next one (tables LFC1, LFC3, KNC1, KNC3).
    You should check that the opening balance of one year is the same as the closing balance of previous year. If it is not true, F.07 should repair the data in the tables.

  • Differences in SQL between Report Designer and RDC

    Post Author: GarethThom
    CA Forum: Data Connectivity and SQL
    Using Crystal Reports v10 SP6, we have created a report that can show a retrospective aged analysis of supplier invoices based on a Comparison Date parameter.  The data is in a Microsoft Access database.  In the Record Selection Criteria we have the following criteria:
    {Transactions.TranType} in &#91;"SA", "SO","ST", "SN", "SR"&#93;And {Transactions.InvoiceDate} <= {?ComparisonDate}And ({Transactions.PaymentDate} = CDate(0,0,0) Or {Transactions.PaymentDate} > {?ComparisonDate})
    The idea being that we want all Invoices (of a certain type) dated up to and including the Comparison Date parameter and where either the Invoice has not yet been paid or was paid after the Comparison Date, i.e. the outstanding/unpaid Invoices at that point in time.
    When run within the Report Designer everything works perfectly.  When we view the SQL Query used to bring the data back it says:
    WHERE  (`Transactions`.`TranType`='SA' OR `Transactions`.`TranType`='SN' OR `Transactions`.`TranType`='SO' OR `Transactions`.`TranType`='SR' OR `Transactions`.`TranType`='ST') AND `Transactions`.`InvoiceDate`<#2008-05-07 00:00:00#
    The PaymentDate part of the criteria is obviously evaluated within Crystal once the data has been retrieved from the database.
    However, when run through the RDC using VB6 SP6 the following SQL Query is used:
    WHERE  (`Transactions`.`TranType`='SA' OR `Transactions`.`TranType`='SN' OR `Transactions`.`TranType`='SO' OR `Transactions`.`TranType`='SR' OR `Transactions`.`TranType`='ST') AND `Transactions`.`InvoiceDate`<#2008-05-07 00:00:00# AND ((`Transactions`.`PaymentDate`>=#1899-12-30 00:00:00# AND `Transactions`.`PaymentDate`<#1899-12-30 00:00:00#) OR `Transactions`.`PaymentDate`>=#2008-05-07 00:00:00#)
    Which returns no records.
    The reason we are using CDate(0,0,0) to check for an empty date is that if you have "Convert Database Null Values to Default" ticked it does not seem to handle using IsNull({Transactions.PaymentDate}) in the Record Selection Criteria - no records are returned (in the Report Designer) even though if you copy the SQL Query and run in directly in the database it returns records.  As soon as you untick the flag the correct records are returned.
    So, is there a fix for this problem or does anyone have any alternate ideas as to how this "null/empty date" scenario could be handled?
    Thanks,

    Please check the below links to understand difference between Query designer and report designer:
    http://help.sap.com/saphelp_nw70/helpdata/EN/f1/0a5680e09411d2acb90000e829fbfe/frameset.htm
    and
    http://help.sap.com/saphelp_nw70/helpdata/EN/c8/2d1442505d5033e10000000a155106/frameset.htm
    Nitika

  • I cannot send emails; looks like my smpt parameters are wrong; what difference is there between my incoming and outgoing servers and should they have different parameters (ID and password)?

    I cannot send emails; looks like my smpt parameters are wrong?? What difference between the incoming and out coming servers? Do I have different user names and passwords?
    I would appreciate some assistance
    Thanks

    I cannot send emails; looks like my smpt parameters are wrong?? What difference between the incoming and out coming servers? Do I have different user names and passwords?
    I would appreciate some assistance
    Thanks

  • How much of a difference is there between 2 GB and 3 GB RAM in Macbook Core Duo 2 GHz

    I upgraded the memory in a Macbook Core Duo 2.0 to 2 GB, as per Apple specs, but now find that the unit could handle 3 GB.  Is there a significant difference between 2 GB and 3 GB running Tiger and for light uses such as word processing and web surfing?  Would it be worth the expense upgrading to 3 GB?  Also, could such an upgrade be done with a 2 GB stick plus a 1 GB stick or do the two sticks have to be identical?
    Thanks.

    I'm assuming that you have a model 2,1 since that's the only one with the 3gb limit. Since the difference between 3gb and 4gb is only $12 it's up to you. http://eshop.macsales.com/shop/memory/MacBook/DDR2/
    OWC tests have found that there is a slight speed increase with having two 2gb sticks in rather than one 1gb and one 2gb. Your model is in the gray lines at the bottom of the graph. http://eshop.macsales.com/shop/Memory_Benchmark/Apple_MacBook/
    You can put two 2gb RAM sticks in your model 2,1 but it can only use 3,3gb. This is a hardware limitation and cannot be changed. http://en.wikipedia.org/wiki/3_GB_barrier
    To see which model you have go to the Apple in the upper left corner and select About This Mac, then click on More Info. When System Profiler comes up check the Model Identifier.

  • Difference in currency  between customer order and accounting document

    Dear gurus,
    While I am cretaing customer order SAP calculates currency from Exchange Rate="B" at OB08 screen. This situation results because of Currency type in customer master data. But in the accounting document SAP calculates currency from Exchange Rate="M" at OB08 screen. As a result; this is causes problems.
    I want SAP to calculate currency which is  entered in customer master data. It might be M,B  etc.. According to the CUSTOMER.
    How can I fix this issue?
    Thnks regards,

    Hi,
    This is a complicated scenario.
    There are 3 currencies involved in any transaction
    Document currency (from customer master)
    Condition type currency (from condition record)
    Local currency (Currency of company code )
    During account posting in FI, the document currency will be converted into local currency and posting in local currency will be made. Also there is a posting in document currency also. For the conversion between document currency and local currency, by default M is used. For other exchange rate types, it should be enabled by means of user exits in sales order or invoice. The exchange rate which is available in invoice for this conversion (doc currency to local currency) is copied to acctg documnent. It is not freshly calculated in accounting document.
    Conversion from customer currency to document currency happens either through M or through the customer master exrate type.
    Now you decide how you want to handle the scenario. Customer currency to document currency can be done as  per the customer master you maintain. But if you want to convert document currency to local currency (provided customer currency and doc currency are same), then only M will be used in standard.
    If you are in a scenario where all the 3 currencies are different, then the way by which the system calculates the exchange rate is through an indirect triangulation process, which is little complex. In this case, it will use only one exchange rate type. Hence this scenario in your case will have problem. If you test all these scenarios, you will come to know.
    We faced this problem an year ago and then finally realised that it is not possible to use two xng rate type in one SD cycle. This is because the exchange rate type is stored in VBAK, VBRK and so on and hence it is not possible to use two xnge rates or the rate maintained in customer master throughout the cycle. The sales transaction is controlled by Cust master and FI transactions are controlled by M

  • Does a DAC make a lot of sound difference when connected between an iMac and a good receiver?

    I have one of the better Yamaha receivers plus two Cerwin-Vega bookshelf speakers plus an Infinity sub that sound pretty good playing the AAC(mostly 256) files on my iMac. I've heard that a DAC can really make a difference. Can anyone confirm that and possibly even make a DAC recommendation?

    The DAC manufacturers and, I am sure, enthusiastic audiofiles, will make all kinds of claims that an external DAC makes a huge difference.   I urge some caution however because you would necessarily also have to have high end audio equipment (amp, speakers & wiring) as well as a near-perfect environment (studio, anyone?) in order to hear a meaningful difference just because of the DAC.   It's not just a matter of having a DAC, it's the entire audio setup that makes the difference.
    IMHO if your system is at home and you have a reasonably good amp & speakers, the analog output from your Mac will deliver excellent performance and you would be hard put to discern a difference by putting a DAC in the audio chain.  At least, that's been my experience.
    Also, if your Yamaha amp has optical digital input, you can connect it directly to your Mac's audio out (combined headphone + optical digital output) ... without needing a separate DAC.

Maybe you are looking for