RaUI/Source/ryControls/HtmlRenderer/Adapters/RFont.cs
zilinsoft 3262955f2f ### 2023-11-07更新
------
#### RaUIV4    V4.0.2311.0701
- *.[全新]整合了MyDb、ryControls、MyDb_MySQL等dll文件到RaUI一个项目。
- *.[新增]新增ApkOp类,可以轻松获取APK信息。
- *.[新增]新增JsonExt扩展类,让Json操作更简单。
- *.[新增]新增WebP类,可以支持webp格式的图片。
- *.[改进]ryQuickSQL中的AddField方法改为自动替换已存在的同名值。
- *.[修复]ryQuickSQL中的AddFieldCalc方法无法正常计算的BUG。
2023-11-07 16:37:53 +08:00

46 lines
1.4 KiB
C#

// "Therefore those skilled at the unorthodox
// are infinite as heaven and earth,
// inexhaustible as the great rivers.
// When they come to an end,
// they begin again,
// like the days and months;
// they die and are reborn,
// like the four seasons."
//
// - Sun Tsu,
// "The Art of War"
namespace TheArtOfDev.HtmlRenderer.Adapters
{
/// <summary>
/// Adapter for platform specific font object - used to render text using specific font.
/// </summary>
public abstract class RFont
{
/// <summary>
/// Gets the em-size of this Font measured in the units specified by the Unit property.
/// </summary>
public abstract double Size { get; }
/// <summary>
/// The line spacing, in pixels, of this font.
/// </summary>
public abstract double Height { get; }
/// <summary>
/// Get the vertical offset of the font underline location from the top of the font.
/// </summary>
public abstract double UnderlineOffset { get; }
/// <summary>
/// Get the left padding, in pixels, of the font.
/// </summary>
public abstract double LeftPadding { get; }
/// <summary>
///
/// </summary>
/// <param name="graphics"></param>
/// <returns></returns>
public abstract double GetWhitespaceWidth(RGraphics graphics);
}
}