I use designer (or could use code) to change the default font for the Richtextbox and either type some text into the box or copy and paste from word a small text line which changes fonts and colours and then press button.
Test program has a richtextbox (richtextbox1) and a listbox (lstFont) defined with a button (button2) to start the test. I'm sorry this was just a small extract used with debug with breakpoints to show that the selection font went to nothing when font was switched to corsiva. I have seen posts that show this font does not have a "regular" style but is there a way round this, presumably other fonts could exist that cause the same problem. If I set the default font for the box to be monotype corsiva this starts fine, picks up font changes to say Arial but errors when reverting later back to monotype. The new colour and backcolour have been updated correctly but the box.selectionfont is nothing. This works fine until i reach a change of font to monotype corsiva which errors as Null Reference exception was caught. This is based on several published suggested methods and covers change of colour, backcolour and font. We are happy to work with you under a NDA.I have a small test program that iterates character by character to read through the contents of a richtextbox and convert to html to include in an e-mail. Please give us a call or complete the form below to discuss your project. We supply dual and tri colour fonts for exclusive & non-exclusive web use. Stomp Swirl is one Dual Colour web-suitable font that works in all modern browsers. Until recently we did not recommend their use but now Chrome and anyone with Internet Explorer 9 or above can render CSS3 pages making dual colour fonts suitable for virtually all websites.Įg. then you can make use of CSS3 features that allow the use of web hosted fonts then even dual/triple colour text is possible on your web pages without the use of images like " Stomp Swirl". If you are sure that the vast majority of your visitors will be using secure, modern and Standards Compliant browsers like Opera, Firefox, Safari, Froyo.
Here are a list of web safe font families you should choose from when designing a site or HTML email if you want it to look similar to all visitors:įont-family:Arial, 'DejaVu Sans', 'Liberation Sans', Freesans, sans-serif įont-family:'Arial Narrow', 'Nimbus Sans L', sans-serif įont-family:'Arial Black', Gadget, sans-serif įont-family:'Bookman Old Style', Bookman, 'URW Bookman L', 'Palatino Linotype', serif įont-family:'Century Gothic', futura, 'URW Gothic L', Verdana, sans-serif įont-family:Consolas, 'Lucida Console', 'DejaVu Sans Mono', monospace įont-family:'Courier New', Courier, 'Nimbus Mono L', serif, monospace įont-family:Constantina, Georgia, 'Nimbus Roman No9 L', serif įont-family:Helvetica, Arial, 'DejaVu Sans', 'Liberation Sans', Freesans, sans-serif įont-family:Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif įont-family:'Lucida Sans Unicode','Lucida Grande', 'Lucida Sans', 'DejaVu Sans Condensed', sans-serif įont-family:Cambria,'Palatino Linotype','Book Antiqua','URW Palladio L',serif įont-family:symbol, 'Standard Symbols L' įont-family:Cambria, 'Times New Roman', 'Nimbus Roman No9 L', 'Freeserif', Times, serif įont-family:Verdana, Geneva, 'DejaVu Sans', sans-serif įont-family:'Monotype Corsiva', 'Apple Chancery', 'ITC Zapf Chancery', 'URW Chancery L', cursive įont-family:'Monotype Sorts', dingbats, 'ITC Zapf Dingbats', fantasy Although modern browsers support any font hosted on a website, older browsers only support fonts that are installed on the operating system (platform) used to view the website. When designing a website there are a number of platforms (Windows, Linux, Mac, Tablet, Mobile.) and browsers (Opera, Firefox, Safari, Froyo, Internet Explorer.) to consider.