原創(chuàng)|產(chǎn)品更新|編輯:李顯亮|2019-10-12 11:59:43.827|閱讀 229 次
概述:Aspose.HTML for .NET更新至v19.10,在此版本中,實(shí)現(xiàn)提高文本呈現(xiàn)的質(zhì)量的一組功能,其中最重要的是緊縮。同時字距調(diào)整用于調(diào)整字符之間的間距,并且它受大多數(shù)字體的支持。歡迎下載體驗(yàn)。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
Aspose.HTML for .NET是一種高級HTML操作API,用于在.NET應(yīng)用程序中創(chuàng)建和操作HTML文檔。開發(fā)人員可以插入,刪除,替換HTML節(jié)點(diǎn),提取CSS樣式,通過NodeIterator,遍歷規(guī)范提供的TreeWalker,XPath或CSS選擇器查詢來瀏覽HTML文檔。
Aspose.HTML for .NET更新至v19.10,在此版本中,實(shí)現(xiàn)提高文本呈現(xiàn)的質(zhì)量的一組功能,其中最重要的是緊縮。同時字距調(diào)整用于調(diào)整字符之間的間距,并且它受大多數(shù)字體的支持。
>>免費(fèi)下載最新版Aspose.HTML for .NET
key | 概述 | 類別 |
---|---|---|
HTMLNET-2156 | MHT到XPS格式問題 | Bug修復(fù) |
HTMLNET-2105 | HTML與圖片的區(qū)別 | Bug修復(fù) |
10月狂歡季,ASPOSE系列產(chǎn)品火熱促銷中,滿額即享萬元減免優(yōu)惠!>>立即進(jìn)入優(yōu)惠專場
文本呈現(xiàn)方法的行為已更改。若要正確呈現(xiàn)每個字符,應(yīng)從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); } }
圖形上下文已使用有關(guān)渲染字符的信息進(jìn)行了擴(kuò)展。
namespace Aspose.Html.Rendering { public class GraphicContext : ICloneable { ////// Gets aobject which contains information about rendered text. ///////// Theobject. ///public virtual TextInfo TextInfo { get; } } }
添加了類和結(jié)構(gòu),其中包含有關(guān)渲染字符的信息。
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技術(shù)交流QQ群現(xiàn)已開通,各類資源及時分享,歡迎交流討論!(掃描下方二維碼加入群聊)
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請郵件反饋至chenjj@fc6vip.cn