|
Bytescout.PDF library for .NET
- loading font from font name
Adding font using its name into PDF document
This example demonstrates how to add and use text font using its name (the library looks for fonts installed in system, you can also load fonts from file - see sample) and use this font for text. You can also use built-in PDF fonts (see sample)
using System; namespace HelloWorld // Add new document // Append new page to the document // Create new drawing // font size constant // Create array with font types // X position of the text to draw // Draw all font types // Set Active Font // Draw Text // Increase position of the next text
// open generated PDF document in default PDF viewer installed
in Windows Download example source code: bytescoutpdf_fonts_from_font_name_non_standard_fonts.zip (25 KB)
"Hello, World!" quick start step-by-step tutorials: |
|
|
Copyright © ByteScout, 2003-2010. Privacy Statement
Microsoft®, Windows®, Windows 2000®, Windows Server®, Windows Vista®, Internet Explorer®, .NET Framework®, ActiveX®, Visual Basic®, Visual C#®, ASP®, ASP.NET®, Excel®, PowerPoint®, are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Adobe®, Flash® and Acrobat® are registered trademarks of Adobe Systems, Incorporated. Mozilla®, Firefox® and the Mozilla and Firefox Logos are registered trademarks of the Mozilla Foundation. Other product names or brandnames used herein are for identification purposes only and might be trademarks or registered trademarks of their respective companies. We disclaim any and all rights to those marks. |
|