mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-01 13:23:40 +01:00
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using Dalamud.Bindings.ImGui;
|
|
using Dalamud.Interface.ManagedFontAtlas;
|
|
|
|
namespace Dalamud.Interface.FontIdentifier;
|
|
|
|
/// <summary>
|
|
/// Represents a font identifier.<br />
|
|
/// Not intended for plugins to implement.
|
|
/// </summary>
|
|
public interface IFontId : IObjectWithLocalizableName
|
|
{
|
|
/// <summary>
|
|
/// Gets the associated font family.
|
|
/// </summary>
|
|
IFontFamilyId Family { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the font weight, ranging from 1 to 999.
|
|
/// </summary>
|
|
int Weight { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the font stretch, ranging from 1 to 9.
|
|
/// </summary>
|
|
int Stretch { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the font style. Treat as an opaque value.
|
|
/// </summary>
|
|
int Style { get; }
|
|
|
|
/// <summary>
|
|
/// Adds this font to the given font build toolkit.
|
|
/// </summary>
|
|
/// <param name="tk">The font build toolkit.</param>
|
|
/// <param name="config">The font configuration. Some parameters may be ignored.</param>
|
|
/// <returns>The added font.</returns>
|
|
ImFontPtr AddToBuildToolkit(IFontAtlasBuildToolkitPreBuild tk, in SafeFontConfig config);
|
|
}
|