Commit Graph

865 Commits

Author SHA1 Message Date
Tom Hacohen 680c4354ba Evas font-engine: Use len in font_draw instead of \0
SVN revision: 58617
2011-04-13 08:36:51 +00:00
Tom Hacohen ffbe4ed971 Evas font-engine: *text_props_script_set add parameter len.
SVN revision: 58616
2011-04-13 08:36:46 +00:00
Tom Hacohen ad3b167e88 Evas font-engine: Added support for runtime-italic/bold.
Now when setting :style=Oblique/Italic/Cursiva/Bold and etc and there's
no matching font found in the system, adjustments will be done on
runtime to support that feature.

Patch by Myoungwoon Roy Kim (roy_kim).

SVN revision: 58584
2011-04-12 09:05:47 +00:00
Tom Hacohen 5d4f6d3cbe Evas font-engine: Remove most of the passing of strings.
We have string objects, we don't really need them. Draw still uses strings
for metric cache, but that will be removed soon as well.

SVN revision: 58460
2011-04-07 16:25:56 +00:00
Cedric BAIL ca7ff47005 evas: fix broken 16bits engine.
SVN revision: 58394
2011-04-06 15:37:54 +00:00
Brett Nash 073dd42baa Evas: Mask: Fix non-masked image rendering.
Mismerge by me.

SVN revision: 58380
2011-04-06 06:43:33 +00:00
Brett Nash f915ba4ef4 Evas: Mask: Fix undeclared warnings.
Also comment out a function.

SVN revision: 58376
2011-04-06 06:10:31 +00:00
Carsten Haitzler 99e32eebaa warning--
SVN revision: 58374
2011-04-06 05:55:21 +00:00
Brett Nash b96d227334 Masking: Push a bit more arbitrary clipping
This seems to have got lost in my big messup before.  This pushes enough of
mask/arbitrary clip to be somewhat useful.  I need to push a little more soon
for it to be 100% happy, but this is useful level.

SVN revision: 58373
2011-04-06 05:38:38 +00:00
Tom Hacohen 71372d9c65 Evas font-engine: Removed "use-kerning" from draw code.
It hasn't been used for a while. Everything is already calculated in
content_create.

SVN revision: 58215
2011-03-30 15:55:10 +00:00
Tom Hacohen 6f0bad18af Evas font-engine: Use advance instead of width with whitespace size calc
Advance is the real width of whitespace, not the width of the glyph
which is just 0.

SVN revision: 58182
2011-03-29 13:52:30 +00:00
Tom Hacohen 533ef3530e Evas font-engine: Added right_inset_get.
This lets us get the difference between the width and the advance
of a string pretty fast, which means we only need to calculate either
advance or width, because we can now calculate one from the other.

SVN revision: 58181
2011-03-29 13:52:22 +00:00
Tom Hacohen 6c29ea29fb Evas font-engine: Fix font size updating.
This commit fixes two types of misupdate of the font size.
1. Not updating all the fonts when not using Harfbuzz.
2. In rare cases update the wrong font when using Harfbuzz.

SVN revision: 58114
2011-03-27 12:22:13 +00:00
Tom Hacohen df5202b2dd Evas font: Iterate with pointers, not indexes.
SVN revision: 57917
2011-03-20 15:05:05 +00:00
Tom Hacohen 6b2d04c4e0 Evas font: Added a comment to a confusing magic number.
SVN revision: 57913
2011-03-20 08:51:41 +00:00
Carsten Haitzler 3b9219748d warnings--
SVN revision: 57877
2011-03-19 03:56:35 +00:00
Tom Hacohen 34bf708aae Evas font-engine: Fixed bug with different sizes in Korean text.
I'm still not sure if it's just a workaround that just fixes a symptom
of a bigger issue, or actually needed, but this is good until I figure
this out completely.

SVN revision: 57761
2011-03-15 11:00:29 +00:00
Carsten Haitzler 710630d074 Evas: add ico loader!
SVN revision: 57693
2011-03-11 15:07:25 +00:00
Rui Seabra dabd515538 Fix build (from make dist files).
SVN revision: 57573
2011-03-08 11:27:40 +00:00
Tom Hacohen 6a5e4338a1 Evas font-engine: Also unref the fs->file (see last commit).
SVN revision: 57262
2011-02-23 11:53:29 +00:00
Tom Hacohen e0deeea0df Evas font-engine: Ref fs->file if we use it.
SVN revision: 57261
2011-02-23 11:50:09 +00:00
Tom Hacohen 0f77f14ccc Evas font-engine: Fixed walking to use ptrs instead of indexes.
I.e walk using a ptr instead of arr[i] all the time. This should make
things faster. Also as part of the change, fixed char_index to be
an offset inside the string object, and not a general offset which was
bad.

SVN revision: 57241
2011-02-22 13:00:02 +00:00
Carsten Haitzler 75dcf25bb9 fix convert to a8. someone fixed this badly. fix right now.
SVN revision: 57163
2011-02-19 15:53:47 +00:00
Tom Hacohen e1b714f9a9 Evas font: Draw the replacement char whan the glyph can't be found.
SVN revision: 57097
2011-02-16 16:36:16 +00:00
Tom Hacohen bd0695d1b5 Evas encoding: Removed Evas_Encoding and moved to eina_unicode_utf8* instead.
SVN revision: 57096
2011-02-16 16:00:17 +00:00
Tom Hacohen 129a2eb57b Evas encoding: Should be bitwise AND and not logical AND.
SVN revision: 57092
2011-02-16 14:59:36 +00:00
Tom Hacohen 3b7bc65841 Evas encoding: Fixed an issue with the return value of prev_get when at the start.
SVN revision: 57091
2011-02-16 13:17:09 +00:00
Tom Hacohen a01b8fa7ce Evas encoding: Made the utf8 parser more robust.
In now handles more error cases in a more correct way.

SVN revision: 57090
2011-02-16 13:00:50 +00:00
Sebastian Dransfeld bd9d4c5019 Better fix for invalid variable usage.
No point in having to pointers, and fix formatting.

SVN revision: 57037
2011-02-14 20:21:10 +00:00
Tom Hacohen 2a2f88aa2c Evas font: Fixed wrong condition that may cause an invalid read when using OT.
SVN revision: 57024
2011-02-14 15:02:52 +00:00
ChunEon Park be1bc9ae8c evas/engines - fixed invalid variable usage.
SVN revision: 57017
2011-02-14 13:59:36 +00:00
Tom Hacohen 5a646fe6fd Evas font: removed an obsolete comment.
SVN revision: 56989
2011-02-13 16:35:03 +00:00
Tom Hacohen c5ebe60c53 Evas textblock: Improved error message.
SVN revision: 56984
2011-02-13 13:07:37 +00:00
Tom Hacohen 9ed2f6cbc0 Evas font-engine: Added text_len to text_props which fixes
a bug with cursor position and ligatures.

SVN revision: 56983
2011-02-13 12:57:37 +00:00
Carsten Haitzler 0bde1e25a1 fix silly sized scaling issue.
SVN revision: 56962
2011-02-12 14:50:25 +00:00
Tom Hacohen f0eebf1696 Evas text_utils: make the text_props_content_ref/unref more robust.
Don't allocate a text info if the length is 0. No point in that because
content won't be allocated anyway.

SVN revision: 56924
2011-02-10 15:29:13 +00:00
Tom Hacohen b2029f0648 Evas text_utils: fixed a bug with splitting.
Cutoff is the position in the string, not in the string object.

SVN revision: 56920
2011-02-10 15:02:26 +00:00
Tom Hacohen 6e68ec8b42 Evas font-engine: Fixed inset to use the string objects instead of strings.
SVN revision: 56895
2011-02-10 09:03:14 +00:00
Christopher Michael 0bee0601e1 Evas: Fixed a few 'implicit declaration' warnings.
Add missing evas_object_image_source functions.
      (was giving nasty 'implicit declarations' prior to this change)
    Add UNUSED to evas_common_map_rgba for npoints variable
      (wasn't used in that function)
    Fixed a little formatting in evas_object_main.c
    Add UNUSED to the eng_image_map_draw function of the gl_x11 engine.
      (npoints variable not used there)
    Fixed a little formatting in gl_x11 engine.



SVN revision: 56869
2011-02-09 18:39:54 +00:00
Tom Hacohen eaa25d4784 Evas font-query: Fixed compilation warnings. Cedric's compiler doesn't trust me like me compiler trusts me.
SVN revision: 56813
2011-02-08 15:23:22 +00:00
Tom Hacohen 5ceb0ce407 Evas encoding: Improved evas_common_encoding_utf8_get_len to be more consistent with evas_common_encoding_utf8_get_next. This is a semi fix to the issue with malformed utf8 strings (#670)
SVN revision: 56806
2011-02-08 13:22:10 +00:00
Carsten Haitzler c743e4f56c methinks nash you missed doing the pipe pipeline for map changes.
SVN revision: 56805
2011-02-08 12:10:58 +00:00
Tom Hacohen 7a90712518 Evas font-engine: Fixed the issue of text not showing when using pipe-rendering. For some reason I put the parameters as "src, dst" instead of "dst, src" and I also missed the compilation warning about the passing const as non-const.
SVN revision: 56796
2011-02-08 08:12:55 +00:00
Brett Nash 84fdff5919 Fixes to make proxy work
SVN revision: 56779
2011-02-07 01:38:00 +00:00
Brett Nash aa59164001 Support for Proxy Objects (and others)
Proxy objects allow you to use another image as the source of an image.
Essentially allowing the same object to be rendered multiple times.  One
object (the source) is the original, each additional 'copy' is an image with
evas_object_image_source_set.

This is complete.

Also add partially working arbitrary maps, and arbitrary clipping.
Unfortunately both have some issues yet to be resolved (waiting on the next
feature to get merged together).

SVN revision: 56777
2011-02-06 23:52:17 +00:00
Tom Hacohen 2f9d2760ee Evas font-engine: Don't ref/unref info if len==0 because in this case there's no 'info' but the text prop is legal (empty string).
SVN revision: 56746
2011-02-06 08:31:46 +00:00
Tom Hacohen 00b61c9e00 Evas font-ot: Started using our glyph and kerning caches when using Harfbuzz - Major speedups (obviously, only with harfbuzz).
SVN revision: 56644
2011-02-02 08:24:57 +00:00
Tom Hacohen 211400d1f6 Evas font: Fixed word_prerender now that we cache everything. Do we really need it now?.
SVN revision: 56630
2011-02-01 12:18:01 +00:00
Tom Hacohen 94b5a536f0 Evas font/textblock/text: Started using string objects instead of
strings in most of the font engine (everywhere except draw).
Haven't removed the paramteres yet, but did mark them as UNUSED.
Removing them will be part of a future change.
Removed run-time OT toggling support, OT is now fast, no need for that.
Renamed all of the intl_props->text_props (because it really changed purpose now)
Fixed spliting/merging of text_props to be fast and good, not hacky and
complex like before.
Note to reviewers: Most of the changes are indentation related, sorry
for the mess, but I had to do it all in one commit, splitting was not
trivial (at least not in retrospect). The important parts are
evas_font_default_walk.x and text_utils.c. query and draw were just
adjusted a bit and the rest were only adjusted to conform to renaming or
were renaming on their own.

SVN revision: 56629
2011-02-01 12:17:52 +00:00
Carsten Haitzler 75bb165f29 Thanks to samsung - added WBMP loader.
SVN revision: 56624
2011-02-01 09:38:48 +00:00