3 Replies Latest reply on Jun 13, 2007 5:54 PM by Norman Richards

    Seam PDF fontFamily and style

    Phil Haigh Novice

      Hi all

      Anyone have a tip as to how to use fontFamily and style for Seam PDFs?

      The docs state you can just add these to the <p:font tag, but it has no effect for me.

      None of the examples seem to contain any changes of fonts or styles (size works fine)

      cheers

      phil

        • 1. Re: Seam PDF fontFamily and style
          Norman Richards Master

          I've added a font example. I hope this helps.

          <p:document xmlns:p="http://jboss.com/products/seam/pdf">
          
           <p:font family="courier">
           <p:font size="24"><p:paragraph>Courier</p:paragraph></p:font>
           <p:paragraph>abcdefghijklmnopqrstuvwxyz</p:paragraph>
           <p:paragraph>ABCDEFGHIJKLMNOPQRSTUVWXYZ</p:paragraph>
          
           <p:list>
           <p:listItem><p:font style="bold">bold</p:font></p:listItem>
           <p:listItem><p:font style="italic">italic</p:font></p:listItem>
           <p:listItem><p:font style="oblique">oblique</p:font></p:listItem>
           <p:listItem><p:font style="underline">underline</p:font></p:listItem>
           <p:listItem><p:font style="line-through">line-through</p:font></p:listItem>
           <p:listItem><p:font style="bold,italic,underline">bold,italic,underline</p:font></p:listItem>
           </p:list>
           </p:font>
          
          
           <p:font family="helvetica">
           <p:font size="24"><p:paragraph>Helvetica</p:paragraph></p:font>
           <p:paragraph>abcdefghijklmnopqrstuvwxyz</p:paragraph>
           <p:paragraph>ABCDEFGHIJKLMNOPQRSTUVWXYZ</p:paragraph>
          
           <p:list>
           <p:listItem><p:font style="bold">bold</p:font></p:listItem>
           <p:listItem><p:font style="italic">italic</p:font></p:listItem>
           <p:listItem><p:font style="oblique">oblique</p:font></p:listItem>
           <p:listItem><p:font style="underline">underline</p:font></p:listItem>
           <p:listItem><p:font style="line-through">line-through</p:font></p:listItem>
           <p:listItem><p:font style="bold,italic,underline">bold,italic,underline</p:font></p:listItem>
           </p:list>
           </p:font>
          
           <p:font family="times-roman">
           <p:font size="24"><p:paragraph>Times Roman</p:paragraph></p:font>
           <p:paragraph>abcdefghijklmnopqrstuvwxyz</p:paragraph>
           <p:paragraph>ABCDEFGHIJKLMNOPQRSTUVWXYZ</p:paragraph>
          
           <p:list>
           <p:listItem><p:font style="bold">bold</p:font></p:listItem>
           <p:listItem><p:font style="italic">italic</p:font></p:listItem>
           <p:listItem><p:font style="oblique">oblique</p:font></p:listItem>
           <p:listItem><p:font style="underline">underline</p:font></p:listItem>
           <p:listItem><p:font style="line-through">line-through</p:font></p:listItem>
           <p:listItem><p:font style="bold,italic,underline">bold,italic,underline</p:font></p:listItem>
           </p:list>
          
           </p:font>
          
          
          </p:document>
          


          • 2. Re: Seam PDF fontFamily and style
            Phil Haigh Novice

            Thanks Norman, perfect :-)

            The docs need updating then, because they say the attribute is familyName.

            cheers

            phil

            • 3. Re: Seam PDF fontFamily and style
              Norman Richards Master

              errr... Sorry about that. I'll fix that.