Interface IFontFactory
Inherited Members
Namespace: AGS.API
Assembly: AGS.API.dll
Syntax
public interface IFontFactory : IFontLoader
Methods
| Improve this Doc View SourceGetTextConfig(IBrush, IFont, IBrush, Single, IBrush, Single, Single, Alignment, AutoFit, Single, Single, Single, Single, Nullable<SizeF>)
Gets configuration for displaying text on screen.
Declaration
ITextConfig GetTextConfig(IBrush brush = null, IFont font = null, IBrush outlineBrush = null, float outlineWidth = 0F, IBrush shadowBrush = null, float shadowOffsetX = 0F, float shadowOffsetY = 0F, Alignment alignment = Alignment.TopLeft, AutoFit autoFit = AutoFit.NoFitting, float paddingLeft = 2F, float paddingRight = 2F, float paddingTop = 2F, float paddingBottom = 2F, SizeF? labelMinSize = default(SizeF? ))
Parameters
Type | Name | Description |
---|---|---|
IBrush | brush | Brush. |
IFont | font | Font. |
IBrush | outlineBrush | Outline brush. |
System.Single | outlineWidth | Outline width. |
IBrush | shadowBrush | Shadow brush. |
System.Single | shadowOffsetX | Shadow offset x. |
System.Single | shadowOffsetY | Shadow offset y. |
Alignment | alignment | Alignment. |
AutoFit | autoFit | Auto fit. |
System.Single | paddingLeft | Padding left. |
System.Single | paddingRight | Padding right. |
System.Single | paddingTop | Padding top. |
System.Single | paddingBottom | Padding bottom. |
System.Nullable<SizeF> | labelMinSize | Label minimum size. |
Returns
Type | Description |
---|---|
ITextConfig | The text config. |