support emoji characters font?

support emoji characters font?

Forum member · Jan 13, 2017
Hello I have a problem adding emoji characters. <% @Language="VBScript" CODEPAGE="65001" %> <!-- METADATA TYPE="typelib" UUID="{DF9225FE-94A4-490D-8CAD-E8366CE621D3}"--> <% Response.expires = -1 Response.charset = "utf-8" Dim MyDocument, MyPage Dim MyStrText ' Create Document object and set properties Set MyDocument = Server.CreateObject( "DynamicPDF.Document" ) OpenSansEmoji = MyDocument.AddFont( "D:\font\OpenSansEmoji.ttf", true, true ) EmojiSymbolsRegular = MyDocument.AddFont( "D:\font\EmojiSymbols-Regular.ttf", true, true ) Symbola = MyDocument.AddFont( "D:\font\Symbola.ttf", true, true ) 'MyDocument.Creator = "HelloWorld.asp" 'MyDocument.Author = "ceTe Software" 'MyDocument.Title = "Hello World" ' Add a page to the document Set MyPage = MyDocument.AddPage() ' Add a textarea to the page MyStrText = "😳😄❤👍" & vbCrLf & "emoji font test" Dim MyLabel Set MyLabel = MyPage.AddLabel(MyStrText, 0, 0, 504, 54) MyLabel.Align = DPDF_TextAlign_Center 'MyLabel.Font = DPDF_Font_Helvetica 'MyLabel.Font = OpenSansEmoji MyLabel.Font = EmojiSymbolsRegular 'MyLabel.Font = Symbola 'MyLabel.Font = DPDF_Font_Symbol MyLabel.FontSize = 18 ' Output the Document to the Browser MyDocument.DrawToWeb ' Object cleanup Set MyPage = Nothing Set MyDocument = Nothing %> Thanks.

Re: support emoji characters font?

Support · Jan 13, 2017
Hello, Can you please send over the following details to [^a|mailto:support@cete.com|opennewwindow|support@cete.com^] so we can look into it further? 1.Exact version and build number of the DynamicPDF for COM/ActiveX product. 2.Output PDF. 3.Font files used. Thanks. ceTe Software Support Team.

Re: support emoji characters font?

Support · Jan 20, 2017
Hello, Thanks for sending all the details to [^a|mailto:support@cete.com|opennewwindow|support@cete.com^]. We looked into the font file and the PDF document you sent. The symbols which you are trying to add to the PDF uses glyph data from the GSUB tables of the font (Advanced OTF table) and currently the DynamicPDF API does not supports GSUB and GPOS tables. We have already added this feature to our feature request list for consideration for a future version. We will post an update once the new version with this feature is available for download. Thanks, ceTe Software Support Team.