Commit Graph

78 Commits

Author SHA1 Message Date
Tom Hacohen d9dae5b06b Evas: Fixed compilation with old fontconfig.
This fixes ticket #1500 by Sleep_Walker.

SVN revision: 76520
2012-09-12 11:55:45 +00:00
Carsten Haitzler 20f5fcaa3e move comment to right bit.
SVN revision: 74981
2012-08-07 11:17:35 +00:00
Carsten Haitzler 4674438654 do fcfini now - it seesm to not be a problem with fc anymore
SVN revision: 74870
2012-08-04 04:34:49 +00:00
Tom Hacohen 6dd9396d6f Evas font: Fixed compilation without fontconfig.
Thanks a lot to JaMa for reporting this.

SVN revision: 74640
2012-07-31 10:51:11 +00:00
Tom Hacohen 6c9804fba9 Evas font: Fixed font cache to correctly handle different font sizes.
Used to just go for the first match in the cache which means it would always
think we only have the wrong size in the cache, and it would just add
new entries all the time.

SVN revision: 74435
2012-07-26 11:31:36 +00:00
Rafael Antognolli 2f3426b67c evas/cserve2: CServe2 client side lib modifications.
Add the calls to request font loading and glyphs on the client lib.



SVN revision: 72700
2012-06-22 20:31:31 +00:00
Cedric BAIL 7156816e8a evas: remove warning when fontconfig is disabled.
SVN revision: 65434
2011-11-20 13:55:17 +00:00
Tom Hacohen 54ebd93cde Evas font: Fix compilation with C++ compilers.
Thanks to cnook for pointing that out.

SVN revision: 63186
2011-09-05 07:13:23 +00:00
Tom Hacohen f6724cc23b Evas font: Did some style fixes, we don't like tabs.
SVN revision: 62695
2011-08-22 14:45:23 +00:00
Tom Hacohen 54fd7dc69f Evas font: Fixed font cache.
Apparently someone (probably me) broke it a while ago, now it works.

SVN revision: 62694
2011-08-22 14:45:19 +00:00
Tom Hacohen c416b7c843 Evas font: font_load use the correct string.
Thanks vtorri for the catch.

SVN revision: 62207
2011-08-08 14:47:35 +00:00
Carsten Haitzler d0429906c2 strndup--!
SVN revision: 62206
2011-08-08 14:40:33 +00:00
Tom Hacohen d0b2f5b414 Evas font: removed _FcPattern decleration.
No idea who put it there, but it definitely doesn't belong here.

SVN revision: 61954
2011-08-01 14:49:40 +00:00
Tom Hacohen 4ec907df55 Evas font: Renamed FONT_REND_ITALIC/BOLD -> FONT_REND_SLANT/WEIGHT.
This change is needed for future support of multiple level of runtime
weight creation.

SVN revision: 61943
2011-08-01 09:11:42 +00:00
Tom Hacohen f3e76c661d Evas font: added support for ':lang=' and fixed a possibly mem leak.
SVN revision: 61941
2011-08-01 08:21:12 +00:00
Tom Hacohen bd556d9c14 Evas textblock+font: Fixed the font fallbacks support.
SVN revision: 61940
2011-08-01 08:21:09 +00:00
Tom Hacohen 9ba3e192a5 Evas font+textblock: Stopped using FcNameParse, parse ourselves.
FcNameParse is pretty bad, not only that it's pretty bad, it doesn't
work well in some cases. Also this makes our lives a lot easier since
we want to allow overriding style/weight/width and etc from markup.
We now parse the "font" markup ourselves, populating a font description
structure that we created, and then override values in it as needed.

SVN revision: 61936
2011-08-01 08:20:52 +00:00
Tom Hacohen 1350644a8b Evas font: Enabled run-time slanting for 'Oblique'.
SVN revision: 61858
2011-07-28 14:01:35 +00:00
Tom Hacohen 420d235bff Evas: Moved font functions from object_text.c to font_dir.c
Not the best place, but at least better than putting them in object_text.c

SVN revision: 61327
2011-07-13 08:54:49 +00:00
Lucas De Marchi 10237c5b56 evas: fix misspellings
Misspellings found by codespell



SVN revision: 59822
2011-05-30 16:45:08 +00:00
Tom Hacohen 228c7548a4 Evas font-engine: In continuation of the previous commit. Use Evas_Font_Set.
SVN revision: 59783
2011-05-29 13:35:45 +00:00
Vincent Torri b3ed32be46 remove some shadow declarations
SVN revision: 59508
2011-05-18 14:12:10 +00:00
Tom Hacohen 909e11f49f Evas font-engine: Fix usage of font cache (= -> ==).
SVN revision: 59344
2011-05-12 08:38:24 +00:00
Tom Hacohen 7d1f21946a Evas font-engine: abort font load even sooner if name is NULL.
SVN revision: 59343
2011-05-12 08:38:21 +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 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
Carsten Haitzler 905d57b315 fix off by 1!
SVN revision: 57162
2011-02-19 15:48:46 +00:00
Carsten Haitzler 59208f38b8 disable ref.
SVN revision: 53183
2010-10-08 11:21:37 +00:00
Carsten Haitzler 4b96e37067 i think i foundsed me a fontconfig bug.. this i think is a
workartound.. it depends what fc's intent was tho.



SVN revision: 53093
2010-10-06 08:53:06 +00:00
Carsten Haitzler c0baeaeb68 1. fix fcfini issue i hit - yes . things may look like they leak in valgrind
- they dont. in reality.
2. major text rendeering speedups. up to 41% in textblock intl, 33% in
textblock basic, 12-20$ in other text rendering tests. generic eina hash's
are just tooo slow for what we are doing there. specialised "Fash"
blocked-array.
3. still LOTS of optimisations left.



SVN revision: 45829
2010-02-03 11:18:00 +00:00
Cedric BAIL b83490725c * evas_font_dir: Add all guards.
SVN revision: 44446
2009-12-14 17:55:26 +00:00
Cedric BAIL 0ccf619ba0 * evas_font_dir: reduce use of FcFontSort by using cache as much as possible.
This reduce in EWeather the time spend in FcFontSort from 25% of the startup time
	to 1% with a small memory footprint increase.


SVN revision: 44444
2009-12-14 17:27:51 +00:00
Cedric BAIL 8984a75799 * evas: Cleanup move to eina log.
Patch from Mathieu Taillefumier.


SVN revision: 43200
2009-10-22 15:22:22 +00:00
Cedric BAIL c259d8addd * evas: Use eina_log.
Patch from Matthieu.


SVN revision: 42598
2009-09-21 16:08:51 +00:00
Vincent Torri ac3dae2a80 remove trailing spaces
SVN revision: 42238
2009-09-04 05:13:19 +00:00
Cedric BAIL 6d0ee81526 * evas: Remove Evas_Bool.
SVN revision: 41067
2009-06-17 10:01:52 +00:00
Cedric BAIL fdca8644a2 * Evas: Add another delay before reducing number of unused font in the
cache.

	Note: This is usefull when you are scaling up and down a font during an
	animation.


SVN revision: 41049
2009-06-15 14:37:14 +00:00
Carsten Haitzler 5399d14e78 limit init and fini to.. once!
SVN revision: 40261
2009-04-21 06:26:52 +00:00
Carsten Haitzler 38811d99c5 cleanup on shutdown better
SVN revision: 40242
2009-04-19 20:40:41 +00:00
Vincent Torri f344743dae fix some warnings reported by llvm (see http://local.profusion.mobi:8081/~lfelipe/output-efl/)
* mainly unused parameters
 * in src/lib/imaging/evas_imaging.c, set font to NULL
 * in src/lib/canvas/evas_object_gradient.c, add unititialized member

there are a *lot* of reported warnings by llvm, i'll fix them later

there are also *lots* of unused parameters (compile evas with -W). I'll
fix them later too



SVN revision: 39172
2009-02-24 08:31:31 +00:00
Vincent Torri c989841ab6 * src/modules/engines/direct3d/:
fast direct3d engine written by Dmitriy Mazovka. You rock !

 * m4/evas_check_engine.m:
 * m4/evas_check_loader.m4:
   use m4_popdef for each macro (otherwise, fail if aclocal is too old)

 * src/lib/canvas/evas_font_dir.c:
   include evas_common.h and evas_private.h after Eet.h and Evil.h
   so that EAPI is correctly defined



SVN revision: 38244
2008-12-20 13:22:46 +00:00
Cedric BAIL 2b278b9419 Remove use of evas_hash from evas and use directly eina.
SVN revision: 38066
2008-12-09 17:56:31 +00:00
Vincent Torri d250e5501b Big patch to make Evas work (more or less) with Windows CE:
* when fopen used, open in binary mode
 * use Evil when fopen is used
 * clean a bit some Makefile.am and add Evil dependency where needed
 * in evas_path.c, remove useless old Windows CE code. It's managed by Evil, now
 * in Evas_Data.h, move Eina.h before EAPI is defined for Evas.
 * define _WIN32_WCE when the host is windows cee


SVN revision: 37476
2008-11-05 17:21:04 +00:00
Cedric BAIL cdf08d5696 Fix bug when shutting down all engine and still have some font in the cache.
Draw back: When we are destroying an Evas canvas, we loose all cached font
that are not used anymore.

A correct fix would be to link Fndat to the Evas that provide and use them.
And only delete them when no more Evas reference them.


SVN revision: 37353
2008-10-31 10:46:46 +00:00
Sebastian Dransfeld 6f8f89d2c7 Correct function declaration for evas_hash_foreach
SVN revision: 37154
2008-10-26 16:19:09 +00:00
Cedric BAIL a360b26230 Declare dir in the right scope.
SVN revision: 36945
2008-10-21 16:54:30 +00:00
Cedric BAIL 465b76a017 Remove Evas_List from Evas.
SVN revision: 36942
2008-10-21 16:31:05 +00:00
Cedric BAIL 1cec65e922 Switch evas internal use of evas_stringshare to eina_stringshare.
SVN revision: 36674
2008-10-15 14:38:34 +00:00
Gustavo Sverzut Barbieri 6c918f3d8a Do not assume fontconfig will find a font.
If you have no fonts in fontconfig, it returns NULL... believe me, it
does happen.



SVN revision: 36029
2008-09-16 22:59:59 +00:00
Gustavo Sverzut Barbieri bbc9773a26 Add const to Evas api (part 2), still lacks objects.
SVN revision: 33713
2008-02-08 20:57:30 +00:00