mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-15 12:29:32 +02:00
* fixed handling of non-BMP characters in Video.ExtendedGraphemeClusterDisplayWidth
git-svn-id: branches/unicodekvm@48789 -
This commit is contained in:
parent
fe7324a04c
commit
c63534af48
@ -459,7 +459,7 @@ begin
|
||||
if (FirstCodePoint>=$D800) and (FirstCodePoint<=$DBFF) and (Length(EGC)>=2) and
|
||||
(Ord(EGC[2])>=$DC00) and (Ord(EGC[2])<=$DFFF) then
|
||||
begin
|
||||
FirstCodePoint := ((FirstCodePoint-$D800) shl 10) or (Ord(EGC[2])-$DC00);
|
||||
FirstCodePoint := $10000+((FirstCodePoint-$D800) shl 10) or (Ord(EGC[2])-$DC00);
|
||||
end;
|
||||
{ todo: handle emoji + modifiers }
|
||||
case GetEastAsianWidth(FirstCodePoint) of
|
||||
|
Loading…
Reference in New Issue
Block a user