Aspose.HTML for .NET更新至v19.10,在此版本中,实现提高文本呈现的质量的一组功能,其中最重要的是紧缩。同时字距调整用于调整字符之间的间距,并且它受大多数字体的支持。欢迎下载体验。
Aspose.HTML for .NET是一种高级HTML操作API,用于在.NET应用程序中创建和操作HTML文档。开发人员可以插入,删除,替换HTML节点,提取CSS样式,通过NodeIterator,遍历规范提供的TreeWalker,XPath或CSS选择器查询来浏览HTML文档。
Aspose.HTML for .NET更新至v19.10,在此版本中,实现提高文本呈现的质量的一组功能,其中最重要的是紧缩。同时字距调整用于调整字符之间的间距,并且它受大多数字体的支持。
>>免费下载最新版Aspose.HTML for .NET
具体更新内容
key | 概述 | 类别 |
---|---|---|
HTMLNET-2156 | MHT到XPS格式问题 | Bug修复 |
HTMLNET-2105 | HTML与图片的区别 | Bug修复 |
10月狂欢季,ASPOSE系列产品火热促销中,满额即享万元减免优惠!>>立即进入优惠专场
Aspose.Html v19.10中的API更改
文本呈现方法的行为已更改。若要正确呈现每个字符,应从GraphicContext.TextInfo.CharacterInfos确定其位置。
namespace Aspose.Html.Rendering{ public interface IDevice : IDisposable { ////// Fills the specified text string at the specified location. //////String to fill.///Point that specifies the coordinates of the text.void FillText(string text, PointF pt); ////// Strokes the specified text string at the specified location. //////String to stroke.///Point that specifies the coordinates where to start the text.void StrokeText(string text, PointF pt); }}
图形上下文已使用有关渲染字符的信息进行了扩展。
namespace Aspose.Html.Rendering{ public class GraphicContext : ICloneable { ////// Gets aobject which contains information about rendered text. ///////// Theobject. ///public virtual TextInfo TextInfo { get; } }}
添加了类和结构,其中包含有关渲染字符的信息。
namespace Aspose.Html.Rendering{ ////// Contains information about rendered text. /// public class TextInfo { /// <summary> /// Gets information about rendered characters. /// </summary> /// <value> /// A <see cref="IList{CharacterInfo}" /> that contains information about rendered characters. /// </value> public IList<CharacterInfo> CharacterInfos { get; } } /// <summary> /// Contains character related information. /// </summary> public struct CharacterInfo { /// <summary> /// Gets characters width in points. /// </summary> /// <value> /// Width in points. /// </value> public float Width { get; } /// <summary> /// Gets offset to the next character in points. /// </summary> /// <value> /// Offset in points. /// </value> public float Offset { get; } /// <summary> /// Returns a <see cref="string" /> that represents this instance. /// </summary> /// <returns> /// A <see cref="string" /> that represents this instance. /// </returns> public override string ToString(); }}
ASPOSE技术交流QQ群现已开通,各类资源及时分享,欢迎交流讨论!(扫描下方二维码加入群聊)

标签:
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!