[fpc-devel] Unicodestring branch, please test and help fixing

Anton Kavalenka anton.k at tut.by
Thu Sep 11 09:54:01 CEST 2008


Florian Klaempfl wrote:
> Graeme Geldenhuys schrieb:
>   
>> Remember, Unicode support is much more that simply storing and
>> displaying text. You have various encodings, RTL or LTR direction etc.
>>  I can't see how a simple type can keep track of all such information
>> - but then, I don't know the internals of FPC either.  ;-)
>>     
>
> How would an OOP approach solve this? The problem isn't the tracking of
> things like encoding or directions but handling all these information.
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>
>   
procedure TLabel.Paint(...)
begin
  if *Caption.IsRTL *then
    DrawCaptionRTL(0,0,*Caption.AsUTF8*, flags)
 else
    DrawCaption(0,0,*Caption.AsUTF8*, flags);
end;

Is not that enough?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20080911/50069601/attachment.html>


More information about the fpc-devel mailing list