@mcp-z/mcp-pdf
    Preparing search index...

    Function validateTextForFont

    • Validate text against a specific font's glyph coverage

      For standard PDF fonts: checks WinAnsi range (0x20-0xFF) For custom fonts: uses fontkit to check actual glyph support

      Parameters

      • text: string

        Text to validate

      • fontName: string

        Font name (e.g., 'Helvetica', 'CustomFont')

      • fontPath: string

        Path to font file (required for custom fonts)

      Returns CharacterValidationResult

      Validation result with warnings