Bonjour,
Je souhaite imprimer deux lignes de caractères dans une police que j'ai ajoutée sur mon pc ( bien disponible dans word).
J'utilise sans problème cette police dans les textbox
Code:this.textBox6.Font = new System.Drawing.Font("OCR-B 10 BT", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
mais je n'arrive pas à l'utiliser pour un text mis dans un PDF via iTextSharp ( le texte est affiché dans une autre police :
Code:
1
2
3
4
5
6
7 Chunk LigneHaute = new Chunk(textBox6.Text+cle6.Text+' '+textBox5.Text+' '+textBox4.Text+cle4.Text+'\r'+'\n'); Chunk LigneBasse = new Chunk(textBox3.Text + cle3.Text + ' ' + cle2.Text + textBox2.Text + cle1.Text + textBoxNat.Text + BDF.Text + ' ' + textBox1toPrint); Paragraph monParaph = new Paragraph(LigneHaute) ; monParaph.Add(LigneBasse) ; monParaph.Font = FontFactory.GetFont("OCR-B 10 BT", 12F); nouveauDocument.Add(monParaph);
Pouvez vous me filer un coup de main