ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Different Fonts in one PRTF

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Different Fonts in one PRTF

    I think I'm slowly getting mad.

    I'm trying to print in 2 different fonts in one printfile.

    My printfile looks something like that:

    Code:
         A          R HDR                                                              
         A                                      FONT(2305 (*POINTSIZE 50))             
         A            BESNAM    R        O  3  2                                       
         A                                      REFFLD(VS00210R/NAME1 *LIBL/VS00210-   
         A                                      P)                                     
         A            BESORT        22A  O  5  2                                       
         A            SPEKE     R        O  5 29                                       
         A                                      REFFLD(VS00200R/SPEKE *LIBL/VS00200-   
         A                                      P)                                     
         A            NAME1     R        O  7  2                                       
         A                                      REFFLD(VS00210R/NAME1 *LIBL/VS00210-   
         A                                      P)                                     
         A                                  9  2                                       
         A                                      '-->'                                  
         A            PLZ       R        O  9  8                                       
         A                                      REFFLD(VS00210R/PLZ *LIBL/VS00210P)    
         A            ORT       R        O  9 16                                       
         A                                      REFFLD(VS00210R/ORT *LIBL/VS00210P)    
         A                                 11  2                                       
         A                                      'Artikel             Pal.Bü. STCK.'    
         A                                      UNDERLINE                              
         A                                      FONT(420 (*POINTSIZE 40))
    So in my opinion the majority of the text should be printed in the font 2305 and only the last line in font 420.

    What happens is that those entries are ignored. The font is only taken from the CRTPRTF command, so the whole file is allways printed in the same font.

    I tried leaving the FONT parameter in the CRTPRTF command at *CPI which didn't work at all and I also tried *DEVD which was even worse, since he choose a real small font.

    What else can I do?

  • #2
    Re: Different Fonts in one PRTF

    compile the print file with
    PHP Code:
    Printer device type  . . . . . . DEVTYPE      > *AFPDS 
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

    Comment


    • #3
      Re: Different Fonts in one PRTF

      That did help, thanks a lot!!!

      Comment

      Working...
      X