예제 #1
0
 /// <inheritdoc />
 /// <summary>
 ///     Initializes a new instance of the <see cref="T:GameOverlay.Graphics.D2DFont" /> class.
 /// </summary>
 /// <param name="device">The device.</param>
 /// <param name="options">The options.</param>
 public D2DFont(Direct2DRenderer device, FontOptions options) : this(device.GetFontFactory(), options.FontFamilyName,
                                                                     options.FontSize, options.Bold, options.Italic)
 {
 }
예제 #2
0
 /// <inheritdoc />
 /// <summary>
 ///     Initializes a new instance of the <see cref="T:GameOverlay.Graphics.D2DFont" /> class.
 /// </summary>
 /// <param name="device">The device.</param>
 /// <param name="fontFamilyName">Name of the font family.</param>
 /// <param name="size">The size.</param>
 /// <param name="bold">if set to <c>true</c> [bold].</param>
 /// <param name="italic">if set to <c>true</c> [italic].</param>
 public D2DFont(Direct2DRenderer device, string fontFamilyName, float size, bool bold = false, bool italic = false) :
     this(device.GetFontFactory(), fontFamilyName, size, bold, italic)
 {
 }