Printing JList - font problems

i am using a class that takes a Component and prints it.
in windows:
when i send a JList, it prints using the standard java font. if i set the LookAndFeel to the DefaultOS, then if i set font that is what I am assuming to be the System default (in windows this seems to be "sansserrif" size 11).
in mac os:
when i try to print the JList it spits out a different font and much larger font size, so it's throwing off my usable print area. i tried setting the font of the JList to the "sansserrif" but it had no effect....it's still printing using the default mac font. i had my gui show me the jlist...it looks identical to how it looked in windows....until i print. method used: jList.setFont(new Font("sansserif", Font.PLAIN, 11));how do i override this with my own font? and why would it let me override it in windows? seems fishy to me... (i hope i was somewhat clear...i think im confusing even myself at this point)

in case anyone was interested...i was able to get cross-platform printing to work "good enough." although not identical, these two variations produced nearly the same result (the only difference was that the cell heights weren't quite the same... i think 10.5 for the mac version would match 14 for windows perfectly, but only integers are accepted as parameters for the setFixedCellHeight() method).
i also had to fix the print graphics translation to set a 1" top, left margin in stone...the mac os wanted the margin to be just a fraction of an inch.
//for 8.5" x 11" pages:
jList = new JList(theModel);
    jList.setLayoutOrientation(JList.VERTICAL_WRAP);
    jList.setVisibleRowCount(-1);
    if (windows)
      jList.setFont(new Font("sansserif", Font.PLAIN, 11));
      jList.setPreferredSize(new Dimension(620,860));
      jList.setFixedCellHeight(14);
      jList.setFixedCellWidth(210);
    else //mac
      jList.setFont(new Font("sansserif", Font.PLAIN, 8));
      jList.setSize(new Dimension(470,673));
      jList.setFixedCellHeight(11);
      jList.setFixedCellWidth(155);
    }again, this was sending a 3-column JList as a component to a printing function.

Similar Messages

  • MICR font problem for check printing in ECC6

    Hi All,
    I am working of the re-deployment project. Here we are just migrating the objects from  4.6c to ECC6. I am facing the problem with SAP Script for check printing. It is working fine in 4.6c,but it is not working fine in ECC.
    We are using  HP 8150 printer with TROY magnetic chip and toner. It is working fine for 4.6C, but not for ECC6.
    We are using "A" character for "Transit" and "C" character for "On as" in SAP Script. But during printing preview time it is not formatting it in MICR font.
    I am working with basis team for font code page 4004. I came to know, it is showing character set in 4.6c with spool administrator tab character set, but this tab page does not showing any character set.
    But according basis team, it is existing in ECC. If we will check through SCP it is showing unicode converted code page.
    In 4.6c we are using Zee printer driver with Zee family fonts(ZMICR and ZSIGN) but in ECC we are using MICR_E(SAP provided MICR font) in TROY provided printer driver.
    I have also come through the SAP note 94233 for MICR printing.
    Same problem we are facing with digital signatures. It is not converting digital signature in graphical signature at MICR printer level.
    Any help would be appreciated...........!
    Thanks
    Sharanjit Singh

    HI,
    Copy the file into Desktop.(font file is available in your local drive: C:\WINDOWS\Fonts
    Copy Arial file into ur desktop or some other location other than windows, and upload it.
    it will work, i did the same.
    Regards
    Aeda

  • Font problem in reports 6 character report

    hi...
    i have this character report. i have set the font of all objects in the report to Courier, point size 10. the report also has a number of bozes and lines i have drawn.
    now the report displays perfectly from the previewer and also prints perfectly...as long as i run the the report from within Report Builder. When i try to run the .rep from Forms using run_product, the font goes haywire. it displays everything in some Lucida font and my boxes and lines disappear.
    anyone has any idea ?????
    thanx in advance....
    ciao
    venkat

    I have found this reference on a search of oracle:
    http://download-uk.oracle.com/docs/cd/B14099_19/bi.1012/b14048/pbr_trouble.htm
    Section D1.11 says this is a know problem and to copy one registry entry to another, however, this entry does not exist on the Windows 2003 server this is running on.
    Any ideas?
    D.1.11 Printing and Font Errors When Using In-process Server
    The in-process server does not recognize the default printer of a user currently logged on to Windows. This is because the service that runs the in-process server is logged on as the Local System.
    Problem
    Any of the following:
    * Printing to default printer fails with the REP_3002 error. For example, the following command:
    http://myrepsrvr.us.oracle.com:7777/reports/rwservlet?report=myrep.rdf&destype=printer&desformat=html
    results in the following error: Error:"REP-3002: Error initializing printer. Please make sure a printer is installed."
    * Deploying reports containing Oracle6i Graphics (OGD) graphics causes Reports Server to stop responding.
    * Font alignment problems in a PDF file output from an in-process server.
    Solution
    To work around all these issues:
    1. Open the Windows registry using a registry editor (for example, regedit.exe). Create a backup of the registry before you edit it.
    2. Navigate to the following key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Windows
    3. Copy the string value of Device for this key. For example: \\MOWGLI\sierra,winspool,Ne02:
    4. Navigate to the following key: HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Windows
    5. Paste the Device value copied from HKEY_CURRENT_USER (the string value of Device for this key will be empty).

  • Font problem in Classic

    I posted this over in the Classic forum...but it's rather dead over there and I fear it may not be seen for a while...so here's the problem...
    I'm running Quark 4 in Classic and having trouble with fonts. Though the fonts are on my computer, and in the OS 9 fonts folder, they won't print correctly. If I use the same printer and print from Quark on my old iMac (running OS 9) the fonts print and look fine.
    I read another thread in this forum that mentioned the fonts must be OS 9 fonts (and must not have been run through suitcase or a similar managing program???). So, on the off chance that my husband or I just took OS X fonts and copied into the OS 9 folder, I copied the OS 9 fonts from the iMac (I just grabbed everything in the Frutiger family, as it was one that I had an issue with) and then dumped them into the OS 9 fonts folder on my iBook. I restarted Classic mode in order to make the fonts available to the OS and then printed again. The font still prints all pixeled-looking.
    Can anyone tell me what I'm doing wrong? Do I need to find the original font disc and install them from the disc?
    Any help would be most appreciated!!!!!

    Hi Diane,
    Glad that the tip helped to "solve" the font problem!
    Not sure why you are printing the file info at the bottom of the page. It does sound as if it is a print setting somewhere though. Hopefully someone has a clue for you.
    Again, thanks for the "solved" star and if I can think of something else for you to try I'll post back. Let us know if you figure it out.
    good luck,
    littleshoulders
    edit:
    "In lieu of an answer...I tried changing the paper size to legal and it's not on the last copy I printed."
    Ooops, I misread your reply, and see that by changing the paper size it corrected the issue.
    Message was edited by: littleshoulders

  • Font problem in reports, IAS Version:  10.1.2.2.0

    Dear all,
    I have installed about 20 applications servers on windows but never met this problem before.
    I am facing the problem in viewing the report output on the Windows 2003, Oracle Application server
    Installation Type: Forms and Reports Services
    Version: 10.1.2.2.0
    I am using Arial 10 as default Font of the report,
    but in output I am getting another font.
    Please Help!
    Regards,
    Tobias

    I have found this reference on a search of oracle:
    http://download-uk.oracle.com/docs/cd/B14099_19/bi.1012/b14048/pbr_trouble.htm
    Section D1.11 says this is a know problem and to copy one registry entry to another, however, this entry does not exist on the Windows 2003 server this is running on.
    Any ideas?
    D.1.11 Printing and Font Errors When Using In-process Server
    The in-process server does not recognize the default printer of a user currently logged on to Windows. This is because the service that runs the in-process server is logged on as the Local System.
    Problem
    Any of the following:
    * Printing to default printer fails with the REP_3002 error. For example, the following command:
    http://myrepsrvr.us.oracle.com:7777/reports/rwservlet?report=myrep.rdf&destype=printer&desformat=html
    results in the following error: Error:"REP-3002: Error initializing printer. Please make sure a printer is installed."
    * Deploying reports containing Oracle6i Graphics (OGD) graphics causes Reports Server to stop responding.
    * Font alignment problems in a PDF file output from an in-process server.
    Solution
    To work around all these issues:
    1. Open the Windows registry using a registry editor (for example, regedit.exe). Create a backup of the registry before you edit it.
    2. Navigate to the following key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Windows
    3. Copy the string value of Device for this key. For example: \\MOWGLI\sierra,winspool,Ne02:
    4. Navigate to the following key: HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Windows
    5. Paste the Device value copied from HKEY_CURRENT_USER (the string value of Device for this key will be empty).

  • I created a brochure in pages and exported it to a pdf format. The pdf looks and opens perfectly using preview but when opened in adobe reader (which my printer uses), fonts look odd, transparencies don't display...etc. Tells me error exists on page?

    I created a brochure in pages and exported it to a pdf format. The pdf looks and opens perfectly using preview but when opened in adobe reader (which my printer uses), fonts look odd, transparencies don't display...etc. Tells me error exists on page?

    Does this essentially mean there is no way to fix this problem on my end? It's a pity because the design and branding of my brochure will suffer if I remove transparencies and use different fonts. It also concerns me moving forward because it means the quality of print on my pieces will be significantly lower because most commercial printers use Adobe products.

  • PDFMaker font problem

    Can anyone offer any advice on how to debug a font problem?
    I am using a (shareware) symbol font on my Windows XP system. It works great in FrameMaker, and comes out perfectly in Frame-generated PDF files.
    Unfortunately, I also have to convert Excel spreadsheets to PDF, using the same font. When I generated those PDF files with PDFMaker, the font characters all show as little squares. I checked MS Word as well, and it has the same issue.
    I've checked the font properties in the generated file using the TouchUp Text tool in Acrobat - the font is recognised and embedded. If I try to make changes, I get this error message:
    "Some of the characters in the current font are not available, the missing characters will be replaced by place holder characters (maybe dots '.').
    "A work around to this is to select another font which contains the characters in the TouchUp Properties dialog.
    "Proceed with replacement?"
    I'm using Office 2007 under Windows XP Professional. The font is shareware and unsupported. I'd bet my bottom dollar that the problem isn't in PDFMaker, but I don't know a whole lot about fonts, and I'm not sure how to debug this.
    Can anyone offer any advice?

    If you go to the general tab in the Adobe PDF printer properties, there is a button for printing preferences. Select that and go to the Adobe PDF Settings tab. There should be a check box for leaving the log file intact there. You can also simply print to the Adobe PDF printer with print to file selected. Then open the file in Distiller and watch the messages created (these steps are automated if you do not print to file).
    You can also check the fonts in the PDF (use ctrl-D, font tab). If they are embedded, that information is stated in parentheses. If there is no statement of embedding, then it did not get done. That is not necessarily an error if the job settings are not set to embed the font.

  • Fonts don't print with Font Book

    Hi,
    Fonts I load in Font Book are looking fine on screen but they don't print - I have to put them directly in the Fonts folder (in the System folder) to do so. My printer is a Lexmark E120n is that matters.
    What should I do to get them to print using Font Book?
    Thanks for your help!

    It turns out the problem was with that certain printer. The floor model and other models and makes works fine. the Brother support person was an idiot, and would not think outside the box. Luckily the guys at Apple and Office Depot did.

  • Leopard and font problems

    I have had my fonts default to courier when
    printing, just like the others who have posted notices in recent
    weeks. I wish I had never installed Leopard because I use FH
    daily-- I don't understand Illustrator even though I have it. I
    THINK in Freehand. I know I can change all my fonts to paths or
    print form the PDF preview mode BUT I don't want to have to do
    that. Anyway, I have another issue. I do a newsletter once a month
    and the editor sends me the articles cut and pasted into eMails. I
    have copied, cut and pasted the articles into FH beautifully up
    until Leopard. Now I get all those crazy weird characters.
    Apostrophes become "i"s, quotation marks become exclamation marks
    and spaces get crosses in them. I am ready to scream! I don't want
    to reinstall Panther but I will if I can't fix these issues.
    Anybody got any answers? is calling Adobe Customer Support a waste
    of time?

    For the garbled font problem you might try removing font
    cache files.
    FontNuke will do the job. You can download the latest version
    here.
    http://www.macupdate.com/info.php/id/21536
    Judy Arndt

  • "font" problems when converting InDesign file to negative

    the printing service we use for our college newsletter, which is done in InDesign CS3, says he is having "font problems" when he turns the file into a negative (the master used for printing paper copies of the newsletter). I use only a standard font, "Times," in various sizes.
    he did not have this problem with InDesign CS2, and he is as yet unable to explain exactly what the problems are but said there are 3 pieces of equipment involved that each contribute to the problem: old vs new operating systems (OS) in RIP unit and workstation to newest applications and older RIP unit. (I haven't a clue what any of this means...)
    he has asked we create an "outline" of the InDesign file before sending it and believes doing that may help. however, when I create an outline of the document, all of the font turns bright red-- is this what is supposed to happen or am I doing something wrong?
    can anyone help me figure out how to help the printer?
    FA NEWS editor
    (linda)

    The .sitx file extension is a Stuffit executable, a way of compressing files so that they take less time to transfer. This has nothing to do with your problem.
    What I'm recommending is that you Export PDF (File > Export > Adobe PDF). Choose the Press Quality preset and send the resulting PDF to your printer. Scott's suggestion will give you a PDF with outlined type, but before you go that route, try a Press Quality PDF, which will have live type and embedded fonts.
    The best reason for sending PDF to your printer is to avoid font problems.
    Ken

  • How to uninstall Snow Leopard? major font problems in iWork, iLife

    All iWork and iLife apps have shocking font problems... so much so that I need to uninstall Snow Leopard and wait for Apple to sort it out. Does anyone know the best way? And how is it possible that these problems are occurring with Apple's inhouse software? Other stuff seems to be working OK so far for the most part. For a bit more detail on my problems, including sample images:
    http://bit.ly/309G0o

    Snow lizard cost me $27.000.00 in unusable fonts. We installed snow lizards (what I'm calling it now) and lost 934 fonts. Say 40 were bad fonts and 896 were type 1 postscript. When I explained to the tech person how big this was to the print community, he had no clue. - I'm still waiting to hear back. I have a case number but now I read from another post they knew Snow Lizard would do this. At 30.00 per font that is almost $27,000 to replace what they thought wasn't important. But in the print world of design this is huge. Every layout and ad that needs an update - which take a few minutes is a whole rework. They have no clue what business a mac computer is in or they don't see us as important.
    I did find if I load those fonts or the font missing into the InDesign font folder I can get the old ad to make it to pdf. But photoshop and illustrator, I'm screwed. And if I didn't outline the type in illustrator - it's gone. I asked the tech guy if I can go back, and undo this slimy lizard and he said probably not if we do backups. We do backups every hour - this is the print business. I feel forsaken. I've been with apple for so many years.

  • Can PS CS6 cause font problems in In-Design CS4?

    When I was running just Adobe Creative Suite 4 I didn't have any problems with the In-Design program. After loading Photoshop CS6 and Illustrator CS6, when trying to print in In-Design CS4, I just get the spinning beach ball!
    I suspect a font problem induced by CS6, but could be off base on this one. I'm running a 2010 Mac Pro. If it's a font problem, whats the best way to attack! Any suggestion will be helpful. Thanks
    Jim

    Do you have any 3rd party fonts installed?

  • Printer default font weight

    How can I set the printer default font weight to bold, so that when it prints anything it comes out bold?  The printer is an HP4200n

    Thank you for the idea. Unfortunately it didn't work. I ran Font Finagler and restarted and tried adding the printer with the correct driver again and got the same garbled result.
    Considering that the drivers for the other printers I have connected print the fonts correctly and that a generic driver for this printer prints the fonts correctly, the problem definitely seems to be with the driver. But how then would it work fine on two other computers??
    Any other ideas? Anyone?? Thank you!

  • Pages 08 fonts- problems with Arial, Times New Roman - how do I repair them?

    Pages 08 fonts- problems with Arial, Times New Roman - how do I repair them?
    Using 10.6.8 on MacBook Pro
    Mikeaaa

    I am running Snow Leopard. Transferring the same texts to TextEdit has no problems, so this is a Pages problem, I think.  Corruption of Times New Roman and Arial fonts, I suspect, but where? and what do I do about it? I just need to be pointed to a source of advice, I think.
    Thanks
    Mikeaaa

  • PDF printer has a problem with Safari in "Reader" mode in Windows7

    As shown in the image above. When I try to use the PDF printer to print out a web page in Safari "Reader" mode, the lines near the bottom of each page get squeezed like this. There is no problem with XPS printer. I guess this problem is because of some incorrect settings in Safari or the PDF printer?
    My system is Windows 7 Pro. I am using Acrobat X Pro. The page I am trying to print is http://en.wikipedia.org/wiki/Electronic_band_structure. This problem only happens when the webpage is adjusted into "Reader" mode in Safari.

    Many thanks for your reply!
    I am sorry, I did not make my question clear. I would like to save some web pages only in "Reader" mode, because in this mode all the advertisements are filtered out and the pages look much nicer than the origional layout.
    I first let Safari to active "Reader" by clicking "Reader" button.
    Then I click "Print" button and select Adobe PDF as the printer.
    The problem is the PDF file has something wrong (shown above), and I would like to know how to avoid this problem.

Maybe you are looking for