Commit b61dfff0 authored by Michael Natterer's avatar Michael Natterer 😴
Browse files

app: use U+2060 WORD JOINER for manual kerning

What we used before might interact badly with arabic shaping.
parent 8a1a19fc
......@@ -668,7 +668,7 @@ gimp_text_buffer_pre_serialize (GimpTextBuffer *buffer,
GtkTextIter end;
gtk_text_buffer_insert_with_tags (content, &iter,
"\342\200\215", -1,
WORD_JOINER, -1,
tag, NULL);
end = iter;
......
......@@ -26,6 +26,10 @@
#define __GIMP_TEXT_BUFFER_SERIALIZE_H__
#define WORD_JOINER "\342\201\240"
#define WORD_JOINER_LENGTH 3
guint8 * gimp_text_buffer_serialize (GtkTextBuffer *register_buffer,
GtkTextBuffer *content_buffer,
const GtkTextIter *start,
......
......@@ -788,7 +788,7 @@ gimp_text_buffer_get_iter_index (GimpTextBuffer *buffer,
if (g_list_find (buffer->spacing_tags, tag))
{
index += strlen ("\342\200\215");
index += WORD_JOINER_LENGTH;
break;
}
......@@ -848,7 +848,7 @@ gimp_text_buffer_get_iter_at_index (GimpTextBuffer *buffer,
if (g_list_find (buffer->spacing_tags, tag))
{
index -= strlen ("\342\200\215");
index -= WORD_JOINER_LENGTH;
break;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment