Inconsistent rich text behavior or haunted by Arial 10

Inconsistent rich text behavior or haunted by Arial 10

Post by Henry Skog » Sat, 21 Feb 2004 10:39:29


Start Wordpad on a Win2K, XP or Win2K3 (with or without service packs).
Type in a line of text, then insert a picture (for example alt+PrintScrn and
then ctrl-V, makes for a nice recursive effect), then insert another line of
text.
Select the whole shebang with ctrl+A and change the font to, say, Times New
Roman and the font size to 28. Verify that you indeed have font size 28
everywhere by moving the caret to each of the three "paragraphs". Save to an
.RTF file, exit Wordpad. Start again and open the same file.

Position the caret on the picture, it's now reformatted to Arial 10, i.e. Times
New Roman 28 was just a transient effect. Or was it? If you open that same
document in Microsoft Word or the free Word viewer, Times New Roman 28 is still
around. And even more intriguing, if you try on an older OS, like Windows NT or
95: starting Wordpad there and open the .rtf file. Voila, Times New Roman 28!

The problem for us is that programmatic rendering of .rtf files (by creating our
own rich text control in Visual Studio) exhibits the same syndrome, i.e. Arial
10 rears its ugly head, and many of our .rtf files, which were created using
Windows NT, now looks corrupt on the screen or printer in Windows 2000 or XP.
We've tried rendering using a windowless rich edit control, fiddling with the
style/compatibility bits in riched20.dll, and tried all the 3.x and 4.0 versions
of riched20.dll (there all 11 different). To no avail; like death and taxes,
Arial 10 now reigns as the supreme format for all of our embedded pictures.

Is there someway for us to reestablish the correct formatting when rendering our
.rtf files on Windows 2000? (Using Word or the Word viewer is unfortunately not
acceptable, since we need a windowless component solution.)
/Rgrds Henry Skoglund
 
 
 

1. Wake-on-LAN, iMac G5, OS-X 10.3.6, inconsistent behavior

2. Arial Italic or Arial font with italic behaviour synthesized??Please help

I have a query related to fonts.Suppose i create my LOGFONT structure
with a fontname(say 'Arial') with style Italic/Bold set.In this case,i
do have "Arial Bold Italic(True Type)" in my window's font's folder so
i should effectively be using this font rather than arial font with
bold/italic behaviour synthesized to render my text as it would have
been in most cases(say MS Mincho,no corresponding MS Mincho Italic
font) when there is no corresponding font present with style.

As an input i have glyphs,my logfont structure and i want to know
whether i should use "Arial Bold Italic" OR "Arial" font with bold/
italic behaviour synthesis.Please note that there are many
glyphs(arabic) which are not present in Arial Italic but in Arial.I am
using MLANG to break my test run to have correct font for each text
run.

I hope i have made my point clear.Please help.

3. Printing Rich Text from Rich Text Box v6.0

4. Request for source code for adventure game Haunt on the DEC-10/20

5. My Outlook 2002 defaults to Arial 10 pt.

6. Odd behavior of the Rich Text Box

7. How to set the default font and size to be Arial with 10 size?

8. PPT 2004: Arial 10 acting funny

9. Strange behavior of rich text box with windows xp

10. Rich text behavior with single quotes

11. Any font issue converting Word docx into PDF with Arial 10 font?

12. Arial 10 not spaced properly

13. Any font issue converting Word docx into PDF with Arial 10 fon

14. Problems with font Arial fat / Arial fat italic

15. What's the difference between Arial and Arial (W1)?