Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » RichText,QTF,RTF... » Default font and fontsize in RichEdit
Default font and fontsize in RichEdit [message #24721] Thu, 28 January 2010 17:31 Go to next message
MatthiasG is currently offline  MatthiasG
Messages: 27
Registered: January 2008
Location: Germany
Promising Member
Hello,

can someone give me a little example how to set the default font and fontsize in a richedit field?

greetings,
Matthias
Re: Default font and fontsize in RichEdit [message #24782 is a reply to message #24721] Fri, 29 January 2010 19:49 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
	RichPara::Format f;
	(Font&)f = StdFont();

	RichText::FormatInfo fi;
	fi.Set(f);

	editor.ApplyFormatInfo(fi);
Previous Topic: Bad text quality problem in Qtf
Next Topic: RichText scrolling problem
Goto Forum:
  


Current Time: Thu Mar 28 19:14:37 CET 2024

Total time taken to generate the page: 0.00880 seconds