Browse Source

Text: don't use HarfBuzz ICU functions.

Apparently not needed at all.
pull/7/head
Vladimír Vondruš 13 years ago
parent
commit
0e5b676e27
  1. 2
      src/Text/TextRenderer.cpp

2
src/Text/TextRenderer.cpp

@ -16,7 +16,6 @@
#include "TextRenderer.h"
#include <hb.h>
#include <hb-icu.h>
#include "Math/Point2D.h"
#include "Math/Point3D.h"
@ -53,7 +52,6 @@ class TextLayouter {
TextLayouter::TextLayouter(Font& font, const GLfloat size, const std::string& text): font(font), size(size) {
/* Prepare HarfBuzz buffer */
buffer = hb_buffer_create();
hb_buffer_set_unicode_funcs(buffer, hb_icu_get_unicode_funcs());
hb_buffer_set_direction(buffer, HB_DIRECTION_LTR);
hb_buffer_set_script(buffer, HB_SCRIPT_LATIN);
hb_buffer_set_language(buffer, hb_language_from_string("en", 2));

Loading…
Cancel
Save