Change text font and size

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Change text font and size

Post by lidds »

I am currently using the following code to change the thickness and opacity of annotations, however I was wonder I was wondering how I can change the font size, font type, font style e.g. 6px Tahoma Bold Italic

Code: Select all

            Dim toolId As Integer = Me.docPreview.Inst.Str2ID(toolIDName)
            Dim styleParams As ICabNode = Me.docPreview.Inst.CommentStylesManager.GetCurrentStyle(toolId)

            If styleParams Is Nothing Then
                Return
            End If

            styleParams("B.W").v = 8.0
            styleParams("A").v = 0.5
Thanks

Simon
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Change text font and size

Post by lidds »

I was wondering if anyone knows how to achieve this?

Thanks in advance

Simon
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Change text font and size

Post by Sasha - Tracker Dev Team »

Hello lidds,

Well, for example for text box, it would be "TS.Font.Size" = 123;
You can modify the setting you want, and then check the registry for the needed path to the settings:
image.png
image1.png
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Change text font and size

Post by lidds »

Thanks Alex,

Worked great.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Change text font and size

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply