HotPDF Component Delphi TextOut Sample

HotPDF Component Delphi TextOut Sample – Font Styling and Charset

This comprehensive HotPDF component TextOut sample demonstrates advanced font handling, character set support, text scaling, spacing adjustments, and rendering modes. The sample generates detailed font and character set demonstrations with practical examples for PDF generation in Delphi applications.

Key Features Demonstrated

  • Font Family Support: Arial, Times New Roman, Courier New with various styles
  • Character Set Handling: Arabic, Eastern European, OEM, Russian, and Turkish character sets
  • Text Scaling: Horizontal text compression and expansion
  • Character Spacing: Fine-tuning character spacing for improved readability
  • Word Spacing: Adjusting space between words for better text layout
  • Rendering Modes: Fill, stroke, fill+stroke, and invisible text rendering

📝 Important Note

ShowCharset is only used to technically demonstrate displaying characters from a character set through character codes. For regular text display, you can simply use TextOut to directly display the desired string without needing to specify any character codes.

The ShowCharset procedure in this sample is specifically designed to showcase how different character encodings render individual characters by their Unicode/ASCII codes. In real applications, simply use the TextOut method with your text strings directly.

Technical Implementation

This sample showcases the comprehensive text output capabilities of the HotPDF component, including:

  • Font embedding for consistent cross-platform display
  • Unicode character support for international text
  • Advanced text positioning and rotation
  • PDF outline/bookmark generation for navigation
  • Multi-page document creation with automatic page management

 


Discover more from losLab Software Development

Subscribe to get the latest posts sent to your email.