freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2-demos] master 17c3487: * src/output.c (put_unicode_be16_strin


From: Alexei Podtelezhnikov
Subject: [freetype2-demos] master 17c3487: * src/output.c (put_unicode_be16_string): Fix UTF16 default.
Date: Mon, 16 Oct 2017 22:48:46 -0400 (EDT)

branch: master
commit 17c3487608024bbfabdc3b97e82c69053f2e052e
Author: Colin Fahey <address@hidden>
Commit: Alexei Podtelezhnikov <address@hidden>

    * src/output.c (put_unicode_be16_string): Fix UTF16 default.
---
 ChangeLog    | 4 ++++
 src/output.c | 8 ++++----
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 07bd47e..f3d2eb1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2017-10-16  Colin Fahey  <address@hidden>
+
+       * src/output.c (put_unicode_be16_string): Fix UTF16 default.
+
 2017-10-14  Werner Lemberg  <address@hidden>
 
        [ftbench] Add new test for creating face and loading glyph together.
diff --git a/src/output.c b/src/output.c
index a532a1a..d068eb0 100644
--- a/src/output.c
+++ b/src/output.c
@@ -292,10 +292,10 @@
           *out++ = '\\';
           *out++ = 'U';
           *out++ = '+';
-          *out++ = hexdigit[( string[i] >> 12 ) & 0xF];
-          *out++ = hexdigit[( string[i] >> 8  ) & 0xF];
-          *out++ = hexdigit[( string[i] >> 4  ) & 0xF];
-          *out++ = hexdigit[  string[i]         & 0xF];
+          *out++ = hexdigit[( ch >> 12 ) & 0xF];
+          *out++ = hexdigit[( ch >> 8  ) & 0xF];
+          *out++ = hexdigit[( ch >> 4  ) & 0xF];
+          *out++ = hexdigit[  ch         & 0xF];
         }
         continue;
       }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]