GlyphSetColor

Fonts, Type 3 fonts, Graphics

Description

Sets the fill color for subsequent glyph operators from unit-range RGB components

Syntax

Delphi

Function GlyphSetColor(Red, Green, Blue: Double): Integer;

ActiveX

Function PDFlib::GlyphSetColor(Red As Double, Green As Double, Blue As Double) As Long

DLL

int DLGlyphSetColor(int InstanceID, double Red, double Green, double Blue);

Parameters

Red, Green, BlueColor components clamped to 0..1

Return values

1 when appended, 0 when no glyph is open

Remarks

Only valid between BeginGlyph and EndGlyph; calling GlyphSetColor marks the glyph as a coloured Type 3 glyph so EndGlyph emits the d0 width operator instead of d1 per ISO 32000-1 §9.6.5

See also

BeginFont, BeginGlyph, EndGlyph, EndFont, GlyphMoveTo