Class CreateFont
Represents an operator that creates a font which can be passed to text rendering functions.
public class CreateFont : Source<Font>
- Inheritance
-
CreateFont
- Inherited Members
Constructors
CreateFont()
Initializes a new instance of the CreateFont class.
public CreateFont()
Properties
Font
Gets or sets the font style used to render the text strokes.
public Font Font { get; set; }
Property Value
Methods
Generate()
Generates an observable sequence that contains an object representing a particular format for text, including font face and size.
public override IObservable<Font> Generate()
Returns
- IObservable<Font>
A sequence containing a single instance of the Font class representing a particular format for text.
Generate<TSource>(IObservable<TSource>)
Generates an observable sequence of font objects representing a particular format for text, including font face and size, and where each font is emitted only when an observable sequence emits a notification.
public IObservable<Font> Generate<TSource>(IObservable<TSource> source)
Parameters
source
IObservable<TSource>The sequence containing the notifications used for emitting new font objects.
Returns
- IObservable<Font>
A sequence of Font objects where each element represents a particular format for text.
Type Parameters
TSource
The type of the elements in the
source
sequence.