Printing monospaced in bold

Hello,
with a GUI it's easy to set the font to Monospaced-bold in the paint(Graphics g) method:
g.setFont(new Font("Monospaced", Font.BOLD, 12));But in the print(...) method "Monospaced" is output correctly only when set to Font.PLAIN. Font.BOLD becomes proportional. It seems that for printing bold there must be an extra fontface installed in the fonts. Can somebody confirm or dispute this assumption?
Regards
J�rg

I'm using Java SDK v1.5.0 with Windows 2000 Professional. I tried different HP printers, 1300n and 1320, with the same result.

Similar Messages

  • Print text in Bold while creating PDF

    Hi,
    I am mapping data in the XML to a Template designed using LiveCycle Designer ES3.
    I need to print some of the text in BOLD.
    For exmple in the following XML, when we display the text in PDF,  person names should be in BOLD.
    Part of the XML that is fed to template designer.
    <house>
    <parent>Mike and Mary are Mark's parents.</parent>
    </house>
    What is expected in the PDF:
    Mike and Mary are Mark's parents.
    I would appreciate if someone could please help me to achieve this task.
    Have  a good day!
    Regards,
    Patnapu.

    Hi,
    Check out Parth's example here: http://livecyclekarma.wordpress.com/2009/05/20/richtext-tricks-for-textfield-in-designer/.
    Also do a search on this forum, I am sure Steve Walker did an example.
    Good luck,
    Niall

  • Adobe Form - Print choice of bold or not bold font

    We have an Adobe form that prints sales order line items that are followed by their scheduling data (if any). So, each order line item could be followed with one or more scheduling line items or none. Example:
    (Order line)        10      9055450            7,000       EA          <other data>
    (Schedule lines                Expected Ship Date:         5,000     EA   05/30/2011     
        for the order line)         Expected Ship Date:         2,000     EA   07/16/2011     
    This is working fine using a subform but now we want to print the scheduling line items either as bold or not bold depending on some logic. So, we want this:
    (Order line)        10      9055450            7,000       EA          <other data>
    (Schedule lines                Expected Ship Date:         5,000     EA   05/30/2011     
        for the order line)         Expected Ship Date:       2,000     EA   07/16/2011     
    We have an indicator set for each scheduling line item that indicates if the schedule line is to be printed as bold or not bold (schedules-bold_line = u2018Xu2019).
    Is there any way to override the font settings in the Layout using Script Editor?
    Weu2019ve tried using Script Editor (at a upper level subform) to set the presence (hidden/visible) of two different subforms (one to print as bold and one not bold) but that printed both subforms.
    Weu2019ve tried using Alternative nodes (true/false) that check the bold line indicator. This works but it prints the wrong data because there are direct binding references to multiple levels of repeating data. That is, instead of printing the schedule lines for order line item 10, it prints the schedule line items for order line item 20.
    (Order line)        10      9055450            7,000       EA          <other data>
    (Schedule line                Expected Ship Date:         1,000     EA   06/01/2011     
        for the next order line)        
    How would I use relative binding in Alternative nodes?
    Is there a better method to accomplish this task?
    Any help is greatly appreciated.

    Radhika - Thank you so much for your answer! You helped me find the solution. I ended up using FormCalc and this is the code that worked in the Ready Layout event of the EXPECTEDSHIPDATE subform :
    data.BODY_PAGE.TABLE.ITEM_VALUES.ZLINE.TEXTSUBFORM.EXPECTEDSHIPDATE::ready:layout - (FormCalc, both)
    if ( $.BOLD_LINE_IND[*] == "X" ) then
    $.ShipQty[*].font.weight = "bold" 
    $.ShipQty[*].caption.font.weight = "bold" 
    $.DelvDate[*].font.weight = "bold"
    $.UOM[*].font.weight = "bold"
    $.PlantName[*].font.weight = "bold"
    $.PlantName[*].caption.font.weight = "bold"
    else
    $.ShipQty[*].font.weight = "normal" 
    $.ShipQty[*].caption.font.weight = "normal"
    $.DelvDate[*].font.weight = "normal"
    $.UOM[*].font.weight = "normal"
    $.PlantName[*].font.weight = "normal"
    $.PlantName[*].caption.font.weight = "normal"
    endif
    The EXPECTEDSHIPDATE subform is bound to the Schedules table that contains ShipQty, etc. The BOLD_LINE_IND field contains the value that  toggles the print between bold and normal.
    The key to making this work was to correctly format the condition and code and to find the right event to place the code in.
    Thanks again for your help!

  • To print letters in bold

    how to print the letters in bold format in classiscal reports

    Use the INTENSIFIED addition with write statement.
    ... INTENSIFIED [{ON|OFF}|{= flag}]
    Effect
    This addition determines the intensity of the background color. For flag, a data object of type i is expected. If ON is specified or if the content of flag is not equal to 0, an intensive background color is used (default setting). If OFF is specified or if the content of flag is equal to 0, a weak background color is used. An exception to this is the COL_BACKGROUND background color, with which INTENSIFIED OFF influences the foreground color. If neither ON, OFF nor flag are specified after INTENSIFIED, then the ON addition takes effect.
    At the same time if the INPUT ON attribute is set, the INTENSIFIED OFF addition changes the foreground color of fields that are ready for input. If the INVERSE ON setting is made at the same time, the INTENSIFIED OFF setting has no effect (with the exception of COL_BACKGROUND).

  • IN Character mode Report can be print in bold

    I have a report in character mode but i want to print some character in bold
    for example
    This is my first program
    in above line i want to print program in bold
    Jai

    Hello
    Search the Oracle Reports Online help for "Printer Code Before" :
    Printer Code Before property
    Printer Codes are references to printer escape sequences that define special printing instructions (for example, special font sizes or highlighting) for the object. The Printer Code Before property specifies the printer escape sequence to be executed before each line of the object. The printer escape sequences are inserted after the object is triggered to print but before it has actually printed.
    Regards

  • Slow down in Java printing

    I'm printing a huge file in java by breaking into smaller chunks. Initially it sppols at good speed. But as time goes by It slows down. It starts of by spooling a page in a sec but after a 50 jobs it's taking 5 seconds/page.
    Could some tell me why this is happening? What should I do?
    Thanks alot

    I understand that I need to use enableDoubleBuffering Function. But I dont know where. I tried using disableDoubleBuffer(this); but giving me an error during compilation. Could someone point out problems with the code?
    Thanks
    Code:
    public int print(Graphics g, PageFormat pf, int PageIndex) throws PrinterException
    if (PageIndex != rememberedPageIndex) {  // this can be called multiple times for one page
    rememberedPageIndex = PageIndex;
    try {
    getOnePage gop = new getOnePage(FileName, currPage);
    currPage++;
    OnePage = gop.PageString;
    if (OnePage == "") {
    return Printable.NO_SUCH_PAGE;
    if(OnePage.charAt(0)=='\u001B'){
    return Printable.NO_SUCH_PAGE;
    catch ( Exception e ) {
    System.out.println("Unable to get page: " + e);
    BeginDisp = 0;
    int f = 20;
    int done = 0;
    double iw = pf.getImageableWidth();
    while (done == 0) {
    g.setFont(new Font("Monospaced", Font.BOLD, f));
    FontMetrics fm = g.getFontMetrics();
    if (fm.stringWidth(s) < iw) {
    fnt = new Font("monospaced",Font.BOLD, f);
    done = 1;
    break;
    f--;
    if (f < 2){  // should not happen
    done = 1;
    LineHeight = (int) pf.getImageableHeight();
    LineHeight = LineHeight / 66;
    } else {
    BeginDisp = 0;
    g.setColor(Color.black);
    g.setFont(fnt);
    FontMetrics fm = g.getFontMetrics();
    int centerAmtX = (int) ((pf.getImageableWidth() - fm.stringWidth(s)) / 2);
    int x = (int) pf.getImageableX();
    int y = (int) pf.getImageableY();
    int pageBreak = (int) (y + pf.getImageableHeight());
    int LineCount = 0;
    while ((y + LineHeight) < pageBreak) {
    LineCount++;
    y += LineHeight;
    if (OnePage.indexOf("\r",BeginDisp) < 0) {  // last line does not have a cr/lf
    String LastLine = OnePage.substring(BeginDisp,OnePage.length() - 1); // drop last character: page break
    g.drawString(LastLine, (int) x + centerAmtX, (int) y);
    break;
    String line = OnePage.substring(BeginDisp,OnePage.indexOf("\r",BeginDisp));
    g.drawString(line, (int) x + centerAmtX, (int) y);
    BeginDisp = OnePage.indexOf("\r",BeginDisp) + 2;
    if (BeginDisp >= OnePage.length()) {
    break;
    LineHeight = " + LineHeight + " pageBreak = " + pageBreak);
    return Printable.PAGE_EXISTS;
    }

  • How to send a character mode report from Oracle Form 10g to a printer.

    how sending a character mode report from Oracle 10g report to a printer.
    I'm sending to a printer located in the network
    i have theses parameter report
    desformat = prtname
    desname=??????
    destype= ?????
    mode=character
    i would like to preview the report before to send to a printer
    slds

    ACCOUNTING SYSTEM
    2006-2007 From Date : 01-JUL-06
    Printed On : Friday August 31 2007 11:13 AM To Date : 30-SEP-07
    G A/C. Code 99-99-9999 Description: xxxxxxxxxxxxx H
    -- DOC. # -- -- DATE -Chq/Slip# ---------- N A R R A T I O N -- -- DEBIT -- -- CREDIT -- -- BALANCE --
    Opening Balance: -999,999,999.00 Cr.
    G *** Total *** 0.00 0.00 -999,999,999.00H
    ================= ================= =================
    when i run character mode report in browser then display this output properly
    but sir problem is that when i print the report
    G(use for bold)
    is not working
    means not print in bold format in printer
    same character print G
    do you have any idea when i print through browser to printer G for bold purpose its work to printer ?

  • HTML code in fx formula printing PDF Obiee 11g 11.1.1.5.0

    Hi! If I have html code in my fx column and I want to print PDF I see html code and I want to see result of this code...
    I see this in my analysis:
    @[html] "<"span style="background-color:yellow;">"Test"<"/span">"**
    And I should see Test with yellow background
    How can I achieve this?
    Thanks!

    Hi,
    Its a known bug in obiee
    Please check the meta link
    Bug 7187501: PDF SHOWS HTML TAGS WHILE PRINTING REPORT WITH BOLD LETTERS -HTML Tags Shown When Print or Export to PDF (Doc ID 1064060.1)
    Bug 9372634: HTML TAGS SHOWN WHEN PRINT/EXPORT TO PDF
    Bug 8899783: HTML TAGS APPEAR IN PDF REPORT
    Hope this helped/ answered.
    Regards
    MuRam

  • Printer HP Laserjet P1102 unable to set/print into EconoMode

    I just purchased Printer HP Laserjet P1102 and the installation was good. But I could not set the Printer Setting to EconoMode. Even the EconoMode check box was thicked, the printer print in normal (bold)... so that waste my toner.
    I already install the latest driver from HP website, but EconoMode still not working. Please help me.

    Are you running Windows 7 in Boot Camp, or do you have a Mac with virtualization of Windows 7 on top of some Mac OS X, using some virtualization software?   Classic Mac operating systems can't run Windows 7, but can run MS-DOS and Windows 2000 or earlier in emulation.

  • Issue with character formats using duplex printing in smartform

    Hi all,
    I am getting a problem with character formats using duplex printing in smartform. I am using a text module with a bold character to display text in a window. The problem is that on the first back page,the text is being printed normally (without bold), but on the next pages, the back pages are being printed with the bold character format.
    Can anyone know where is the problem..please.
    Points to be rewarded..
    Thanks.
    Regards,
    Zaheed.

    Hi Zaheed,
    Normally this should not happen.. and also there is no internal formatting done by SAP.. it will show based on what fomatting option we have specified..
    If you are saying it is happening in ur case then
         1. Recheck whether whether you have same text module getting printed on the
             two page. If they are different then then individual check formatting option for
             each..
          2. If above point does'nt work for you ..then instead of bold char use normal
              format for text element and see if it is printing same on both page..
    Try this out and let us know your findings...
    Enjoy SAP.
    Pankaj Singh

  • PDF creator display bold output instead of defined mix from SAP Script

    Dear all,
    we've a little trouble with the pdf converter in SAP 4.6C.
    In the systeme there is a custom based soft font implemented (RSTXPDF2). The Forms work with SAPScript and use the global imported soft font , the direct printed output and local created pdf are fine.
    But when i try to use the archive for this documents the output use the right font, some characters are different so that i can see that the creator use the font.
    But the created and stored document in the archiv display all character in bold version, so that this isn't like the original.
    I try to use the testreport RSTXPDFT4 from sap to create a pdf download from spool, which was created witht the printer that create the paper output as well.
    The created pdf has the same problems, so that all is printed in a bold version of the style.
    The form has a headline in bold and after this there are some normal characters parts  and two parts with bold words.
    It's seems that the data in the output send all, but the converter can't interpret the bold end information as in the paper output.
    The target solution is to archive the pdf, but when the short spool isn't fine so i think that the archive printer isn't the problem. The printer was copied from the default, because the archivlink type can't use global softfonts.
    The fonts are activated in the se73 for the archive printer type and e. g. sapwin.
    Hint when i use the archive default which can't use softfonts the courier was used and the different areas will be display in bold and normal as defined.
    Every hint is welcome to find out why the convertor makes all in bold.
    Best regards
    Thorsten Stracke

    Dear all,
    we've a little trouble with the pdf converter in SAP 4.6C.
    In the systeme there is a custom based soft font implemented (RSTXPDF2). The Forms work with SAPScript and use the global imported soft font , the direct printed output and local created pdf are fine.
    But when i try to use the archive for this documents the output use the right font, some characters are different so that i can see that the creator use the font.
    But the created and stored document in the archiv display all character in bold version, so that this isn't like the original.
    I try to use the testreport RSTXPDFT4 from sap to create a pdf download from spool, which was created witht the printer that create the paper output as well.
    The created pdf has the same problems, so that all is printed in a bold version of the style.
    The form has a headline in bold and after this there are some normal characters parts  and two parts with bold words.
    It's seems that the data in the output send all, but the converter can't interpret the bold end information as in the paper output.
    The target solution is to archive the pdf, but when the short spool isn't fine so i think that the archive printer isn't the problem. The printer was copied from the default, because the archivlink type can't use global softfonts.
    The fonts are activated in the se73 for the archive printer type and e. g. sapwin.
    Hint when i use the archive default which can't use softfonts the courier was used and the different areas will be display in bold and normal as defined.
    Every hint is welcome to find out why the convertor makes all in bold.
    Best regards
    Thorsten Stracke

  • Bold Lines in Table

    Hi all,
    is it possible to print some lines bold dependent on certain criteria?
    e.g. I have a table with amounts and if an amount is higher than 10k the whole
    line or the amountfield should be shown bold.
    I added a programming node in the corresponding Column of the row node from the Table Node.
    He runs through this programming node for each entry of the table and i can access the content
    of the current cell, but no idea how i could change it to bold.
    Any Ideas?
    Thanks alot !

    create 2 copies of text modules or text elements for each line item then put condition inthe condition tab in such a way that only one at atime will be printed make one of the copy as normal and other as bold depending on the condition printed whether u want bold one or normal one.

  • HR payslip - Bold to be removed

    Hi ,
      I have developed HR payslips using transaction PE51 to print HR payslips.
    Now all the data & the alignment is fine.
    Only problem iam facing is its printing everything in BOLD.
    Its printing think & Bold.
    How do i remove the bold. Because there is no place i found in PE51 where i can adjust the font size or font type to italic or normal.
    Please give me a solution.
    Thanks in Advance.
    regards
    siva

    The /etc/skel folder is (optionally) used when creating a new user as a template for their home directory. By default it usually only has shell config files and X initialisation files, but you (as a system administrator) can add files to it that you want new users to have in their home folders.
    The following is a list of official packages that install files to /etc/skel:
    $ foreach package in $(pkgfile -qg "/etc/skel/*"); do echo "$package:"; pkgfile -lq $package | grep "/etc/skel/."; echo; done
    bash:
    /etc/skel/.bash_logout
    /etc/skel/.bash_profile
    /etc/skel/.bashrc
    grml-zsh-config:
    /etc/skel/.zshrc
    screen:
    /etc/skel/.screenrc
    xorg-xinit:
    /etc/skel/.xinitrc
    /etc/skel/.xsession
    mksh:
    /etc/skel/.mkshrc
    If you didn't copy these files yourself, perhaps they were added by an AUR package (or more likely, several), check with 'pacman -Qo /path/to/file' for several of the files to see if any are owned by unofficial packages. If they are, I would check with the maintainer to see if this is intended (it seems highly irregular in my opinion, and I'd avoid using any packages that polluted my filesystem in such a manner). If they are not owned by a package, then you (or someone else with root access on your installaion) must have created them manually. If it wasn't you, and you don't think you created them manually, check your logs for suspicious activity, and make sure you haven't been compromised. You can remove the files if you don't need them.

  • Trying to print to a OKI Microline 520 dot matrix printer in 10.6

    I'm trying to print to the OKI microline 520 dot matrix printer. I'm running 10.6.2 Snow Leopard and I have a USB to Parallel adapter connected between the Mac and the printer.
    The Mac can recognize the printer as a USB printer but I'm having problems finding a driver.
    I followed the suggestions in the following thread for Tiger but I couldn't find an OpenPrinting driver for the ML520 and the Okidata-MicrolineIBM_compatible_9pin driver didn't work.
    The OKI Microline 182 Foomatic/oki182 driver was close, it printed everything really bold and had a strikethrough font.
    http://discussions.apple.com/thread.jspa?threadID=1485588
    Any suggestions on other sources for drivers?

    Doesn't look like Oki is working on Snow Leopard compatibility for your old printer ...
    http://www.okidata.com/mkt/downloads/SnowLeopardDrivers_Compatibilityv1.1.pdf

  • BOLD FONT IN ADOBE FORM

    hi experts ,
                         I have one requirement  , I am developing one adobe form where I am getting one paragraph from read_text function module,
                         and I am passing this table in my form layout
                         now the problem is in that paragraph there are some highlighted lines . for this lines adobe form is not printing them in bold but
                          it is printing like this
                          <H>1.0ABCD</>
                           output is like that............
                             1. ABCD
                                  jasjdlkajsldjla
                             1.1. EFGH
                                  kjgsdjfgsjdgfjsgdjf
                            1.2.1. IJKL
                                  asdjasgdjagsdjgjasd
                         in current scenario it is coming like
                                 <H>1. ABCD</>
                                  jasjdlkajsldjla
                             <H>1.1. EFGH</>
                                  kjgsdjfgsjdgfjsgdjf
                              <H>1.2.1. IJKL </>
                                  asdjasgdjagsdjgjasd
                          <H> </> is coming because in long text editor it is highlighted
    please tell me how to achieve  this in adobe form.................

    As mentioned by you, is the below text totally placed in one text module "read_text" or different text modules are  used to print "1. ABCD"..."1.1. EFGH"..."1.2.1. IJKL" ??
                                <H>1. ABCD</>
                                  jasjdlkajsldjla
                             <H>1.1. EFGH</>
                                  kjgsdjfgsjdgfjsgdjf
                              <H>1.2.1. IJKL </>
                                  asdjasgdjagsdjgjasd
    Naveen

Maybe you are looking for

  • [Solved] No Route to Host but Internet is fine

    Hi, Im trying to install tcpdump and getting this error; bash-3.2# pacman -S tcpdump resolving dependencies... looking for inter-conflicts... Targets (1): tcpdump-3.9.8-1 Total Download Size: 0.26 MB Total Installed Size: 0.57 MB Proceed with install

  • Copy and Paste into Java Applet

    I know there have been some posts like this in the paste, but could not find a reasonable explanation. JVM 1.4.2_08 For an unsigned java applet (Swing) I could not copy from a notepad document into my applets JTextField and JTextArea fields. JVM 1.5

  • Cisco LMS 4 IEFrame

    Hello, i have added a IEFrame in a LMS Dashboard containing some information about Cisco WCS. I works fine, just there is an issue when i open my Dashboard and I didn't start WCS before the IE Frame not showing the information. I tried to set the cre

  • CLAD Sample Exam 1, question 2:

    CLAD Sample Exam 1, question 2: can a wire be used to pass date between 2 llps that are intended to be runn in parallel?  CLAD Sample exam1  provides the following url as an answer:  http://zone.ni.com/devzone/cda/tut/p/id/9393 . This doesn't explain

  • NoScript v2.4.6 icon missing after updating to firefox v13.0.1

    I can no longer access the NoScript icon after the latest firefox upgrade, so I cannot turn Javascipt ON when reguired by a web page. Is there a fix, or is this a bug?