Commit Graph

774 Commits

Author SHA1 Message Date
Tom Hacohen 476ac636d5 Revert "BAD TASN!". Yeah, I'm evil.
Following commit includes a fix.

This reverts commit 58933.

SVN revision: 58935
2011-04-26 14:20:41 +00:00
Tom Hacohen 8f41c4c125 Evas font-engine: Updated comments.
SVN revision: 58934
2011-04-26 14:20:38 +00:00
Carsten Haitzler 2d2b2d686e BAD TASN!
ROLL BACK TODAYS CHANGES TO EVAS....

SEGV SEGV EVERYWHERE!

*SPANK*



SVN revision: 58933
2011-04-26 14:05:01 +00:00
Tom Hacohen a3c144d2c9 Evas font-engine: fix issue with using the wrong fi.
SVN revision: 58930
2011-04-26 10:21:01 +00:00
Tom Hacohen cb561612f2 Evas font-engine: use the cached fi instead of searching for it.
SVN revision: 58926
2011-04-26 09:26:33 +00:00
Tom Hacohen 9b0005e62a Evas font-engine: Added a fixme.
SVN revision: 58925
2011-04-26 09:14:23 +00:00
Tom Hacohen f0e18f58ff Evas font-engine: Cache fi when using Harfbuzz.
Soon I will also do it for all cases, but it's not possible at the
moment because we depend on harfbuzz for querying unicode properties.

SVN revision: 58924
2011-04-26 09:14:02 +00:00
Carsten Haitzler 0e57095d06 add generic image loader. allows for GPL loaders, unstable loaders and
more. making a loader is a matter of a binary of a specific name and
evas passes certain input on the cmd-line and your binary produces
output on stdout (and also optionally additionally in a shm or tmp
file).



SVN revision: 58914
2011-04-26 01:03:06 +00:00
Cedric BAIL a613126be4 evas: don't forget to init eina_threads when using threads.
SVN revision: 58908
2011-04-25 17:11:58 +00:00
Cedric BAIL 0cef5e41fe evas: add psd file format support.
Patch from Thierry el Borgi with some rework of myself.

NOTE: I don't have much file to test, so if some don't
contact us with those file and we will fix the loader
if needed.


SVN revision: 58873
2011-04-24 19:45:43 +00:00
Carsten Haitzler fa309e5069 nash -> i fixed your mask rendering. interesting you only mask *IF*
you have 1:1 scaling. you could do this with scaled imaged (and
unscaled masks) with ease. both smooth and nearest.



SVN revision: 58838
2011-04-23 02:02:45 +00:00
Carsten Haitzler 8cca4234c4 comments for nash
SVN revision: 58837
2011-04-23 01:22:17 +00:00
Carsten Haitzler 6282cc0a6d wrn-- -> my bad.
SVN revision: 58836
2011-04-23 00:35:42 +00:00
Carsten Haitzler c885080057 an initial test at trying pixman instead of evas software rendering.
results... in comments. disabled atm unless u --enable it. only
replaces 1 operation in 2 cases.



SVN revision: 58824
2011-04-22 11:47:14 +00:00
Tom Hacohen 902d94afb9 Evas textblock: Added a temp fix for repch until implemented nicely.
This fix is just until we finally split to scripts and cache fi all
the time, i.e in all the possible paths (regular, fribidi and harfbuzz).

SVN revision: 58806
2011-04-21 15:34:44 +00:00
Tom Hacohen 48d0603e5d Evas harfbuzz: Adjust evas to work with Harfbuzz >= 3.0
SVN revision: 58802
2011-04-21 14:04:53 +00:00
Tom Hacohen 543a0da0d8 Evas font-engine: Fixed kerning issue and a major rendering bug.
Kerning: We are walking the string visually so we don't need to do
anything special for kerning when in rtl, freetype works with "left" and
"right" which we automatically get.

Rendering bug: Cedric found that in some cases there were missing
characters. This was caused because I forgot to convert the kerning from
16.6 fixed point to int.

SVN revision: 58783
2011-04-21 08:47:16 +00:00
Carsten Haitzler 794f1c56cd warning--
SVN revision: 58777
2011-04-21 06:21:51 +00:00
Brett Nash aaf036eec9 Evas: Filter: Avoid a double free.
I just don't know why.

SVN revision: 58776
2011-04-21 06:01:59 +00:00
Tom Hacohen cb19804054 Evas bidi: Fixed spelling errors: NATURAL -> NEUTRAL (Macro name).
SVN revision: 58760
2011-04-20 14:35:37 +00:00
Tom Hacohen 57665ebf34 Evas font: Removed a deprecated macro.
SVN revision: 58759
2011-04-20 14:21:00 +00:00
Tom Hacohen 6609b1d7ba Evas font: Removed LOGICAL_WALK and updated last_up_to_pos accondingly.
SVN revision: 58758
2011-04-20 14:20:57 +00:00
Tom Hacohen 543c0cafc0 Evas font-engine: Cache pen position instead of advance.
We only really use adavnce for calculating the pen position, so it makes more
sense to just cache the pen_position instead and calculate advance from
that if ever needed.
This means size/advance calculations are now O(1) because we don't need to
walk the strings anymore.

SVN revision: 58756
2011-04-20 14:20:51 +00:00
Tom Hacohen 2f86580227 Evas font-engine: Fix drawing of replacement char when not using Harfbuzz.
SVN revision: 58755
2011-04-20 14:20:48 +00:00
Tom Hacohen fd4203a682 Evas font-engine: fix a segfault with empty strings.
Thanks to Nicolas Aguirre (captainigloo) for the catch.

SVN revision: 58734
2011-04-19 20:27:34 +00:00
Brett Nash 9eaea94252 Evas: Filters:
More work, proudly supported by Samsung.  Filters!

So now you can apply a whole host of cheesy visual effects to objects at
runtime.  This is the first commit, there are a couple of more to come as I
tweak the filters, and fix blur with GL[1].

Please direct bugs to me nash@nash.id.au.

[1] You'd think shaders would be good at this.. but no, generic blur and GL
are like trying to get an apple product to work with Linux.

SVN revision: 58726
2011-04-19 05:47:56 +00:00
Brett Nash 72d667e8d9 Evas: Work around for mask issues
SVN revision: 58724
2011-04-19 05:47:47 +00:00
Tom Hacohen f5e7165a65 Evas text/textblock: Add setting bidi_delimiter API.
SVN revision: 58669
2011-04-14 15:34:01 +00:00
Tom Hacohen 46beed0916 Evas bidi: Added a way to ask for bidi segmentation indexes.
This lets you pass the bidi engine a list of indexes in the paragraph,
that will segment it bidi-wise. I.e the bidi algorithm will be applied to
each segment individually. This implements HL4 of the bidi algorithm.

SVN revision: 58652
2011-04-14 07:40:42 +00:00
Tom Hacohen f9936b341f Evas bidi: Add len parameter to evas_bidi_paragraph_props_get
SVN revision: 58631
2011-04-13 12:21:54 +00:00
Tom Hacohen caa46dc1ba Evas font-engine: Move, rename and make *_text_font_style_match static.
It's only really used (and will ever be used) in a very specific place,
no need to put it in a place that's visible to all the lib.

SVN revision: 58627
2011-04-13 10:55:59 +00:00
Tom Hacohen 1dac813ace Evas font-engine: Fix the fallback fribidi shaper.
Just keep the shaped string in the string object if fribidi is used
without harfbuzz.

SVN revision: 58620
2011-04-13 08:37:01 +00:00
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
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