2011-02-01 04:17:52 -08:00
|
|
|
#include "evas_common.h"
|
|
|
|
#include "evas_font_private.h"
|
2011-01-30 02:36:39 -08:00
|
|
|
#include "evas_text_utils.h"
|
|
|
|
#include "language/evas_bidi_utils.h"
|
|
|
|
#include "language/evas_language_utils.h"
|
|
|
|
#include "evas_font_ot.h"
|
|
|
|
|
|
|
|
void
|
|
|
|
evas_common_text_props_bidi_set(Evas_Text_Props *props,
|
|
|
|
Evas_BiDi_Paragraph_Props *bidi_par_props, size_t start)
|
|
|
|
{
|
|
|
|
#ifdef BIDI_SUPPORT
|
|
|
|
props->bidi.dir = (evas_bidi_is_rtl_char(
|
|
|
|
bidi_par_props,
|
|
|
|
0,
|
|
|
|
start)) ? EVAS_BIDI_DIRECTION_RTL : EVAS_BIDI_DIRECTION_LTR;
|
|
|
|
#else
|
|
|
|
(void) start;
|
|
|
|
(void) bidi_par_props;
|
|
|
|
props->bidi.dir = EVAS_BIDI_DIRECTION_LTR;
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2011-05-29 02:20:18 -07:00
|
|
|
evas_common_text_props_script_set(Evas_Text_Props *props, Evas_Script_Type scr)
|
2011-01-30 02:36:39 -08:00
|
|
|
{
|
2011-05-29 02:20:18 -07:00
|
|
|
props->script = scr;
|
2011-01-30 02:36:39 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
evas_common_text_props_content_copy_and_ref(Evas_Text_Props *dst,
|
|
|
|
const Evas_Text_Props *src)
|
|
|
|
{
|
|
|
|
memcpy(dst, src, sizeof(Evas_Text_Props));
|
2011-01-30 02:43:34 -08:00
|
|
|
evas_common_text_props_content_ref(dst);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
evas_common_text_props_content_ref(Evas_Text_Props *props)
|
|
|
|
{
|
2011-02-10 07:29:13 -08:00
|
|
|
/* No content in this case */
|
|
|
|
if (!props->info)
|
2011-02-06 00:31:46 -08:00
|
|
|
return;
|
|
|
|
|
2011-02-01 04:17:52 -08:00
|
|
|
props->info->refcount++;
|
2011-01-30 02:36:39 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
evas_common_text_props_content_unref(Evas_Text_Props *props)
|
|
|
|
{
|
2011-02-10 07:29:13 -08:00
|
|
|
/* No content in this case */
|
|
|
|
if (!props->info)
|
2011-02-06 00:31:46 -08:00
|
|
|
return;
|
2011-01-30 02:36:39 -08:00
|
|
|
|
2011-02-01 04:17:52 -08:00
|
|
|
if (--(props->info->refcount) == 0)
|
|
|
|
{
|
|
|
|
if (props->info->glyph)
|
|
|
|
free(props->info->glyph);
|
2011-01-30 02:38:15 -08:00
|
|
|
#ifdef OT_SUPPORT
|
2011-02-01 04:17:52 -08:00
|
|
|
if (props->info->ot)
|
|
|
|
free(props->info->ot);
|
2011-01-30 02:38:15 -08:00
|
|
|
#endif
|
2011-02-01 04:17:52 -08:00
|
|
|
free(props->info);
|
|
|
|
props->info = NULL;
|
|
|
|
}
|
2011-01-30 02:38:15 -08:00
|
|
|
}
|
|
|
|
|
2011-06-02 08:36:50 -07:00
|
|
|
/* Returns the index of the logical char in the props. */
|
|
|
|
EAPI int
|
|
|
|
evas_common_text_props_index_find(Evas_Text_Props *props, int _cutoff)
|
2011-05-05 04:05:37 -07:00
|
|
|
{
|
|
|
|
#ifdef OT_SUPPORT
|
2011-06-02 08:36:50 -07:00
|
|
|
Evas_Font_OT_Info *ot_info;
|
|
|
|
int min = 0;
|
|
|
|
int max = props->len - 1;
|
|
|
|
int mid;
|
|
|
|
|
2011-05-05 04:05:37 -07:00
|
|
|
_cutoff += props->text_offset;
|
2011-06-02 08:36:50 -07:00
|
|
|
ot_info = props->info->ot + props->start;
|
|
|
|
if (props->bidi.dir == EVAS_BIDI_DIRECTION_RTL)
|
|
|
|
{
|
|
|
|
/* Monotonic in a descending order */
|
|
|
|
do
|
|
|
|
{
|
|
|
|
mid = (min + max) / 2;
|
|
|
|
|
|
|
|
if (_cutoff > (int) ot_info[mid].source_cluster)
|
|
|
|
max = mid - 1;
|
|
|
|
else if (_cutoff < (int) ot_info[mid].source_cluster)
|
|
|
|
min = mid + 1;
|
|
|
|
else
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
while (min <= max);
|
|
|
|
}
|
|
|
|
else
|
2011-05-05 04:05:37 -07:00
|
|
|
{
|
2011-06-02 08:36:50 -07:00
|
|
|
/* Monotonic in an ascending order */
|
|
|
|
do
|
2011-05-05 04:05:37 -07:00
|
|
|
{
|
2011-06-02 08:36:50 -07:00
|
|
|
mid = (min + max) / 2;
|
|
|
|
|
|
|
|
if (_cutoff < (int) ot_info[mid].source_cluster)
|
|
|
|
max = mid - 1;
|
|
|
|
else if (_cutoff > (int) ot_info[mid].source_cluster)
|
|
|
|
min = mid + 1;
|
|
|
|
else
|
|
|
|
break;
|
2011-05-05 04:05:37 -07:00
|
|
|
}
|
2011-06-02 08:36:50 -07:00
|
|
|
while (min <= max);
|
2011-05-05 04:05:37 -07:00
|
|
|
}
|
|
|
|
|
2011-06-02 08:36:50 -07:00
|
|
|
/* If we didn't find, abort */
|
|
|
|
if (min > max)
|
|
|
|
return -1;
|
|
|
|
|
|
|
|
ot_info += mid;
|
|
|
|
if (props->bidi.dir == EVAS_BIDI_DIRECTION_RTL)
|
|
|
|
{
|
|
|
|
/* Walk to the last one of the same cluster */
|
|
|
|
for ( ; mid < (int) props->len ; mid++, ot_info++)
|
|
|
|
{
|
|
|
|
if (ot_info->source_cluster != (size_t) _cutoff)
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
mid = props->len - mid;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
/* Walk to the last one of the same cluster */
|
|
|
|
for ( ; mid >= 0 ; mid--, ot_info--)
|
|
|
|
{
|
|
|
|
if (ot_info->source_cluster != (size_t) _cutoff)
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
mid++;
|
|
|
|
}
|
|
|
|
|
|
|
|
return mid;
|
2011-05-05 04:05:37 -07:00
|
|
|
#else
|
2011-06-02 08:36:50 -07:00
|
|
|
return _cutoff;
|
|
|
|
(void) props;
|
2011-05-05 04:05:37 -07:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2011-04-26 07:20:38 -07:00
|
|
|
/* Won't work in the middle of ligatures, assumes cutoff < len.
|
|
|
|
* Also won't work in the middle of indic words, should handle that in a
|
|
|
|
* smart way. */
|
2011-01-30 02:40:30 -08:00
|
|
|
EAPI void
|
|
|
|
evas_common_text_props_split(Evas_Text_Props *base,
|
2011-02-10 07:02:26 -08:00
|
|
|
Evas_Text_Props *ext, int _cutoff)
|
2011-01-30 02:40:30 -08:00
|
|
|
{
|
2011-02-10 07:02:26 -08:00
|
|
|
size_t cutoff;
|
|
|
|
|
|
|
|
/* Translate text cutoff pos to string object cutoff point */
|
|
|
|
#ifdef OT_SUPPORT
|
2011-06-02 08:36:50 -07:00
|
|
|
_cutoff = evas_common_text_props_index_find(base, _cutoff);
|
2011-02-10 07:02:26 -08:00
|
|
|
|
2011-06-02 08:36:50 -07:00
|
|
|
if (_cutoff > 0)
|
2011-02-10 07:02:26 -08:00
|
|
|
{
|
2011-06-02 08:36:50 -07:00
|
|
|
cutoff = (size_t) _cutoff;
|
2011-02-10 07:02:26 -08:00
|
|
|
}
|
2011-06-02 08:36:50 -07:00
|
|
|
else
|
2011-02-10 07:02:26 -08:00
|
|
|
{
|
2011-06-02 08:36:50 -07:00
|
|
|
ERR("Couldn't find the cutoff position. Is it inside a cluster?");
|
2011-02-10 07:02:26 -08:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
cutoff = (size_t) _cutoff;
|
|
|
|
#endif
|
|
|
|
|
2011-02-01 04:17:52 -08:00
|
|
|
evas_common_text_props_content_copy_and_ref(ext, base);
|
|
|
|
if (base->bidi.dir == EVAS_BIDI_DIRECTION_RTL)
|
|
|
|
{
|
|
|
|
ext->start = base->start;
|
|
|
|
ext->len = base->len - cutoff;
|
|
|
|
base->start = (base->start + base->len) - cutoff;
|
|
|
|
base->len = cutoff;
|
|
|
|
|
|
|
|
#ifdef OT_SUPPORT
|
|
|
|
ext->text_offset =
|
|
|
|
ext->info->ot[ext->start + ext->len - 1].source_cluster;
|
|
|
|
#else
|
|
|
|
ext->text_offset = base->text_offset + base->len;
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
ext->start = base->start + cutoff;
|
|
|
|
ext->len = base->len - cutoff;
|
|
|
|
base->len = cutoff;
|
|
|
|
|
2011-01-30 05:58:06 -08:00
|
|
|
#ifdef OT_SUPPORT
|
2011-02-01 04:17:52 -08:00
|
|
|
ext->text_offset = ext->info->ot[ext->start].source_cluster;
|
|
|
|
#else
|
|
|
|
ext->text_offset = base->text_offset + base->len;
|
2011-01-30 05:58:06 -08:00
|
|
|
#endif
|
2011-02-01 04:17:52 -08:00
|
|
|
}
|
2011-02-13 04:57:37 -08:00
|
|
|
ext->text_len = base->text_len - (ext->text_offset - base->text_offset);
|
|
|
|
base->text_len = (ext->text_offset - base->text_offset);
|
2011-01-30 02:40:30 -08:00
|
|
|
}
|
|
|
|
|
2011-01-30 02:41:42 -08:00
|
|
|
/* Won't work in the middle of ligatures */
|
|
|
|
EAPI void
|
|
|
|
evas_common_text_props_merge(Evas_Text_Props *item1,
|
|
|
|
const Evas_Text_Props *item2)
|
|
|
|
{
|
2011-02-01 04:17:52 -08:00
|
|
|
if (item1->info != item2->info)
|
|
|
|
{
|
|
|
|
ERR("tried merge back items that weren't together in the first place.");
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (item1->bidi.dir == EVAS_BIDI_DIRECTION_RTL)
|
|
|
|
{
|
|
|
|
item1->start = item2->start;
|
|
|
|
}
|
|
|
|
|
|
|
|
item1->len += item2->len;
|
2011-02-13 04:57:37 -08:00
|
|
|
item1->text_len += item2->text_len;
|
2011-02-01 04:17:52 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
EAPI Eina_Bool
|
2011-05-29 02:20:18 -07:00
|
|
|
evas_common_text_props_content_create(void *_fi, const Eina_Unicode *text,
|
2011-04-13 01:37:01 -07:00
|
|
|
Evas_Text_Props *text_props, const Evas_BiDi_Paragraph_Props *par_props,
|
|
|
|
size_t par_pos, int len)
|
2011-02-01 04:17:52 -08:00
|
|
|
{
|
2011-05-29 02:20:18 -07:00
|
|
|
RGBA_Font_Int *fi = (RGBA_Font_Int *) _fi;
|
2011-02-01 04:17:52 -08:00
|
|
|
|
|
|
|
if (text_props->info)
|
|
|
|
{
|
|
|
|
evas_common_text_props_content_unref(text_props);
|
|
|
|
}
|
2011-02-10 07:29:13 -08:00
|
|
|
if (len == 0)
|
|
|
|
{
|
|
|
|
text_props->info = NULL;
|
|
|
|
text_props->start = text_props->len = text_props->text_offset = 0;
|
|
|
|
}
|
2011-02-01 04:17:52 -08:00
|
|
|
text_props->info = calloc(1, sizeof(Evas_Text_Props_Info));
|
|
|
|
|
2011-04-26 07:20:41 -07:00
|
|
|
text_props->font_instance = fi;
|
|
|
|
|
2011-05-03 09:18:17 -07:00
|
|
|
evas_common_font_int_reload(fi);
|
|
|
|
if (fi->src->current_size != fi->size)
|
|
|
|
{
|
|
|
|
FTLOCK();
|
|
|
|
FT_Activate_Size(fi->ft.size);
|
|
|
|
FTUNLOCK();
|
|
|
|
fi->src->current_size = fi->size;
|
|
|
|
}
|
|
|
|
|
2011-05-02 02:28:00 -07:00
|
|
|
#ifdef OT_SUPPORT
|
2011-04-26 07:20:41 -07:00
|
|
|
size_t char_index;
|
|
|
|
Evas_Font_Glyph_Info *gl_itr;
|
|
|
|
Evas_Coord pen_x = 0, adjust_x = 0;
|
|
|
|
(void) par_props;
|
|
|
|
(void) par_pos;
|
|
|
|
|
2011-05-29 02:20:18 -07:00
|
|
|
evas_common_font_ot_populate_text_props(text, text_props, len);
|
2011-04-26 07:20:41 -07:00
|
|
|
|
2011-03-20 08:05:05 -07:00
|
|
|
gl_itr = text_props->info->glyph;
|
2011-02-01 04:17:52 -08:00
|
|
|
for (char_index = 0 ; char_index < text_props->len ; char_index++)
|
|
|
|
{
|
2011-05-29 05:03:20 -07:00
|
|
|
FT_UInt idx;
|
2011-02-01 04:17:52 -08:00
|
|
|
RGBA_Font_Glyph *fg;
|
2011-02-16 08:36:16 -08:00
|
|
|
Eina_Bool is_replacement = EINA_FALSE;
|
|
|
|
/* If we got a malformed index, show the replacement char instead */
|
2011-03-20 08:05:05 -07:00
|
|
|
if (gl_itr->index == 0)
|
2011-02-16 08:36:16 -08:00
|
|
|
{
|
2011-05-03 07:36:47 -07:00
|
|
|
gl_itr->index = evas_common_get_char_index(fi, REPLACEMENT_CHAR);
|
2011-02-16 08:36:16 -08:00
|
|
|
is_replacement = EINA_TRUE;
|
|
|
|
}
|
2011-05-29 05:03:20 -07:00
|
|
|
idx = gl_itr->index;
|
2011-02-01 04:17:52 -08:00
|
|
|
LKL(fi->ft_mutex);
|
2011-05-29 05:03:20 -07:00
|
|
|
fg = evas_common_font_int_cache_glyph_get(fi, idx);
|
2011-02-01 04:17:52 -08:00
|
|
|
if (!fg)
|
|
|
|
{
|
|
|
|
LKU(fi->ft_mutex);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
LKU(fi->ft_mutex);
|
2011-04-20 07:20:51 -07:00
|
|
|
|
2011-03-20 08:05:05 -07:00
|
|
|
gl_itr->x_bear = fg->glyph_out->left;
|
|
|
|
gl_itr->width = fg->glyph_out->bitmap.width;
|
2011-02-01 04:17:52 -08:00
|
|
|
/* text_props->info->glyph[char_index].advance =
|
|
|
|
* text_props->info->glyph[char_index].index =
|
|
|
|
* already done by the ot function */
|
|
|
|
if (EVAS_FONT_CHARACTER_IS_INVISIBLE(
|
|
|
|
text[text_props->info->ot[char_index].source_cluster]))
|
2011-04-20 07:20:51 -07:00
|
|
|
{
|
|
|
|
gl_itr->index = 0;
|
|
|
|
/* Reduce the current advance */
|
|
|
|
if (gl_itr > text_props->info->glyph)
|
|
|
|
{
|
|
|
|
adjust_x -= gl_itr->pen_after - (gl_itr - 1)->pen_after;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
adjust_x -= gl_itr->pen_after;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
if (is_replacement)
|
|
|
|
{
|
|
|
|
/* Update the advance accordingly */
|
|
|
|
adjust_x += (pen_x + (fg->glyph->advance.x >> 16)) -
|
|
|
|
gl_itr->pen_after;
|
|
|
|
}
|
|
|
|
pen_x = gl_itr->pen_after;
|
|
|
|
}
|
|
|
|
gl_itr->pen_after += adjust_x;
|
2011-02-01 04:17:52 -08:00
|
|
|
|
2011-04-26 07:20:41 -07:00
|
|
|
fi = text_props->font_instance;
|
2011-03-20 08:05:05 -07:00
|
|
|
gl_itr++;
|
2011-02-01 04:17:52 -08:00
|
|
|
}
|
|
|
|
#else
|
|
|
|
/* We are walking the string in visual ordering */
|
2011-03-20 08:05:05 -07:00
|
|
|
Evas_Font_Glyph_Info *gl_itr;
|
2011-02-01 04:17:52 -08:00
|
|
|
Eina_Bool use_kerning;
|
|
|
|
FT_UInt prev_index;
|
|
|
|
FT_Face pface = NULL;
|
2011-04-20 07:20:51 -07:00
|
|
|
Evas_Coord pen_x = 0;
|
2011-02-01 04:17:52 -08:00
|
|
|
int adv_d, i;
|
2011-04-13 01:37:01 -07:00
|
|
|
#if !defined(OT_SUPPORT) && defined(BIDI_SUPPORT)
|
2011-05-04 01:46:17 -07:00
|
|
|
Eina_Unicode *base_str = NULL;
|
|
|
|
if (text_props->bidi.dir == EVAS_BIDI_DIRECTION_RTL)
|
|
|
|
{
|
|
|
|
text = base_str = eina_unicode_strndup(text, len);
|
|
|
|
evas_bidi_shape_string(base_str, par_props, par_pos, len);
|
|
|
|
}
|
2011-04-13 01:37:01 -07:00
|
|
|
#else
|
|
|
|
(void) par_props;
|
|
|
|
(void) par_pos;
|
|
|
|
#endif
|
|
|
|
|
2011-02-01 04:17:52 -08:00
|
|
|
FTLOCK();
|
|
|
|
use_kerning = FT_HAS_KERNING(fi->src->ft.face);
|
|
|
|
FTUNLOCK();
|
|
|
|
prev_index = 0;
|
|
|
|
|
|
|
|
i = len;
|
|
|
|
text_props->info->glyph = calloc(len,
|
|
|
|
sizeof(Evas_Font_Glyph_Info));
|
|
|
|
|
|
|
|
if (text_props->bidi.dir == EVAS_BIDI_DIRECTION_RTL)
|
|
|
|
{
|
|
|
|
text += len - 1;
|
|
|
|
adv_d = -1;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
adv_d = 1;
|
|
|
|
}
|
2011-03-20 08:05:05 -07:00
|
|
|
|
|
|
|
gl_itr = text_props->info->glyph;
|
|
|
|
for ( ; i > 0 ; gl_itr++, text += adv_d, i--)
|
2011-02-01 04:17:52 -08:00
|
|
|
{
|
2011-05-26 18:47:58 -07:00
|
|
|
FT_UInt idx;
|
2011-02-01 04:17:52 -08:00
|
|
|
RGBA_Font_Glyph *fg;
|
|
|
|
int _gl, kern;
|
2011-04-20 07:20:51 -07:00
|
|
|
Evas_Coord adv;
|
2011-02-01 04:17:52 -08:00
|
|
|
_gl = *text;
|
|
|
|
if (_gl == 0) break;
|
|
|
|
|
2011-05-26 18:47:58 -07:00
|
|
|
idx = evas_common_get_char_index(fi, _gl);
|
|
|
|
if (idx == 0)
|
2011-02-16 08:36:16 -08:00
|
|
|
{
|
2011-05-26 18:47:58 -07:00
|
|
|
idx = evas_common_get_char_index(fi, REPLACEMENT_CHAR);
|
2011-02-16 08:36:16 -08:00
|
|
|
}
|
2011-03-15 04:00:29 -07:00
|
|
|
|
2011-02-01 04:17:52 -08:00
|
|
|
LKL(fi->ft_mutex);
|
2011-05-26 18:47:58 -07:00
|
|
|
fg = evas_common_font_int_cache_glyph_get(fi, idx);
|
2011-02-01 04:17:52 -08:00
|
|
|
if (!fg)
|
|
|
|
{
|
|
|
|
LKU(fi->ft_mutex);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
kern = 0;
|
|
|
|
|
2011-05-26 18:47:58 -07:00
|
|
|
if ((use_kerning) && (prev_index) && (idx) &&
|
2011-02-01 04:17:52 -08:00
|
|
|
(pface == fi->src->ft.face))
|
|
|
|
{
|
2011-05-26 18:47:58 -07:00
|
|
|
if (evas_common_font_query_kerning(fi, prev_index, idx, &kern))
|
2011-02-01 04:17:52 -08:00
|
|
|
{
|
2011-04-21 01:47:16 -07:00
|
|
|
pen_x += kern;
|
|
|
|
(gl_itr - 1)->pen_after +=
|
|
|
|
EVAS_FONT_ROUND_26_6_TO_INT(kern);
|
2011-02-01 04:17:52 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pface = fi->src->ft.face;
|
|
|
|
LKU(fi->ft_mutex);
|
|
|
|
|
2011-05-26 18:47:58 -07:00
|
|
|
gl_itr->index = idx;
|
2011-03-20 08:05:05 -07:00
|
|
|
gl_itr->x_bear = fg->glyph_out->left;
|
2011-04-20 07:20:51 -07:00
|
|
|
adv = fg->glyph->advance.x >> 10;
|
2011-03-20 08:05:05 -07:00
|
|
|
gl_itr->width = fg->glyph_out->bitmap.width;
|
2011-02-01 04:17:52 -08:00
|
|
|
|
2011-04-20 07:20:51 -07:00
|
|
|
if (EVAS_FONT_CHARACTER_IS_INVISIBLE(_gl))
|
|
|
|
{
|
|
|
|
gl_itr->index = 0;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
pen_x += adv;
|
|
|
|
}
|
|
|
|
|
|
|
|
gl_itr->pen_after = EVAS_FONT_ROUND_26_6_TO_INT(pen_x);
|
|
|
|
|
2011-05-26 18:47:58 -07:00
|
|
|
prev_index = idx;
|
2011-02-01 04:17:52 -08:00
|
|
|
}
|
|
|
|
text_props->len = len;
|
2011-05-02 08:33:35 -07:00
|
|
|
# if !defined(OT_SUPPORT) && defined(BIDI_SUPPORT)
|
2011-05-04 01:46:17 -07:00
|
|
|
if (base_str)
|
|
|
|
free(base_str);
|
2011-05-02 08:33:35 -07:00
|
|
|
# endif
|
2011-01-30 05:58:06 -08:00
|
|
|
#endif
|
2011-02-13 04:57:37 -08:00
|
|
|
text_props->text_len = len;
|
2011-02-01 04:17:52 -08:00
|
|
|
text_props->info->refcount = 1;
|
|
|
|
return EINA_TRUE;
|
2011-01-30 05:55:04 -08:00
|
|
|
}
|