原創|產品更新|編輯:李顯亮|2019-10-12 11:59:43.827|閱讀 229 次
概述:Aspose.HTML for .NET更新至v19.10,在此版本中,實現提高文本呈現的質量的一組功能,其中最重要的是緊縮。同時字距調整用于調整字符之間的間距,并且它受大多數字體的支持。歡迎下載體驗。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
Aspose.HTML for .NET是一種高級HTML操作API,用于在.NET應用程序中創建和操作HTML文檔。開發人員可以插入,刪除,替換HTML節點,提取CSS樣式,通過NodeIterator,遍歷規范提供的TreeWalker,XPath或CSS選擇器查詢來瀏覽HTML文檔。
Aspose.HTML for .NET更新至v19.10,在此版本中,實現提高文本呈現的質量的一組功能,其中最重要的是緊縮。同時字距調整用于調整字符之間的間距,并且它受大多數字體的支持。
key | 概述 | 類別 |
---|---|---|
HTMLNET-2156 | MHT到XPS格式問題 | Bug修復 |
HTMLNET-2105 | HTML與圖片的區別 | Bug修復 |
10月狂歡季,ASPOSE系列產品火熱促銷中,滿額即享萬元減免優惠!>>立即進入優惠專場
文本呈現方法的行為已更改。若要正確呈現每個字符,應從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群現已開通,各類資源及時分享,歡迎交流討論!(掃描下方二維碼加入群聊)
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn