[E-devel] fonts from .edj framebuffer
I have made edj file with DroidSans.ttf, 1 image and the markup. On the host, x86 X11, everything works ok (1 image 2 text labels). My target is arm926ej-s linux, Framebuffer. No X libraries, no fontconfig, etc. I don't get any text on my app, just the image. My guess is that font is somehow not loaded. No error messages are there in console. No logging available. Strace doesn't show anything useful too. Edj file is accessed 4-5 times and that's it. Versions: yury@debian-dev-vm:/work/buildroot/output/build$ ls -d1 libe* libecore-1.2.1 libedbus-1.2.0 libedje-1.2.1 libeet-1.6.1 libeina-1.2.1 libelementary-1.0.1 libembryo-1.2.0 libevas-1.2.1 eet font loader is turned on. So I guess, if it doesn't work, it's a bug. Maybe (just maybe), I didn't put everything required to rootfs. But with no error message, it's just a guess. --- Yury Luneff Lead developer Indigo Systems, Ltd. smime.p7s Description: S/MIME cryptographic signature -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] fonts from .edj framebuffer
On Fri, 24 Aug 2012 16:15:23 +0400 Юрий Лунев y...@indigosystem.ru wrote: I have made edj file with DroidSans.ttf, 1 image and the markup. On the host, x86 X11, everything works ok (1 image 2 text labels). My target is arm926ej-s linux, Framebuffer. No X libraries, no fontconfig, etc. I don't get any text on my app, just the image. My guess is that font is somehow not loaded. No error messages are there in console. No logging available. Strace doesn't show anything useful too. Edj file is accessed 4-5 times and that's it. Versions: yury@debian-dev-vm:/work/buildroot/output/build$ ls -d1 libe* libecore-1.2.1 libedbus-1.2.0 libedje-1.2.1 libeet-1.6.1 libeina-1.2.1 libelementary-1.0.1 libembryo-1.2.0 libevas-1.2.1 eet font loader is turned on. So I guess, if it doesn't work, it's a bug. Maybe (just maybe), I didn't put everything required to rootfs. But with no error message, it's just a guess. --- Did you include the font into the .edj file? -- A big old stinking pile of genius that no one wants coz there are too many silver coated monkeys in the world. signature.asc Description: PGP signature -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] fonts from .edj framebuffer
On Fri, 24 Aug 2012 16:15:23 +0400 Юрий Лунев y...@indigosystem.ru wrote: I have made edj file with DroidSans.ttf, 1 image and the markup. On the host, x86 X11, everything works ok (1 image 2 text labels). My target is arm926ej-s linux, Framebuffer. No X libraries, no fontconfig, etc. I don't get any text on my app, just the image. My guess is that font is somehow not loaded. No error messages are there in console. No logging available. Strace doesn't show anything useful too. Edj file is accessed 4-5 times and that's it. Versions: yury@debian-dev-vm:/work/buildroot/output/build$ ls -d1 libe* libecore-1.2.1 libedbus-1.2.0 libedje-1.2.1 libeet-1.6.1 libeina-1.2.1 libelementary-1.0.1 libembryo-1.2.0 libevas-1.2.1 eet font loader is turned on. So I guess, if it doesn't work, it's a bug. Maybe (just maybe), I didn't put everything required to rootfs. But with no error message, it's just a guess. --- I should have added that before version 1.7 of EFL, fontconfig was needed. At least that's my understanding, I've not tried it without fontconfig yet. I have a similar system using frame buffer, but using fontconfig. I'll try without fontconfig when 1.7 is fully released. -- A big old stinking pile of genius that no one wants coz there are too many silver coated monkeys in the world. signature.asc Description: PGP signature -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] fonts from .edj framebuffer
24.08.2012, в 16:37, David Seikel onef...@gmail.com написал(а): On Fri, 24 Aug 2012 16:15:23 +0400 Юрий Лунев y...@indigosystem.ru wrote: I have made edj file with DroidSans.ttf, 1 image and the markup. On the host, x86 X11, everything works ok (1 image 2 text labels). My target is arm926ej-s linux, Framebuffer. No X libraries, no fontconfig, etc. I don't get any text on my app, just the image. My guess is that font is somehow not loaded. Did you include the font into the .edj file? images { image: logo.png COMP; } fonts { font: DroidSans.ttf droid; } collections { group { name: hello; min: 100 200; max: 800 480; parts { part { name: bg; type: RECT; description { state: default 0.0; color: 255 255 255 255; aspect_preference: BOTH; } } part { name: logo; type: IMAGE; description { max: 61 26; align: 0.05 0.05; state: default 0.0; image { normal: logo.png; } } } part { name: timer-text; type: TEXT; effect: SOFT_OUTLINE; description { state: default 0.0; color: 0 0 255 255; text { font: droid; size: 72; text: 01:05:00; align: 0.5 0.5; } } } part { name: timer-clock; type: TEXT; effect: SOFT_OUTLINE; description { state: default 0.0; color: 0 0 255 255; text { font: droid; size: 36; text: 14:23:56; align: 0.5 0.3; } } } } } } $ eet -l hello.edj edje/images/0 here it is edje/fonts/droid edje_source_fontmap edje_sources edje/file edje/collections/0 Initially, I compiled EFL (evas) without fontconfig, i've added that afterwards with no practical difference. --- Yury Luneff Lead developer Indigo Systems, Ltd. smime.p7s Description: S/MIME cryptographic signature -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [Patch] elm_segment_control patch
Hi, Attachment to the mail is elm_segment_control patch. Change Log: 1. Generic Text support to segment items. 2. Generic Content support to segment items. Signed-Off-By: PRINCE KUMAR DUBEY prince.du...@samsung.com Thank you, Prince elm_segment_control.patch Description: Binary data -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [Patch] [Elementary] elm_datetime widget bug fix : Display AM/PM string(s) in all locales
Hi, Please review the attached patch for supporting simple transition without any effect in slideshow widget. It is created by Sumanth for datetime widget. [Current Issue]: AM/PM strings are not displayed in some locale settings. [Root cause]: Some locales don't have AM/PM string since they strictly follow 24 HR format and the this case is not handled in datetime widget. [Change Description]: Datetime widget is modified to display default AM/PM strings incase, if, it is not present in the locale. Signed-Off-By: Sumanth Krishna sumant...@samsung.com Signed-Off-By: Rajeev Ranjan rajee...@samsung.com Thank You. Regards, Rajeev elm_datetime.patch Description: Binary data -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] fonts from .edj framebuffer
On Fri, 24 Aug 2012 16:46:23 +0400 Юрий Лунев y...@indigosystem.ru wrote: 24.08.2012, в 16:37, David Seikel onef...@gmail.com написал(а): On Fri, 24 Aug 2012 16:15:23 +0400 Юрий Лунев y...@indigosystem.ru wrote: I have made edj file with DroidSans.ttf, 1 image and the markup. On the host, x86 X11, everything works ok (1 image 2 text labels). My target is arm926ej-s linux, Framebuffer. No X libraries, no fontconfig, etc. I don't get any text on my app, just the image. My guess is that font is somehow not loaded. Did you include the font into the .edj file? images { image: logo.png COMP; } fonts { font: DroidSans.ttf droid; } collections { group { name: hello; min: 100 200; max: 800 480; parts { part { name: bg; type: RECT; description { state: default 0.0; color: 255 255 255 255; aspect_preference: BOTH; } } part { name: logo; type: IMAGE; description { max: 61 26; align: 0.05 0.05; state: default 0.0; image { normal: logo.png; } } } part { name: timer-text; type: TEXT; effect: SOFT_OUTLINE; description { state: default 0.0; color: 0 0 255 255; text { font: droid; size: 72; text: 01:05:00; align: 0.5 0.5; } } } part { name: timer-clock; type: TEXT; effect: SOFT_OUTLINE; description { state: default 0.0; color: 0 0 255 255; text { font: droid; size: 36; text: 14:23:56; align: 0.5 0.3; } } } } } } $ eet -l hello.edj edje/images/0 here it is edje/fonts/droid edje_source_fontmap edje_sources edje/file edje/collections/0 Initially, I compiled EFL (evas) without fontconfig, i've added that afterwards with no practical difference. --- This is what I use in my embedded project - zlib m4 pkg-config eina libjpeg libpng eet freetype expat fontconfig evas ecore embryo lua edje Plus a few other things like busybox and bash. Maybe it's freetype that you are missing? -- A big old stinking pile of genius that no one wants coz there are too many silver coated monkeys in the world. signature.asc Description: PGP signature -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] fonts from .edj framebuffer
24.08.2012, в 17:07, David Seikel onef...@gmail.com написал(а): On Fri, 24 Aug 2012 16:46:23 +0400 Юрий Лунев y...@indigosystem.ru wrote: 24.08.2012, в 16:37, David Seikel onef...@gmail.com написал(а): On Fri, 24 Aug 2012 16:15:23 +0400 Юрий Лунев y...@indigosystem.ru wrote: I have made edj file with DroidSans.ttf, 1 image and the markup. On the host, x86 X11, everything works ok (1 image 2 text labels). My target is arm926ej-s linux, Framebuffer. No X libraries, no fontconfig, etc. I don't get any text on my app, just the image. My guess is that font is somehow not loaded. Did you include the font into the .edj file? This is what I use in my embedded project - zlib m4 pkg-config eina libjpeg libpng eet freetype expat fontconfig evas ecore embryo lua edje I should have not only evas rebuilt after i've added fontconfig. I've rebuilt everything of EFL and it worked. Thanks :-) --- Юрий Лунёв Ведущий программист ООО Системы Индиго smime.p7s Description: S/MIME cryptographic signature -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [Patch] [Elementary] elm_datetime widget bug fix : Display AM/PM string(s) in all locales
Hello, On 08/24/2012 02:03 PM, Rajeev Ranjan wrote: [Root cause]: Some locales don't have AM/PM string since they strictly follow 24 HR format and the this case is not handled in datetime widget. [Change Description]: Datetime widget is modified to display default AM/PM strings incase, if, it is not present in the locale. Is that still going to display AM/PM even if the hours are in 24h mode? If so I am against this. I quite like my 24h time :-) + // If a locale doesn't support AM/PM strings, set the default values + if ((buf[0] == 0) (!strncmp(fmt, %p, BUFF_SIZE) || strncmp(fmt, %P, BUFF_SIZE))) Here you probably want to negate the second strncmp() as well, so: ... (!strncmp() || !strncmp()) Regards Daniel -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [Patch] [Elementary] elm_datetime widget bug fix : Display AM/PM string(s) in all locales
Hi Daniel, Following is my reply to your queries. --- Original Message --- Sender : Daniel Willmannd.willm...@samsung.com Engineer/SERI-Samsung Linux Platform (SLP)/Samsung Electronics Date : Aug 24, 2012 19:06 (GMT+05:30) Title : Re: [E-devel] [Patch] [Elementary] elm_datetime widget bug fix : Display AM/PM string(s) in all locales Hello, On 08/24/2012 02:03 PM, Rajeev Ranjan wrote: [Root cause]: Some locales don't have AM/PM string since they strictly follow 24 HR format and the this case is not handled in datetime widget. [Change Description]: Datetime widget is modified to display default AM/PM strings incase, if, it is not present in the locale. Is that still going to display AM/PM even if the hours are in 24h mode? If so I am against this. I quite like my 24h time :-) Nope, it will not show AM/PM if hours are in 24h mode :). + // If a locale doesn't support AM/PM strings, set the default values + if ((buf[0] == 0) (!strncmp(fmt, %p, BUFF_SIZE) || strncmp(fmt, %P, BUFF_SIZE))) Here you probably want to negate the second strncmp() as well, so: ... (!strncmp() || !strncmp()) Basically checking here if AM/PM is not present in the buffer(inside locale string) and user wants AM/PM(by checking format here; will be set in case of 12 hour settings), then setting AM/PM based on the current time. Regards Daniel Regards, Rajeev -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [Patch] [Elementary] elm_datetime widget bug fix : Display AM/PM string(s) in all locales
Hello Rajeev, On 08/24/2012 02:51 PM, Rajeev Ranjan wrote: Hi Daniel, Following is my reply to your queries. --- Original Message --- Sender : Daniel Willmannd.willm...@samsung.com Engineer/SERI-Samsung Linux Platform (SLP)/Samsung Electronics Date : Aug 24, 2012 19:06 (GMT+05:30) Title : Re: [E-devel] [Patch] [Elementary] elm_datetime widget bug fix : Display AM/PM string(s) in all locales Hello, On 08/24/2012 02:03 PM, Rajeev Ranjan wrote: [Change Description]: Datetime widget is modified to display default AM/PM strings incase, if, it is not present in the locale. Is that still going to display AM/PM even if the hours are in 24h mode? If so I am against this. I quite like my 24h time :-) Nope, it will not show AM/PM if hours are in 24h mode :). Okay, then I have no problem :-) + // If a locale doesn't support AM/PM strings, set the default values + if ((buf[0] == 0) (!strncmp(fmt, %p, BUFF_SIZE) || strncmp(fmt, %P, BUFF_SIZE))) Here you probably want to negate the second strncmp() as well, so: ... (!strncmp() || !strncmp()) Basically checking here if AM/PM is not present in the buffer(inside locale string) and user wants AM/PM(by checking format here; will be set in case of 12 hour settings), then setting AM/PM based on the current time. I get that. I assume that you want to enter that branch if fmt contains either %p or %P and not in any other case. This means checking for !strncmp in both cases as strncmp returns zero if the strings match. I believe in your case you will enter that branch every time buf[0] equals zero and fmt is not equal to %P which I think is not what you want. Regards, Daniel -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: caro trunk/e/src/bin
i've forgotten to say that it was a patch from Maxime Villard (rustyBSD) sorry Vincent On Sat, Aug 25, 2012 at 12:18 AM, Enlightenment SVN no-re...@enlightenment.org wrote: Log: E: minor changes * useless define * formatting and useless comment * fread() returns a number = 0 * symlink returns -1 on error Author: caro Date: 2012-08-24 15:18:43 -0700 (Fri, 24 Aug 2012) New Revision: 75687 Trac: http://trac.enlightenment.org/e/changeset/75687 Modified: trunk/e/src/bin/e_fm_op.c Modified: trunk/e/src/bin/e_fm_op.c === --- trunk/e/src/bin/e_fm_op.c 2012-08-24 21:03:07 UTC (rev 75686) +++ trunk/e/src/bin/e_fm_op.c 2012-08-24 22:18:43 UTC (rev 75687) @@ -49,12 +49,6 @@ #define E_FREE(p) do { free(p); p = NULL; } while (0) -#define LG(fmt, args ...) { \ - FILE *f = fopen(log, a); \ - if (f) fprintf(f, fmt, ##args); \ - if (f) fclose(f);\ -} - typedef struct _E_Fm_Op_Task E_Fm_Op_Task; typedef struct _E_Fm_Op_Copy_Data E_Fm_Op_Copy_Data; @@ -284,8 +278,6 @@ { E_Fm_Op_Task *task; - /* If that doesn't work, setup a copy and delete operation. - It's not atomic, but it's the best we can do. */ task = _e_fm_op_task_new(); task-type = type; task-src.name = eina_stringshare_add(argv[2]); @@ -1165,7 +1157,7 @@ { E_FM_OP_DEBUG(Creating link from '%s' to '%s'\n, lnk_path, task-dst.name); -if (symlink(lnk_path, task-dst.name) != 0) +if (symlink(lnk_path, task-dst.name) == -1) { if (errno == EEXIST) { @@ -1264,7 +1256,7 @@ } dread = fread(buf, 1, sizeof(buf), data-from); - if (dread = 0) + if (dread == 0) { if (!feof(data-from)) _E_FM_OP_ERROR_SEND_WORK(task, E_FM_OP_ERROR, Cannot read data from '%s': %s., task-dst.name); @@ -1338,7 +1330,7 @@ return 1; } - if (S_ISLNK(task-src.st.st_mode)) +if (S_ISLNK(task-src.st.st_mode)) { char *dst_dir; @@ -1516,7 +1508,7 @@ E_FM_OP_DEBUG(Symlink: %s - %s\n, task-src.name, task-dst.name); - if (symlink(task-src.name, task-dst.name) != 0) + if (symlink(task-src.name, task-dst.name) == -1) { if (errno == EEXIST) { @@ -1550,7 +1542,9 @@ if (errno == ENOTEMPTY) { E_FM_OP_DEBUG(Attempt to remove non-empty directory.\n); - /* This should never happen due to way tasks are added to the work queue. If this happens (for example new files were created after the scan was complete), implicitly delete everything. */ + /* This should never happen due to way tasks are added to the work queue. + If this happens (for example new files were created after the scan was + complete), implicitly delete everything. */ ecore_file_recursive_rm(task-src.name); task-finished = 1; /* Make sure that task is removed. */ return 1; -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-svn mailing list enlightenment-...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-svn -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel