I am using font named 'zrnic cyr' in my rtf files. When TRichView loads its content from rtf file it cuts 'cyr' from fontname and can't display right font for my text items (font 'zrnic' not installed in my system, only 'zrnic cyr').
Is it right behavior or how can i change this without source changing??
'cyr' in fontname
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
No, you cannot do it without modification of TRichView source.
The modification is simple: in RVRTF.pas, remove the call of RemoveChasetFromNames method.
I do not plan to remove this call from the main TRichView code, because in 99% cases it does a correct work, and fonts like 'Arial Cyr' do not exist in newer versions of Windows
The modification is simple: in RVRTF.pas, remove the call of RemoveChasetFromNames method.
I do not plan to remove this call from the main TRichView code, because in 99% cases it does a correct work, and fonts like 'Arial Cyr' do not exist in newer versions of Windows