[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.TextRendererBase

TextRendererBase Class

Default implementation of TextRenderer. Need to implement at least a DrawXXX method to use it.

Inheritance
TextRendererBase
Namespace: C1.Util.DX.DirectWrite
Assembly: C1.Win.C1DX.4.8.dll
Syntax
public class TextRendererBase : CallbackBase, TextRenderer, PixelSnapping, ICallbackable, IDisposable

Constructors

Name Description
TextRendererBase()

Methods

Name Description
DrawGlyphRun(object, float, float, MeasuringMode, GlyphRun, GlyphRunDescription, IntPtr)

IDWriteTextLayout::Draw calls this function to instruct the client to render a run of glyphs.

DrawInlineObject(object, float, float, InlineObject, bool, bool, IntPtr)

IDWriteTextLayout::Draw calls this application callback when it needs to draw an inline object.

DrawStrikethrough(object, float, float, ref Strikethrough, IntPtr)

IDWriteTextLayout::Draw calls this function to instruct the client to draw a strikethrough.

DrawUnderline(object, float, float, ref Underline, IntPtr)

IDWriteTextLayout::Draw calls this function to instruct the client to draw an underline.

GetCurrentTransform(object)

Gets a transform that maps abstract coordinates to DIPs.

GetPixelsPerDip(object)

Gets the number of physical pixels per DIP.

IsPixelSnappingDisabled(object)

Determines whether pixel snapping is disabled. The recommended default is FALSE, unless doing animation that requires subpixel vertical placement.