Encoding

Type1MetricFont.Encoding property

编码在度量文件中定义。 StandardAdobeEncoding: 编码自动填充

public override IFontEncoding Encoding { get; }

例子

FontSpecific: 用户应通过以下方式提供特定编码: System::ArrayPtr<System::String> zapfDingbatsEncoding = System::MakeArray<System::String>({nullptr, nullptr, …, u"space", u"a1", …}); FontEnvironment::get_Current()->get_FontSpecificEncodings()->RegisterEncoding(u"ZapfDingbats", zapfDingbatsEncoding);

string[] zapfDingbatsEncoding = new string[256] {null, null, ... , "space", "a1", ...};
FontEnvironment.Current.FontSpecificEncodings.RegisterEncoding("ZapfDingbats", zapfDingbatsEncoding);

也可以看看