Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Forms form RichTextBox
Hi im working on some sort of a text editor for fun, and i ran into a problem, i wanna scale the text selected or all text in a rtfbox, im wel aware of ".Zoomfactor" but this dont scale the "text" so it doesn't give the wished result. Also it must be a scaling, so i cant just say font.size *= x since this will give all text the same size from my knowledge. please, if anyone could help me out either provide some sample code or give some leads to use full websites (even that it feels like i've been around the most sites) i would be great full.
 
Thanks - Jackie
 
EDIT: Just checked, word, and wordpad, and it does have this function im asking for, (increase/decrease text) in 2003 and newer it should be the buttons beside the text-size dropdown-menu
Posted 18-Nov-12 12:16pm
Edited 18-Nov-12 12:34pm
v3

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Found a way, i simply just incrased the size of every char one by one, maybe not the best solution, but it works for now! thanks
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 475
1 OriginalGriff 280
2 BillWoodruff 230
3 CPallini 220
4 ChauhanAjay 149
0 OriginalGriff 6,609
1 Sergey Alexandrovich Kryukov 6,240
2 CPallini 5,180
3 George Jonsson 3,574
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 2 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100