AutoPatientInfoRecorder/src/AntdUI/Lib/SVG/Text/SvgFontFace.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// THIS FILE IS PART OF SVG PROJECT
// THE SVG PROJECT IS AN OPENSOURCE LIBRARY LICENSED UNDER THE MS-PL License.
// COPYRIGHT (C) svg-net. ALL RIGHTS RESERVED.
// GITHUB: https://github.com/svg-net/SVG
namespace AntdUI.Svg
{
public class SvgFontFace : SvgElement
{
public override string ClassName { get => "font-face"; }
[SvgAttribute("alphabetic")]
public float Alphabetic
{
get { return (Attributes["alphabetic"] == null ? 0 : (float)Attributes["alphabetic"]); }
set { Attributes["alphabetic"] = value; }
}
[SvgAttribute("ascent")]
public float Ascent
{
get
{
if (Attributes["ascent"] == null)
{
var font = Parent as SvgFont;
return (font == null ? 0 : UnitsPerEm - font.VertOriginY);
}
else
{
return (float)Attributes["ascent"];
}
}
set { Attributes["ascent"] = value; }
}
[SvgAttribute("ascent-height")]
public float AscentHeight
{
get { return (Attributes["ascent-height"] == null ? Ascent : (float)Attributes["ascent-height"]); }
set { Attributes["ascent-height"] = value; }
}
[SvgAttribute("descent")]
public float Descent
{
get
{
if (Attributes["descent"] == null)
{
var font = Parent as SvgFont;
return (font == null ? 0 : font.VertOriginY);
}
else
{
return (float)Attributes["descent"];
}
}
set { Attributes["descent"] = value; }
}
后面还有 73 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。