Go Back   TX Text Control Community > TX Text Control Discussion and Support Forums > TX Text Control .NET

TX Text Control .NET Please use this forum for TX Text Control .NET support only. If you need support for a different product, please use the appropriate forum.

Reply
 
Thread Tools Display Modes
  #1  
Old March 1, 2010
aikar aikar is offline
Registered User
 
Join Date: Mar 2010
Posts: 3
List of Fonts

Hello everyone

I would need a (string)-list of the fonts which are selectable with Selection.FontName.

The same problem has been discussed in this thread:
http://forums.textcontrol.com/showthread.php?t=320120

As this thread is more than two years old, I hope there is a solution for it today.

Thanks in advance
Reply With Quote
  #2  
Old March 1, 2010
Gunnar Giffey's Avatar
Gunnar Giffey Gunnar Giffey is offline
TX Support Engineer
TX Text Control
 
Join Date: Sep 2004
Location: Bremen, Germany
Posts: 3,999
Re: List of Fonts

Hey there,
You can get al supported fonts with AdaptFontEventArgs.SupportedFonts.
You will need to trigger that event with the FontSettings Class.
__________________
Regards,
Gunnar Giffey, TX Text Control
[Forum Administrator]
Reply With Quote
  #3  
Old March 2, 2010
aikar aikar is offline
Registered User
 
Join Date: Mar 2010
Posts: 3
Re: List of Fonts

Thanks for your help

Unfortunately, I don't really understand how to use this approach.

The AdaptFontEvent is raised, when I want to use a font that is not supported? Do I really have to use a "wrong" font to get a list of the usable ones?

I would also need this list for a combo box when I create a new document, so I even haven't used a font to adapt.

Is there an example for how to get SupportedFonts?

thx
Reply With Quote
  #4  
Old March 2, 2010
Gunnar Giffey's Avatar
Gunnar Giffey Gunnar Giffey is offline
TX Support Engineer
TX Text Control
 
Join Date: Sep 2004
Location: Bremen, Germany
Posts: 3,999
Re: List of Fonts

If you just want to get all fonts from the TextControl, please use GetSupportedFonts().
I thought you wanted to to limit the available fonts.
__________________
Regards,
Gunnar Giffey, TX Text Control
[Forum Administrator]
Reply With Quote
  #5  
Old March 2, 2010
aikar aikar is offline
Registered User
 
Join Date: Mar 2010
Posts: 3
Re: List of Fonts

That was, what I was searching for.

I wonder that I did not see it. Thanks a lot.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Exception on non-supported fonts and/or method to return installed fonts Jonathan Maron Feature Request Forum 1 May 18, 2009 18:21:15
List renumbering problems PvZ TX Text Control .NET 2 May 7, 2009 14:46:43
Fonts List Unregistered TX Text Control ActiveX 1 April 6, 2005 15:27:15
Font list moroandrea TX Text Control .NET 2 April 28, 2004 17:40:14
Fonts list Tamara TX Text Control ActiveX 3 January 21, 2003 17:01:25


All times are GMT +1. The time now is 06:12:51.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© 1991 - 2010 The Imaging Source Europe GmbH