API referenceRendering & Viewer

pdfSetSoftGlyphRendering

Toggle whether the the engine software

C
BOOL32 __stdcall pdfSetSoftGlyphRendering(BOOL32 Enable);
Delphi
function pdfSetSoftGlyphRendering(Enable: LongBool): LongBool; stdcall;

Purpose. Toggle whether the the engine software rasterizer renders text via embedded TrueType glyph outlines drawn in software (GSoftGlyph = True) or via the GDI ETO_GLYPH_INDEX path.

Description. A genuinely global, process-wide flag — not per-document, despite taking no IPDF parameter at all, matching the same class of process-global side effect previously documented for pdfSetAnsiMode's GGapAnsiUTF8 (Document Utility Settings): every open document in the process shares one GSoftGlyph state. Consulted directly inside the rasterizer's glyph-drawing code path (if GSoftGlyph and (Length(Res.Fonts[curFontIdx].TTF) > 0) then ...), so it only has any effect for fonts with embedded TrueType outline data available in the render resources; standard-14/system-substituted fonts are unaffected either way.

Parameters.

ParameterDescription
EnableNew global (process-wide) state.

Return value. Always True.

C# (P/Invoke)

wrappers/dotnet/LumasPdf.cs
[return: MarshalAs(UnmanagedType.Bool)]
Area
Rendering & Viewer
Category

Setters

Exported names

pdfSetSoftGlyphRendering

String variants

The …A form takes UTF-8, …W takes UTF-16; a bare name aliases the ANSI form.

See working code

Worked examples — complete programs in ten languages.