trichview.com

trichview.support




Re: Incorrect Display of Unicode-Text


Return to index


Author

Message

Bernhard Geyer

Posted: 01/29/2003 11:49:32


Thanks,


I try following to solve this problem:

After Loading and Formating the RTF-File with the cyrillic-letters, I

change all RVStyle.TextStyles.FontNames with a algorithm like this:


foreach RVStyle.TextStyles do

begin

  if not IsInstalledFont(RVStyle.TextStyle.FontName) then

    RVStyle.TextStyle.FontName := BestNextFont(RVStyle.TextStyle.FontName);

end;


But when I do this, the text is spaced for this file (RichView.gif).


The Read-Options for TRichView are (only changed properties):

ParaStyleMode = rvrsAddIfNeeded

TextStyleMode = rvrsAddIfNeeded

UnicodeMode = rvruMixed;


Perhaps there are some other solution to replace invalid Font-Setting

(perhaps

you have some for me :-) ), or you have a hint to enhance my solution.




"Sergey Tkachenko" <[email protected]> schrieb im Newsbeitrag

news:[email protected]...

> http://www.trichview.com/resources/actions/

>

> > Which demo is the ActionText-Demo? I didn't find in in the

> Demos-Directory.

> >

> > "Sergey Tkachenko" <[email protected]> schrieb im Newsbeitrag

> > news:[email protected]...

> > > Hi,

> > >

> > > It uses font "Tahoma Cyr" that does not exist.

> > > After changing font to "Tahoma" all is displayed correctly (I tested

in

> > > ActionTest demo)

>

>

>



begin 666 RichView.gif

M1TE&.#=AN@`C`/<``````( ```" `(" ````@( `@ " @,# P,#<P*;*\$ @

M`& @`( @`* @`, @`. @``! `"! `$! `&! `(! `*! `,! `.! ``!@`"!@

M`$!@`&!@`(!@`*!@`,!@`.!@``" `"" `$" `&" `(" `*" `," `." ``"@

M`""@`$"@`&"@`("@`*"@`,"@`."@``# `"# `$# `&# `(# `*# `,# `.#

M``#@`"#@`$#@`&#@`(#@`*#@`,#@`.#@````0" `0$ `0& `0( `0* `0, `

M0. `0 `@0" @0$ @0& @0( @0* @0, @0. @0 ! 0"! 0$! 0&! 0(! 0*!

M0,! 0.! 0 !@0"!@0$!@0&!@0(!@0*!@0,!@0.!@0 " 0"" 0$" 0&" 0("

M0*" 0," 0." 0 "@0""@0$"@0&"@0("@0*"@0,"@0."@0 # 0"# 0$# 0&#

M0(# 0*# 0,# 0.# 0 #@0"#@0$#@0&#@0(#@0*#@0,#@0.#@0 ``@" `@$ `

M@& `@( `@* `@, `@. `@ `@@" @@$ @@& @@( @@* @@, @@. @@ ! @"!

M@$! @&! @(! @*! @,! @.! @ !@@"!@@$!@@&!@@(!@@*!@@,!@@.!@@ "

M@"" @$" @&" @(" @*" @," @." @ "@@""@@$"@@&"@@("@@*"@@,"@@."@

M@ # @"# @$# @&# @(# @*# @,# @.# @ #@@"#@@$#@@&#@@(#@@*#@@,#@

M@.#@@ ``P" `P$ `P& `P( `P* `P, `P. `P `@P" @P$ @P& @P( @P* @

MP, @P. @P ! P"! P$! P&! P(! P*! P,! P.! P !@P"!@P$!@P&!@P(!@

MP*!@P,!@P.!@P " P"" P$" P&" P(" P*" P," P." P "@P""@P$"@P&"@

MP("@P*"@P,"@P."@P # P"# P$# P&# P(# P*# P/_[\*"@I(" @/\```#_

M`/__````__\`_P#______R'Y! ``````+ ````"Z`",```C_`/\)'$BPH,&#

M"!,J7,BPH<.'$"-*G$BQHL6+&#-JW,BQH\>/($.*'$FRI,F3*%.J7,FRI<N7

M,&/*G$FSIDV6```(S"DQIT^=-X/B!,I3*,>B`Y'N!&JTZ4RE_Z!"=:IPJL^&

M5I5.A2F5Z5*;1:421)K5:\*R8\W&[%IPZ\NP9G]JC7MUJ=RD='G*_2F3;5JJ

M!NOB;1M5[4&Q>O>ZS3CW[U?'@Q]'+BRXXN+"9]4VOCP9<V.2GR7[G>Q7L6&L

M=]NFQLN7--'7:6$_GMOZ8VC,DG/CWCU;-<6P@9E6)BN\^&RO=8GG-FT;N?/.

MO'>/#M[3^%C?RZTKEXX;;F?:'F]OL8=.7''LV@_A7BZ_VOOQK^['1^<\4;QU

M\L7-LT;O$+AT_=']]5EB[]F'W5'/N7:@:'1E5MU.#$*V&'_>:5<9;]-I9*!N

MHV4(67JO;8AA?@U29N%T'F(D8H;R=;<@1 #:=2& %W8W8%;G\:>A:>WQN!=^

M,M8846O.;;4:9=3-%V*20=+WFX^"0=GC@4=>I"-@6-+D9)9<=NGEEV"&*>:8

59)9IYIEHIJGFFFRVZ>:;<"84$ `[

`

end





Powered by ABC Amber Outlook Express Converter