Re: [E-devel] .eap files for modules

2006-03-12 Thread Stafford Horne
On Sat, 11 Mar 2006 23:00:05 +0900
David Stevenson [EMAIL PROTECTED] wrote:
 
 
 I'm not that familiar with locale aliasing, but for me (on Debian) it
 doesn't seem to be useful atm. I see the code is looking for
 locale.aliasfiles, which I do have, but e doesn't read any of them. So
 when I try a
 -lang-set japanese.euc   I end up in the C locale.
 My locale.alias files are in
 /etc/locale.alias
 /usr/share/locale/locale.alias
 /usr/share/gettext/intl/locale.alias
 /usr/X11R6/lib/X11/locale/locale.alias
 
You could get aliases picked up by adding the base directories to your messages 
path. Some day it would be nice if enlightenment could detect these during 
installation.  

$ enlightenment_remote -dirs-list-append messages /usr/X11R6/lib/X11/locale
$ enlightenment_remote -dirs-list-append messages /usr/share/locale

 
 If I had installed to /usr rather than /usr/local, it would have picked up
 the file in /usr/share/locale/ though it seems.
 
 So we would end up with:
  * Get language from e_intl_language_get()
  * Resolve any language aliases with e_intl_locale_alias_get()
  * Get only the relevant parts from the locale
  with  e_intl_locale_canonic_get()
  * Store localized property
 
  What do you think?
 
 
 This would be more robust :-)

 Maybe I should cache the resolved alias for the current locale in e_intl.
 
 
 Indeed, we would be doing this every time we load a new e_app...

I will do that then. The cache will be removed whenever the messages path or 
the language is changed.
 
 Regards!
 David
 


-- 
Stafford M. Horne
Senior Engineer 高级工程师
SurfControl plc 美讯智科技
Peoples Republic of China, Beijing  中国人民共和国, 北京
Mobile: +86 13611014044 手机:+86 13611014044

(Website) http://shorne.homelinux.com/wordpress (网站)
N�HS^�隊X���'���u���ڂ�.���y���*m�x%jx.j���^�קvƩ�X�jب�ȧ��m�ݚ�v��קv�^�+j�Z{az^��h��஋�n���)��{h�����ا�׫�+h�(m�Z��jY�w��ǥrg

[E-devel] ecore does not compile with software_x11 engine

2006-03-12 Thread Aleksej Struk
Hi,

I have a problem with the compiling ecore. I just sync myself to the
latest cvs. EET and EVAS are compiled correctly. But ecore - not.
Basically, I just run autogen.sh and do not setup config options.
When I run make, I have the following comiler error :

ecore_evas_x.c: In function '_ecore_evas_x_alpha_set':
ecore_evas_x.c:1387: error: structure has no member named 'destination_alpha'
ecore_evas_x.c:1395: error: structure has no member named 'destination_alpha'
ecore_evas_x.c: In function 'ecore_evas_software_x11_new':
ecore_evas_x.c:2101: error: structure has no member named 'destination_alpha'
ecore_evas_x.c:2109: error: structure has no member named 'destination_alpha'

However, the include 
e17/libs/evas/src/modules/software_x11/Evas_Engine_Software_X11.h
defines 'destination_alpha'.
But it is not defined in $INSTALL_PREFIX/include/Evas_Engine_Software_X11.h.

regards,
aleksej


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] ecore does not compile with software_x11 engine

2006-03-12 Thread Kevin Brosius
Aleksej Struk wrote:
 
 
 Hi,
 
 I have a problem with the compiling ecore. I just sync myself to the
 latest cvs. EET and EVAS are compiled correctly. But ecore - not.
 Basically, I just run autogen.sh and do not setup config options.
 When I run make, I have the following comiler error :
 
 ecore_evas_x.c: In function '_ecore_evas_x_alpha_set':
 ecore_evas_x.c:1387: error: structure has no member named 'destination_alpha'
 ecore_evas_x.c:1395: error: structure has no member named 'destination_alpha'
 ecore_evas_x.c: In function 'ecore_evas_software_x11_new':
 ecore_evas_x.c:2101: error: structure has no member named 'destination_alpha'
 ecore_evas_x.c:2109: error: structure has no member named 'destination_alpha'
 
 However, the include 
 e17/libs/evas/src/modules/software_x11/Evas_Engine_Software_X11.h
 defines 'destination_alpha'.
 But it is not defined in $INSTALL_PREFIX/include/Evas_Engine_Software_X11.h.

Did Evas_Engine_Software_X11.h get installed after your last build? 
There was a problem yesterday with it not being installed.  Try updating
evas after anoncvs updates (you are on anoncvs, right?)

-- 
Kevin


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] ecore does not compile with software_x11 engine

2006-03-12 Thread Brian Mattern
This was caused by a bug in Evas' configure.in, which was fixed last night. 
Just in case it hasn't gone into anon cvs yet, s/yes/xyes on line 185 of 
evas' configure.in.
--
rephorm

On Sunday 12 March 2006 05:00, Aleksej Struk wrote:
 Hi,

 I have a problem with the compiling ecore. I just sync myself to the
 latest cvs. EET and EVAS are compiled correctly. But ecore - not.
 Basically, I just run autogen.sh and do not setup config options.
 When I run make, I have the following comiler error :

 ecore_evas_x.c: In function '_ecore_evas_x_alpha_set':
 ecore_evas_x.c:1387: error: structure has no member named
 'destination_alpha' ecore_evas_x.c:1395: error: structure has no member
 named 'destination_alpha' ecore_evas_x.c: In function
 'ecore_evas_software_x11_new':
 ecore_evas_x.c:2101: error: structure has no member named
 'destination_alpha' ecore_evas_x.c:2109: error: structure has no member
 named 'destination_alpha'

 However, the include
 e17/libs/evas/src/modules/software_x11/Evas_Engine_Software_X11.h defines
 'destination_alpha'.
 But it is not defined in
 $INSTALL_PREFIX/include/Evas_Engine_Software_X11.h.

 regards,
 aleksej


 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live
 webcast and join the prime developer group breaking into this new coding
 territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] e17 cvs - entropy make error

2006-03-12 Thread Laurence Vanek

got this after cvs update this date:

==
.
.
.
E_DATA_DIR=\/usr/local/share/entropy\ 
-DPACKAGE_SOURCE_DIR=\/root/e17/proto/entropy\ -I. -I. -I.
-I../.. -I../../src/include -I/usr/local/include -I/usr/local/include 
-I/usr/local/include -I/usr/l
ocal/include -I/usr/local/include -I/usr/local/include 
-I/usr/local/include/etk -g -O2 -D_FILE_OFFSE
T_BITS=64 -Wall -MT layout_etk_simple_la-etk_file_cache_debug_dialog.lo 
-MD -MP -MF .deps/layout_etk
_simple_la-etk_file_cache_debug_dialog.Tpo -c 
../../src/dialogs/etk_file_cache_debug_dialog.c  -fPIC

-DPIC -o .libs/layout_etk_simple_la-etk_file_cache_debug_dialog.o
../../src/dialogs/etk_file_cache_debug_dialog.c: In function 
'etk_file_cache_dialog_create':
../../src/dialogs/etk_file_cache_debug_dialog.c:106: warning: passing 
argument 3 of 'etk_tree_col_so

rt_func_set' makes pointer from integer without a cast
../../src/dialogs/etk_file_cache_debug_dialog.c:106: error: too many 
arguments to function 'etk_tree

_col_sort_func_set'
make[2]: *** [layout_etk_simple_la-etk_file_cache_debug_dialog.lo] Error 1
make[2]: Leaving directory `/root/e17/proto/entropy/src/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/e17/proto/entropy/src'
make: *** [all-recursive] Error 1
==

I had rebuilt all EFL  evfs prior to this build attempt.

Considering how flaky anon cvs has been lately maybe this is just a bad 
combo of files.  Maybe it will heal itself (or maybe not).


running Fedora Core 4 system with:

gcc (GCC) 4.0.2 20051125 (Red Hat 4.0.2-8)


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] e17 cvs - entropy make error

2006-03-12 Thread David Seikel
On Sun, 12 Mar 2006 13:19:45 -0600 Laurence Vanek [EMAIL PROTECTED]
wrote:

 E_DATA_DIR=\/usr/local/share/entropy\ 
 -DPACKAGE_SOURCE_DIR=\/root/e17/proto/entropy\ -I. -I. -I.
  -I../.. -I../../src/include -I/usr/local/include
 -I/usr/local/include -I/usr/local/include -I/usr/l
 ocal/include -I/usr/local/include -I/usr/local/include 
 -I/usr/local/include/etk -g -O2 -D_FILE_OFFSE
 T_BITS=64 -Wall -MT
 layout_etk_simple_la-etk_file_cache_debug_dialog.lo -MD -MP
 -MF .deps/layout_etk _simple_la-etk_file_cache_debug_dialog.Tpo -c 
 ../../src/dialogs/etk_file_cache_debug_dialog.c  -fPIC
  -DPIC -o .libs/layout_etk_simple_la-etk_file_cache_debug_dialog.o
 ../../src/dialogs/etk_file_cache_debug_dialog.c: In function 
 'etk_file_cache_dialog_create':
 ../../src/dialogs/etk_file_cache_debug_dialog.c:106: warning: passing 
 argument 3 of 'etk_tree_col_so
 rt_func_set' makes pointer from integer without a cast
 ../../src/dialogs/etk_file_cache_debug_dialog.c:106: error: too many 
 arguments to function 'etk_tree
 _col_sort_func_set'

I think there was some etk API breakage that got fixed in entropy
later.  It may not have hit cvs before you updated.  Wait a while and
try again.


signature.asc
Description: PGP signature


[E-devel] font hinting

2006-03-12 Thread Aleksej Struk
Hi all,

I a little bit confused with the last cvs. Before I sync my tree, I have
font hinting working fine. I had all the 3 options : a) byte code b)
automatic c) no hinting. After sync to the cvs, a cannot selectt option
a) anymore.

However, after taking a look into code, I notice, that
evas_font_hinting_can_hint(.., EVAS_FONG_HINTING_BYTECODE) returns 0
instead of 1. So, for me it seams, that basically evas cannot do this
type of hinting on my machine? right ?

So, can somebody explain, why it is so ?


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Re: E CVS: wlan devilhorns

2006-03-12 Thread Ryan Little
schweet, that does it :)
nice work devilhorns :)On 3/12/06, enlightenment-cvs@lists.sourceforge.net 
enlightenment-cvs@lists.sourceforge.net wrote:Enlightenment CVS committal
Author: devilhornsProject : e_modulesModule: wlanDir : e_modules/wlanModified Files:e_mod_main.cLog Message:Fix values on wlan module.Will just display the 'link' value from /proc/net/wireless now as monitor
module did.===RCS file: /cvsroot/enlightenment/e_modules/wlan/e_mod_main.c,vretrieving revision 1.16retrieving revision 1.17diff -u -3 -
r1.16 -r1.17---
e_mod_main.c12 Mar 2006
19:06:06 -1.16+++
e_mod_main.c12 Mar 2006
20:30:16 -1.17@@ -182,8 +182,8 @@if (!fl){
nf-conf = E_NEW(Config_Face, 1);-nf-conf-enabled
= 1;-nf-conf-device
= (char *)evas_stringshare_add(wlan0);+nf-conf-enabled
= 1; //wlan0+nf-conf-device
= (char *)evas_stringshare_add(eth0);
nf-conf-check_interval = 30;
nf-conf-show_text = 1;
nf-conf-show_graph = 1;@@ -480,12 +480,10 @@int wlan_link = 0;int wlan_level = 0;int wlan_noise = 0;- int wlan_value = 0;char in_str[100];nf = data;-
stat = fopen(/proc/net/wireless, r);if (!stat)return 1;@@ -514,22 +512,18 @@if (!found_dev)return 1;-- wlan_value = -(100 - wlan_level - wlan_noise);
- if (wlan_level == 0)- wlan_value = 0;/* Update the modules text */if (nf-conf-show_text){- snprintf(in_str, sizeof(in_str), LNK: %d%%, wlan_value);
+ snprintf(in_str, sizeof(in_str), LNK: %d%%, wlan_link);edje_object_part_text_set(nf-txt_obj, link-text, in_str);}elseedje_object_part_text_set(nf-txt_obj, link-text, );
-+if (nf-conf-show_graph)- _wlan_face_graph_values(nf, wlan_value);+ _wlan_face_graph_values(nf, wlan_link);else_wlan_face_graph_clear(nf);
---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642___
enlightenment-cvs mailing listenlightenment-cvs@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/enlightenment-cvs



Re: [E-devel] font hinting

2006-03-12 Thread The Rasterman
On Sun, 12 Mar 2006 21:19:44 + Aleksej Struk [EMAIL PROTECTED] babbled:

 Hi all,
 
 I a little bit confused with the last cvs. Before I sync my tree, I have
 font hinting working fine. I had all the 3 options : a) byte code b)
 automatic c) no hinting. After sync to the cvs, a cannot selectt option
 a) anymore.
 
 However, after taking a look into code, I notice, that
 evas_font_hinting_can_hint(.., EVAS_FONG_HINTING_BYTECODE) returns 0
 instead of 1. So, for me it seams, that basically evas cannot do this
 type of hinting on my machine? right ?
 
 So, can somebody explain, why it is so ?

freetype may be compiled with different hinting code. bytecode hinting is 
patented by apple and some distributions simply refuse to enable it in 
freetype2. by default it is not enabled in ft2. the ftoption.h file that gets 
installed SHOULD list what hinters are available via defines (no hinting is 
always available, then there's BYTECODE and UNPATENTED (auto hinting) hinting 
defines). the code in evas simply checks these values at compile time and then 
returns if its possible or not based on  these being defined or not. so far 1 
distribution already installs an ftoption.h that doesn't match the capabilities 
in the freetype2 that is installed. so it is possible that evas will get it 
wrong - but this is due to the headers installed at compile time. i know of no 
way to query RUNTIME what the features are so this is a bit of a bad api from 
ft2 in that ft2 could change  its build options without evas being recompiled 
against it and thus evas getting its capability checking wrong.


 
 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live webcast
 and join the prime developer group breaking into this new coding territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 


-- 
- Codito, ergo sum - I code, therefore I am --
The Rasterman (Carsten Haitzler)[EMAIL PROTECTED]
裸好多
Tokyo, Japan (東京 日本)


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] EWL Test App

2006-03-12 Thread dan sinclair
We are also hoping, time permitting, to integrate some more tutorial 
type information to the test application. So currently, when you run 
your test, it will show the source code for that particular test in one 
of the tabs. We want to also show a tutorial style introduction to that 
widget as well. Help people get introduced and learn about the different 
widgets.


This piece is done and in cvs. You can take a look by running the 
ewl_test application, expand the simple tests, click 'text' and then 
click the 'tutorial' tab. Gives a bit of information on the Ewl_Text widget.


These tutorials are going to be put into the src/bin/tests/ewl_*.c 
files. They are doxy so they also show up in the doxygen generated for 
EWL. (To make the tutorial show up in the doxy you have to make sure you 
update the corresponding src/lib/ewl_*.c file to use @addtogroup instead 
of @defgroup. @defgroup is the default for all widgets at the moment, we 
haven't had time to move them over to @addtogroup yet)


If you're interested in doing some learning about EWL this is an 
excellent opportunity. You can dig in, play with things, and then fill 
out a tutorial on the widget. Take a look a the src/bin/tests/ewl_text.c 
for an idea on how to do the tutorial.


The parser for this stuff is still pretty young and untested so it may 
have issues. If you find something let me know and I'll try to get it 
fixed up as quick as possible.


Thanks,
dan



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Evolume - add to cvs?

2006-03-12 Thread Ryan Little
Are there any objections to adding evolume to e_modules in cvs?

I know originally there were concerns that evolume had dependencies
outside the scope of e17 (alsa etc.), but now that e_modules has moved
out of the e17 tree, are there any other objections?

This is an extremely useful module and I think it could use some TLC :)

Ryan (AKA quan)


Re: [E-devel] EWL Test App

2006-03-12 Thread Nathan Ingersoll
On 3/12/06, dan sinclair [EMAIL PROTECTED] wrote:
If you're interested in doing some learning about EWL this is anexcellent opportunity. You can dig in, play with things, and then fillout a tutorial on the widget. Take a look a the src/bin/tests/ewl_text.c
for an idea on how to do the tutorial.This is definitely a good way for people to get involved. Tutorials are small and easy to digest, but more interesting than most docs as you actually write code to develop them and they don't require massive time commitments.
The nice thing about the way these tutorials are setup is that they are not only pulled into the test application, but they also get included in the doxygen documentation. We currently have a large amount of API documentation (500+ pages when dan last generated a PDF), but would definitely benefit from accompanying tutorials to explain how these API's are used in more depth. If you are interested in getting involved, and have questions please email the list, dan or I, or stop in #edevelop on 
irc.freenode.net.Thanks,Nathan


[E-devel] EWLs combo, tree2 and list widgets

2006-03-12 Thread dan sinclair

Hello,

I just thought I'd send some information on how we are implementing the 
ewl_combo, ewl_tree2 and (hopefully) soon to be ewl_list.


These widgets all work off of a Model/View/Controller setup. You create 
a model, a view and your data and set it into the widget. The widget 
will then query the model and view to get the display widgets, passing 
your data into the calls as needed.


The models, views and data can be reused between multiple widgets. For 
example, the combo test currently has two combo boxes with one model, 
one set of data and two views. (This will be enhanced with a third combo 
and another model/view.)


Using this setup it is a lot easier for the application to modify the 
data behind the combo or the tree and just tell the combo that its data 
is dirty. The combo then queries the model/view and updates its display 
as needed. No need to remove/append widgets to the combo/tree. You can 
just realloc an array and set ewl_combo_dirty_set(combo, TRUE) and it 
will do all the work of setting up the widgets for display.


This also means the combo/tree can have any kind of data as their 
widgets. You can write custom view functions to make compound widgets 
which should hopefully keep the system flexable.


The ewl_combo is the first widget to get this system up and running. We 
are working on the ewl_tree2 widget which will also be using the models 
and views. This will end up having a model/view per column of the tree 
so you can put different logic behind each column, or just pass the same 
model/view in to each column as needed.


The plan is to write an ewl_list which is a simple wrapper around 
ewl_tree that provides a default single column layout. Making it easier 
to get lists of things up on screen.


If you'd like to see a bit more of this take a look at the 
src/bin/tests/ewl_combo.c test case.


Thats about it for now, let me know if you've got any questions/ideas on 
this setup.


Thanks,
dan



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] font hinting

2006-03-12 Thread Brian Mattern
On Sunday 12 March 2006 15:19, Aleksej Struk wrote:
 Hi all,

 I a little bit confused with the last cvs. Before I sync my tree, I have
 font hinting working fine. I had all the 3 options : a) byte code b)
 automatic c) no hinting. After sync to the cvs, a cannot selectt option
 a) anymore.

 However, after taking a look into code, I notice, that
 evas_font_hinting_can_hint(.., EVAS_FONG_HINTING_BYTECODE) returns 0
 instead of 1. So, for me it seams, that basically evas cannot do this
 type of hinting on my machine? right ?

 So, can somebody explain, why it is so ?

Are you using a theme other than the default? Before yesterday, radio buttons 
left it up to the theme to determine if they were selectable or not (so, with 
winter for example, which doesn't handle disabled radio buttons yet, you 
could select the bytecode interpreter even when evas thought you didn't have 
it). I changed radio buttons to not accept clicks when disabled (regardless 
of what the theme does).

See raster's reply for more about why _can_hint is returning false.
--
rephorm


 ---
 This SF.Net email is sponsored by xPML, a groundbreaking scripting language
 that extends applications into web and mobile media. Attend the live
 webcast and join the prime developer group breaking into this new coding
 territory!
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] font hinting

2006-03-12 Thread Jesse Luehrs
On Mon, 13 Mar 2006 09:02:39 +0900
Carsten Haitzler (The Rasterman) [EMAIL PROTECTED] wrote:

 On Sun, 12 Mar 2006 21:19:44 + Aleksej Struk [EMAIL PROTECTED]
 babbled:
 
  Hi all,
  
  I a little bit confused with the last cvs. Before I sync my tree, I
  have font hinting working fine. I had all the 3 options : a) byte
  code b) automatic c) no hinting. After sync to the cvs, a cannot
  selectt option a) anymore.
  
  However, after taking a look into code, I notice, that
  evas_font_hinting_can_hint(.., EVAS_FONG_HINTING_BYTECODE) returns 0
  instead of 1. So, for me it seams, that basically evas cannot do
  this type of hinting on my machine? right ?
  
  So, can somebody explain, why it is so ?
 
 freetype may be compiled with different hinting code. bytecode
 hinting is patented by apple and some distributions simply refuse to
 enable it in freetype2. by default it is not enabled in ft2. the
 ftoption.h file that gets installed SHOULD list what hinters are
 available via defines (no hinting is always available, then there's
 BYTECODE and UNPATENTED (auto hinting) hinting defines). the code in
 evas simply checks these values at compile time and then returns if
 its possible or not based on  these being defined or not. so far 1
 distribution already installs an ftoption.h that doesn't match the
 capabilities in the freetype2 that is installed. so it is possible
 that evas will get it wrong - but this is due to the headers
 installed at compile time. i know of no way to query RUNTIME what the
 features are so this is a bit of a bad api from ft2 in that ft2 could
 change  its build options without evas being recompiled against it
 and thus evas getting its capability checking wrong.

Gentoo has this problem because the freetype build just adds
-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER to the CFLAGS before
building rather than editing header files. To detect if the bytecode
interpreter had been enabled, the freetype ebuild runs grep
on the binary for a string:

# Just a check to see if the Bytecode Interpreter was enabled ...
if [ -z `grep TT_Goto_CodeRange ${S}/objs/.libs/libfreetype.so` ]
then
ewarn Bytecode Interpreter is disabled.
fi

This will fail if the binary has been stripped though, so that's
probably not much better of a solution.

I'm checking out right now if uncommenting the #define in ftoption.h
will fix the hinting issues with evas... I assume it should though.

Jesse


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel