Re: [HarfBuzz] arabic positioning without gpos

2010-01-14 Thread Khaled Hosny
for any glyph of combining marks class. Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ HarfBuzz mailing list HarfBuzz@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo

Re: [HarfBuzz] The status of harfbuzz-ng shapers

2010-08-13 Thread Khaled Hosny
On Fri, Aug 13, 2010 at 02:27:12PM -0400, Behdad Esfahbod wrote: On 08/13/10 14:20, Khaled Hosny wrote: Great, can't wait to try it (especially with the python bindings). Speaking of the Python bindings. They need a lot of love. Would be nice if someone makes a real FreeType binding

Re: [HarfBuzz] Question about HarfBuzz-ng OpenType Implementation

2010-09-14 Thread Khaled Hosny
on scribus, of course it isnt opentype savvy at all. vernon On Tue, 2010-09-14 at 22:29 +0300, Khaled Hosny wrote: On Tue, Sep 14, 2010 at 02:32:39PM -0400, Ed wrote: excerpt of email from Vernon Adams: Your gpos lookups in OpenType fonts (.ot) do not work in all

Re: [HarfBuzz] A couple of clarifications regarding HarfBuzz

2010-10-20 Thread Khaled Hosny
On Wed, Oct 20, 2010 at 06:01:40PM +0200, Tom Hacohen wrote: On Wed, 2010-10-20 at 17:50 +0200, Khaled Hosny wrote: Each OpenType lookup is associated with script(s) and language(s) where it should be active. Oh, right, didn't think about those Latin users, my bad. What's the best way

Re: [HarfBuzz] Arabic vowels and shaping - incomplete behavior

2010-10-27 Thread Khaled Hosny
On Wed, Oct 27, 2010 at 01:28:38PM +0200, Tom Hacohen wrote: Hey, Is it just me, or do vowels break shaping in Arabic? It shouldn't, either the font is broken or you are not doing it right. Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font

Re: [HarfBuzz] 'init' OT feature in Hebrew

2010-11-12 Thread Khaled Hosny
could be used instead? I just checked the MS description page, it even gives cursive Latin as a use case: http://www.microsoft.com/typography/otspec/features_fj.htm#init Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer

Re: [HarfBuzz] A few HarfBuzz-ng questions

2010-11-17 Thread Khaled Hosny
technology to use by selecting the appropriate font, I don't see what is the benefit of amalgamating all in one font file and I can see possible issues that it would cause. Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer

Re: [HarfBuzz] On fallback shaping and future directions

2010-11-22 Thread Khaled Hosny
, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ HarfBuzz mailing list HarfBuzz@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/harfbuzz

Re: [HarfBuzz] how to test ICU backend in harfbuzz-ng?

2010-11-29 Thread Khaled Hosny
functions that HB needs, but the actual shaping is all done by HB itself. Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ HarfBuzz mailing list HarfBuzz@lists.freedesktop.org http

Re: [HarfBuzz] Possible bug in chain_context_lookup with Gpos

2011-01-06 Thread Khaled Hosny
. Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer test-pango.pdf Description: Adobe PDF document test-xetex.pdf Description: Adobe PDF document ___ HarfBuzz mailing list HarfBuzz

[HarfBuzz] FreeType/Cairo example

2011-02-20 Thread Khaled Hosny
with the attached code, but I'm not familiar with any of the FreeType/HarfBuzz/Cairo black magic. Regards, khaled -- Khaled Hosny Egyptian /* $ cc `freetype-config --cflags --libs` \ `pkg-config --cflags --libs harfbuzz` \ `pkg-config --cflags --libs cairo` \ `pkg-config --cflags

Re: [HarfBuzz] FreeType/Cairo example

2011-02-20 Thread Khaled Hosny
On Sun, Feb 20, 2011 at 04:29:49PM +0200, Khaled Hosny wrote: I'm trying to write a simple HB test and thought using FreeType/Cairo would be the shortest path. I got the code to shape the text, but glyph positions are wrong (at least horizontal positions); some glyphs are too close, others

Re: [HarfBuzz] FreeType/Cairo example

2011-02-20 Thread Khaled Hosny
On Sun, Feb 20, 2011 at 08:23:39PM +, Jonathan Kew wrote: On 20 Feb 2011, at 14:39, Khaled Hosny wrote: On Sun, Feb 20, 2011 at 04:29:49PM +0200, Khaled Hosny wrote: I'm trying to write a simple HB test and thought using FreeType/Cairo would be the shortest path. I got the code

Re: [HarfBuzz] FreeType/Cairo example

2011-02-22 Thread Khaled Hosny
On Tue, Feb 22, 2011 at 01:49:46PM -0500, Behdad Esfahbod wrote: On 02/22/11 13:44, Khaled Hosny wrote: I thought about this already, but it give me much worse spacing; glyps are too widely spaced that two of them can't fit in the screen, see the attached file. Divide the offset/advance

Re: [HarfBuzz] hb-view

2011-02-27 Thread Khaled Hosny
(including switching off default ones) would be very handy for font testing and debugging. Regards, Khaled -- Khaled Hosny Egyptian Arab ___ HarfBuzz mailing list HarfBuzz@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/harfbuzz

Re: [HarfBuzz] inputting text already containing some glpyhs

2011-04-21 Thread Khaled Hosny
comes up. ___ HarfBuzz mailing list HarfBuzz@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/harfbuzz -- Khaled Hosny Egyptian Arab ___ HarfBuzz mailing list HarfBuzz

Re: [HarfBuzz] Unicode vs glyphs

2011-06-14 Thread Khaled Hosny
that are not assigned Unicode code points, you were lucky to not encounter them until now, but in the era of smart fonts it is becoming more and more common practice especially in high quality fonts. Regards, Khaled -- Khaled Hosny Egyptian Arab

Re: [HarfBuzz] Unicode vs glyphs

2011-06-14 Thread Khaled Hosny
fathers favourite for his important handwriting instead of the common Riqaa, the only one I've seen writing Nastliq with a pencil, one day I'll make a font out of his handwriting :) -- Khaled Hosny Egyptian Arab ___ HarfBuzz mailing list HarfBuzz

[HarfBuzz] hb-ot-hmtx-table.hh is missing from repository

2011-08-24 Thread Khaled Hosny
Build fails because hb-tt-font.cc includes hb-ot-hmtx-table.hh which does not exist. Regards, Khaled -- Khaled Hosny Egyptian Arab ___ HarfBuzz mailing list HarfBuzz@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/harfbuzz

[HarfBuzz] Broken Arabic mark/mark interaction

2011-08-25 Thread Khaled Hosny
sequences up to three marks after shadda at least (and in various combinations), also I was trying to avoid ligatures at all in my font for several reasons, and I suspect that my font is not the only affected font. Regards, Khaled -- Khaled Hosny Egyptian Arab

Re: [HarfBuzz] Broken Arabic mark/mark interaction

2011-08-25 Thread Khaled Hosny
at this time! :) On 08/25/11 08:45, Khaled Hosny wrote: After the introduction of canonical reordering of combining marks (commit 34c22f8), I'm no longer able to do mark/mark substitution or positioning for mark sequences that involve shadda as a first mark (or most interesting sequences

[HarfBuzz] `hb-view --line-space=100` does not show all the lines

2011-09-19 Thread Khaled Hosny
Hi all, It seems the overall image height does not take into account the value of --line-space into account, causing some bottom lines not to be shown. Regards, Khaled -- Khaled Hosny Egyptian Arab ___ HarfBuzz mailing list HarfBuzz

Re: [HarfBuzz] `hb-view --line-space=100` does not show all the lines

2011-09-19 Thread Khaled Hosny
Thanks! On Mon, Sep 19, 2011 at 05:57:22PM -0400, Behdad Esfahbod wrote: Fixed. On 09/19/11 17:53, Khaled Hosny wrote: Hi all, It seems the overall image height does not take into account the value of --line-space into account, causing some bottom lines not to be shown. Regards

Re: [HarfBuzz] hb-view and beyond

2011-09-20 Thread Khaled Hosny
outputing the cluster value or the positions, or use glyph indices instead of glyph names. It seems that --no-positions suppresses outputting clusters as well. Regards, Khaled -- Khaled Hosny Egyptian Arab ___ HarfBuzz mailing list HarfBuzz

Re: [HarfBuzz] hb-view and beyond

2011-09-21 Thread Khaled Hosny
On Tue, Sep 20, 2011 at 04:46:40PM -0400, Behdad Esfahbod wrote: On 09/20/11 14:32, Khaled Hosny wrote: I just noticed that feature ranges assume byte not character count, e.g. to apply a feature for first 10 Arabic characters I've to pass [:20] not [:10], I can live with that but it wasn't

Re: [HarfBuzz] Patch for harfbuzz

2011-10-26 Thread Khaled Hosny
On Wed, Oct 26, 2011 at 09:13:36AM +0100, John Tapsell wrote: Hi guys, I have a font with GPOS kerning with position and advancement adjustments for arabic. This seems to be fairly rare as I cannot find another font with GPOS kerning for a RTL language. Not that rare actually (unless you

Re: [HarfBuzz] Wich version works?

2011-12-14 Thread Khaled Hosny
On Wed, Dec 14, 2011 at 09:46:42PM +0100, Alfabety wrote: Hi, I'm playing around hb-view for a while. In harfbuzz v.0.6 I have no problems with setting salt feature. I updated to: hb-view (harfbuzz) 0.7.0 Available shapers: ot,fallback by git://anongit.freedesktop.org/harfbuzz. But now

Re: [HarfBuzz] Wich version works?

2011-12-15 Thread Khaled Hosny
On Wed, Dec 14, 2011 at 04:57:44PM -0500, Behdad Esfahbod wrote: On 12/14/2011 04:47 PM, Khaled Hosny wrote: May be this should be added to the help message somehow, it is very helpful as is. Should be trivial adding it as --help-features. Feel free to send patch. OK, here

Re: [HarfBuzz] Wich version works?

2011-12-15 Thread Khaled Hosny
On Thu, Dec 15, 2011 at 01:23:26AM +0100, Adam Twardoch (List) wrote: On 11-12-14 22:57, Behdad Esfahbod wrote: On 12/14/2011 04:47 PM, Khaled Hosny wrote: May be this should be added to the help message somehow, it is very helpful as is. Should be trivial adding it as --help-features

Re: [HarfBuzz] harfbuzz-ng: Branch 'master'

2012-03-07 Thread Khaled Hosny
On Tue, Mar 06, 2012 at 05:47:57PM -0800, Behdad Esfahbod wrote: + * knowledge too. We need ot provide assistance to the itemizer. There is a typo: s/ot/to/ Regards, Khaled ___ HarfBuzz mailing list HarfBuzz@lists.freedesktop.org

Re: [HarfBuzz] A problem in thai shaper

2012-04-16 Thread Khaled Hosny
On Mon, Apr 16, 2012 at 09:08:49PM -0400, Behdad Esfahbod wrote: Problem 2: When there is no consonant exist, the dotted circle should be inserted as base character. The logic should be the first step for the shaping engine to find the invalid combing marks. Refer to

Re: [HarfBuzz] A problem in thai shaper

2012-04-17 Thread Khaled Hosny
On Tue, Apr 17, 2012 at 05:10:37AM +0200, Khaled Hosny wrote: On Mon, Apr 16, 2012 at 09:08:49PM -0400, Behdad Esfahbod wrote: Problem 2: When there is no consonant exist, the dotted circle should be inserted as base character. The logic should be the first step for the shaping

Re: [HarfBuzz] harfbuzz-ng: Branch 'master' - 86 commits

2012-05-12 Thread Khaled Hosny
Wow! ___ HarfBuzz mailing list HarfBuzz@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/harfbuzz

Re: [HarfBuzz] harfbuzz-ng: Branch 'master' - 2 commits

2012-05-16 Thread Khaled Hosny
On Wed, May 16, 2012 at 11:28:41PM -0400, Behdad Esfahbod wrote: On 05/16/2012 07:58 AM, Khaled Hosny wrote: On Tue, May 15, 2012 at 08:54:24PM -0700, Behdad Esfahbod wrote: [util] Add hb-ot-shape-closure tool Computes all the glyphs that may be generated given a font

Re: [HarfBuzz] [p-c] Perso-Arabic symbols for year

2012-05-30 Thread Khaled Hosny
On Tue, May 29, 2012 at 04:29:03AM +0200, Khaled Hosny wrote: ¹ only end of ayah not the others, but since they all share the same lookup, I suspect it is a Unicode properties issue on Firefox side. This might be a Firefox regression, I commented here: https://bugzilla.mozilla.org

Re: [HarfBuzz] [p-c] Perso-Arabic symbols for year

2012-05-30 Thread Khaled Hosny
On Thu, May 31, 2012 at 01:28:52AM -0400, Behdad Esfahbod wrote: On 2012-05-31, at 12:58 AM, Khaled Hosny khaledho...@eglug.org wrote: On Tue, May 29, 2012 at 04:29:03AM +0200, Khaled Hosny wrote: ¹ only end of ayah not the others, but since they all share the same lookup, I suspect

Re: [HarfBuzz] [Harfbuzz-indic] Harfbuzz test with Telugu and Build commands for Ubuntu 12.04

2012-06-01 Thread Khaled Hosny
On Fri, Jun 01, 2012 at 11:42:17AM -0400, Behdad Esfahbod wrote: On 06/01/2012 01:33 AM, Arjuna Rao Chavala wrote: Sorry, the missing link for my previous email is https://sites.google.com/site/linuxteluguusers/vartalu/harph%E2%80%8Cbajkottataramloprayogatmakatelugu Nice. Note that if you

Re: [HarfBuzz] [p-c] Perso-Arabic symbols for year

2012-06-03 Thread Khaled Hosny
On Thu, May 31, 2012 at 01:00:31AM -0400, Behdad Esfahbod wrote: On 2012-05-28, at 10:29 PM, Khaled Hosny khaledho...@eglug.org wrote: On Mon, May 28, 2012 at 07:50:55PM -0400, Behdad Esfahbod wrote: [CC'ing Khaled and HarfBuzz list] This block: feature calt { sub

Re: [HarfBuzz] [p-c] Perso-Arabic symbols for year

2012-06-03 Thread Khaled Hosny
Typesetting font (all Windows users) or otherwise, it should access the Scheherazade font placed in the same folder. Not sure what went wrong. Currently these symbols seem to only work if you're on Windows and IE. On Thu, May 31, 2012 at 11:18 AM, Khaled Hosny khaledho...@eglug.org wrote: On Thu

Re: [HarfBuzz] [p-c] Perso-Arabic symbols for year

2012-06-04 Thread Khaled Hosny
, the bottom, right portion collides with the Arabic Number Sign a bit. But no big deal. I think the other points, many of which are critical issues, need to be taken up in a separate thread. Please hang on.   On Mon, Jun 4, 2012 at 11:02 AM, Khaled Hosny khaledho...@eglug.org wrote

Re: [HarfBuzz] Multiple substitution and mark positioning

2012-06-12 Thread Khaled Hosny
Esfahbod wrote: Hi Khaled and others, I fixed this, among other things, including a major mlig and mkmk regression. Please test. behdad On 05/12/2012 08:54 AM, Khaled Hosny wrote: Hi all, There seems to be a difference between HarfBuzz and Uniscribe on how to handle mark positioning

Re: [HarfBuzz] Multiple substitution and mark positioning

2012-06-12 Thread Khaled Hosny
Sorry, I see I din’t mention font used, it is the same version of Amiri I sent to you earlier. Regards, Khaled On Tue, Jun 12, 2012 at 09:48:11AM -0400, Behdad Esfahbod wrote: Ah, this can get really ugly. Can you please send me a test font? behdad On 06/12/2012 06:31 AM, Khaled Hosny

Re: [HarfBuzz] hb-view --script and --language tests?

2012-06-14 Thread Khaled Hosny
On Thu, Jun 14, 2012 at 10:19:19PM +0200, Rolf Langenhuijzen wrote: Hello, I wanted to test the --script and --language options of hb-view to see these features in action. For example --script=cyrl with --language=SRB or --script=latin --language=TRK. Then try to get similar results as:

Re: [HarfBuzz] hb-view output other than png possible?

2012-06-15 Thread Khaled Hosny
, Rolf On Jun 15, 2012, at 1:29 AM, Khaled Hosny wrote: On Thu, Jun 14, 2012 at 10:03:16PM +0200, Rolf Langenhuijzen wrote: Does hb-view already support output other than png? I read some on the list about a possible --format setting (for svg, pdf, eps, png, …), but I don't see it in hb

Re: [HarfBuzz] [p-c] Perso-Arabic symbols for year

2012-05-28 Thread Khaled Hosny
On Mon, May 28, 2012 at 07:50:55PM -0400, Behdad Esfahbod wrote: [CC'ing Khaled and HarfBuzz list] On 05/28/2012 06:57 PM, Shervin Afshar wrote: I noticed the same problem with Text Edit, but with NeoOffice using Amiri font I had a bit of success as the string of U+0601 followed by

[HarfBuzz] MarkAttachmentType lookup flag has no effect

2012-07-15 Thread Khaled Hosny
It seems that the (older) MarkAttachmentType lookup flag is not applied by HarfBuzz, while the (newer) UseMarkFilteringSet flag works fine. Here is the same font font once using MarkAttachmentType and once using UseMarkFilteringSet with the same mark glyph class in both cases (and it is the only

Re: [HarfBuzz] Lemongrass HarfBuzz Hackfest, end of day 1

2012-07-16 Thread Khaled Hosny
On Mon, Jul 16, 2012 at 10:47:15PM -0400, Behdad Esfahbod wrote: On 07/16/2012 10:38 PM, Behdad Esfahbod wrote: On 07/16/2012 10:28 PM, Behdad Esfahbod wrote: More updates tomorrow. In the mean time, the GSUB fix may have had addressed the issue Khaled recently reported. Khaled, would

Re: [HarfBuzz] Multiple substitution and mark positioning

2012-07-25 Thread Khaled Hosny
Typesetting I assume? b On 06/12/2012 06:31 AM, Khaled Hosny wrote: I’m not sure if this is related, but I now get no mkmk positioning when the marks are “inserted” using multiple substitution. For example, “للّٰه” is positioned correctly, while “لله” is not though it is the same mark

Re: [HarfBuzz] Multiple substitution and mark positioning

2012-07-25 Thread Khaled Hosny
Thanks Behdad. On Wed, Jul 25, 2012 at 06:39:29PM -0400, Behdad Esfahbod wrote: Fixed. On 07/25/2012 05:13 PM, Khaled Hosny wrote: This only applies to the marks that result of multiple substitution i.e. in Amiri the middle lam of لله is substituted with lamshaddasmallalef, I don’t

Re: [HarfBuzz] Mapping output glyphs back to input character

2012-07-25 Thread Khaled Hosny
On Sun, Jul 22, 2012 at 11:37:23PM -0400, Behdad Esfahbod wrote: Hi Khaled, On 07/21/2012 05:49 AM, Khaled Hosny wrote: How do I map output glyphs back to input characters? I assume I've to use clusters for that, but I can't make much sense of the cluster numbers I'm seeing and don't

Re: [HarfBuzz] Harfbuzz on Windows

2012-07-27 Thread Khaled Hosny
On Fri, Jul 27, 2012 at 03:04:16PM -0600, Bobby de Vos wrote: On 12-07-25 05:50 PM, Behdad Esfahbod wrote: On 07/25/2012 07:18 PM, Samiullah Khawaja wrote: Hi, What about uniscribe? Will it be able to replace the icu/glib dependency. I thought I can get rid of icu/glib dependency by

[HarfBuzz] Placement of arabic diacritics over 3 component ligature is incorrent

2012-07-28 Thread Khaled Hosny
Going through old Pango bugs to see if there is anything HarfBuzz related, I found this one which is still reproducible with HarfBuzz (marks over 2nd component of لله are placed over the 3rd one, marks over the other two components are placed correctly):

Re: [HarfBuzz] harfbuzz-ng: Branch 'master' - 2 commits

2012-07-29 Thread Khaled Hosny
On Sun, Jul 29, 2012 at 02:34:16PM -0700, Behdad Esfahbod wrote: diff --git a/src/hb-shape-plan.cc b/src/hb-shape-plan.cc index af3c18d..f9f9f3d 100644 --- a/src/hb-shape-plan.cc +++ b/src/hb-shape-plan.cc @@ -115,7 +115,7 @@ hb_shape_plan_get_empty (void) static const hb_shape_plan_t

[HarfBuzz] Urdu word lists

2012-08-10 Thread Khaled Hosny
This should be useful for testing HarfBuzz: http://www.crulp.org/software/ling_resources.htm (The valid ligatures files is the most interesting, especially with a font like Nafees Nastaleeq). Regards, Khaled ___ HarfBuzz mailing list

Re: [HarfBuzz] GObject Introspection Change HarfBuzz version

2012-08-10 Thread Khaled Hosny
On Fri, Aug 10, 2012 at 02:53:59PM -0400, Behdad Esfahbod wrote: As of this week, I'm glad to say that I ran out of essential features to implement for a 1.0 release, What about poor man's kashida justification à la Qt/HarfBuzz? I think it is something that would block Qt's adoption of the new

Re: [HarfBuzz] harfbuzz: Branch 'master'

2012-08-16 Thread Khaled Hosny
On Thu, Aug 16, 2012 at 05:11:37AM -0700, Behdad Esfahbod wrote: configure.ac | 21 + 1 file changed, 1 insertion(+), 20 deletions(-) New commits: commit b161bfc4f6f2db0edea780b95b798ff7b559cf33 Author: Behdad Esfahbod beh...@behdad.org Date: Thu Aug 16 08:09:44

Re: [HarfBuzz] harfbuzz: Branch 'master'

2012-08-16 Thread Khaled Hosny
On Thu, Aug 16, 2012 at 09:27:30AM -0400, Behdad Esfahbod wrote: On 08/16/2012 09:25 AM, Khaled Hosny wrote: On Thu, Aug 16, 2012 at 05:11:37AM -0700, Behdad Esfahbod wrote: configure.ac | 21 + 1 file changed, 1 insertion(+), 20 deletions(-) New commits: commit

Re: [HarfBuzz] harfbuzz: Branch 'master'

2012-08-16 Thread Khaled Hosny
On Thu, Aug 16, 2012 at 03:54:06PM +0200, Khaled Hosny wrote: I didn't find any (nor against Debian package), I guess I'll submit one. https://bugs.launchpad.net/ubuntu/+source/icu/+bug/1037588 Regards, Khaled ___ HarfBuzz mailing list HarfBuzz

[HarfBuzz] The canonical ordering of hamza marks

2012-08-26 Thread Khaled Hosny
Hi Behdad, I just noticed that hamza above and below marks (U+0654, U+0655), are reordered after Arabic vowel marks because they have much higher combining classes, 230 and 222 (the generic combining class above and below, respectively), which breaks mkmk positioning. I tried to make a patch to

Re: [HarfBuzz] The canonical ordering of hamza marks

2012-08-26 Thread Khaled Hosny
On Mon, Aug 27, 2012 at 01:15:10AM +0200, Khaled Hosny wrote: Hi Behdad, I just noticed that hamza above and below marks (U+0654, U+0655), are reordered after Arabic vowel marks because they have much higher combining classes, 230 and 222 (the generic combining class above and 220 not 222

Re: [HarfBuzz] The canonical ordering of hamza marks

2012-09-02 Thread Khaled Hosny
On Sat, Sep 01, 2012 at 06:40:40PM -0400, Behdad Esfahbod wrote: On 08/26/2012 07:15 PM, Khaled Hosny wrote: Hi Behdad, I just noticed that hamza above and below marks (U+0654, U+0655), are reordered after Arabic vowel marks because they have much higher combining classes, 230 and 222

Re: [HarfBuzz] Connected glyphs Contextual Alternates

2012-09-15 Thread Khaled Hosny
On Sat, Sep 15, 2012 at 06:42:25PM +0200, Maison en a Pecita wrote: Hello Harfbuzz list. I used the Contextual Alternates to connect to each other glyphs in Latin fonts. The result is perfect for printing but is disappointing to the screen. This is because of the hinting mechanisms that

[HarfBuzz] Simplish example using HarfBuzz with Qt

2012-10-07 Thread Khaled Hosny
Hi all, A while ago I wrote a very simple example of using HarfBuzz to draw text on a Qt canvas (QPainter) while helping a friend. I don’t know much of Qt and it does not do much, but I thought it might help someone, so I’ve put it on GitHub: https://github.com/khaledhosny/QtHarfBuzzExample

Re: [HarfBuzz] Library similar to HarfBuzz to shape mathematical equations?

2012-11-14 Thread Khaled Hosny
Hi, I'd be interested in helping with such an effort, I already started cleaning up GtkMathView (on a private fork) a while ago to prepare it for OpenType math support, would there be any interest in HarfBuzz providing an API to read MATH table? (I think it might help a bit with porting Gecko to

Re: [HarfBuzz] Library similar to HarfBuzz to shape mathematical equations?

2012-11-14 Thread Khaled Hosny
On Thu, Nov 15, 2012 at 12:23:32AM +0200, Khaled Hosny wrote: On Wed, Nov 14, 2012 at 11:11:08AM -0800, Behdad Esfahbod wrote: On 12-11-14 08:59 AM, Lóránt Pintér wrote: Sorry for the off-topic question, but is there maybe a library similar to HatfBuzz that can be used to shape/layout

Re: [HarfBuzz] Library similar to HarfBuzz to shape mathematical equations?

2012-11-14 Thread Khaled Hosny
are the hard parts? In other words: how big would the project have to be? -- Lóránt Pintér Developer at Prezi On Wednesday, November 14, 2012 at 11:23 PM, Khaled Hosny wrote: Hi, I'd be interested in helping with such an effort, I already started cleaning up

[HarfBuzz] Retrieving optical size info?

2012-11-23 Thread Khaled Hosny
Is there is a way in Harfbuzz to get optical size info from the ‘size’ feature (searching the code, I could’t find any)? If not, is there any plans in doing so? Logically, this belongs to FontConfig or FreeType, but the awkward choice of implementing it as a GPOS feature (that is not really a

Re: [HarfBuzz] Retrieving optical size info?

2012-11-24 Thread Khaled Hosny
On Sat, Nov 24, 2012 at 01:05:26AM -0500, Behdad Esfahbod wrote: On 12-11-23 07:42 PM, Khaled Hosny wrote: (Background: I’m almost done with porting XeTeX from ICU LayoutEngine to HarfBuzz, one of the few things remaining is getting optical size. The current code uses some internal LE API

Re: [HarfBuzz] Retrieving optical size info?

2012-11-27 Thread Khaled Hosny
On Mon, Nov 26, 2012 at 02:03:15PM +0200, Behdad Esfahbod wrote: On 12-11-24 10:58 PM, Khaled Hosny wrote: On Sat, Nov 24, 2012 at 01:05:26AM -0500, Behdad Esfahbod wrote: On 12-11-23 07:42 PM, Khaled Hosny wrote: (Background: I’m almost done with porting XeTeX from ICU LayoutEngine

Re: [HarfBuzz] Retrieving optical size info?

2012-11-27 Thread Khaled Hosny
On Tue, Nov 27, 2012 at 04:00:49PM +, Jonathan Kew wrote: On 27/11/12 15:37, Khaled Hosny wrote: On Mon, Nov 26, 2012 at 02:03:15PM +0200, Behdad Esfahbod wrote: On 12-11-24 10:58 PM, Khaled Hosny wrote: On Sat, Nov 24, 2012 at 01:05:26AM -0500, Behdad Esfahbod wrote: On 12-11-23 07:42

Re: [HarfBuzz] pangocairo on Mac: transformation matrix and fontsize

2012-12-06 Thread Khaled Hosny
On Fri, Dec 07, 2012 at 11:06:51AM +0700, Martin Hosken wrote: Could you explain why you think that linking against libgraphite2 is non-portable? Perhaps you could remove this warning? Graphite2 builds in all environments that TeX Live and Firefox do. And we would be more than happy to ensure

Re: [HarfBuzz] patch to add getters for gr_font and gr_face

2012-12-09 Thread Khaled Hosny
On Sat, Dec 08, 2012 at 12:41:01AM +0700, Martin Hosken wrote: Dear Behdad, Khaled says he needs this for xetex. I enclose a patch to add getter functions to hb-graphite2 for gr_font and gr_face. No idea if the work though ;) Thanks Martin, this seems to work for my need (hb-graphite2.h is

Re: [HarfBuzz] patch to add getters for gr_font and gr_face

2012-12-09 Thread Khaled Hosny
On Sun, Dec 09, 2012 at 06:49:08PM -0500, Behdad Esfahbod wrote: On 12-12-09 04:34 AM, Khaled Hosny wrote: On Sat, Dec 08, 2012 at 12:41:01AM +0700, Martin Hosken wrote: Dear Behdad, Khaled says he needs this for xetex. I enclose a patch to add getter functions to hb-graphite2

Re: [HarfBuzz] Library similar to HarfBuzz to shape mathematical equations?

2012-12-12 Thread Khaled Hosny
On Wed, Dec 12, 2012 at 11:40:40AM -0500, Behdad Esfahbod wrote: On 12-11-14 05:32 PM, Khaled Hosny wrote: we also use some private API to read MATH table on our own, so if HarfBuzz provided an API to read MATH table that would help greatly. What kind of API do you currently have? Just

Re: [HarfBuzz] harfbuzz: Branch 'master' - 6 commits

2012-12-12 Thread Khaled Hosny
On Wed, Dec 12, 2012 at 08:39:26AM -0800, Behdad Esfahbod wrote: We still don't look for the old incorrect place of the featureParams. I'll wait till someone actually complains about it... Actually the first font I tested was an old-AFDKO broken one, so I’m already complaining :)

Re: [HarfBuzz] Library similar to HarfBuzz to shape mathematical equations?

2012-12-13 Thread Khaled Hosny
On Thu, Dec 13, 2012 at 05:28:14PM -0500, Behdad Esfahbod wrote: On 12-12-12 08:57 PM, Khaled Hosny wrote: Murray Sargent blog post which describes the API they have: http://blogs.msdn.com/b/murrays/archive/2010/01/12/special-capabilities-of-a-math-font.aspx Ah, I have not had seen

Re: [HarfBuzz] Font introspection tool

2012-12-18 Thread Khaled Hosny
On Tue, Dec 18, 2012 at 06:18:20PM -0500, Behdad Esfahbod wrote: On 12-12-18 06:16 PM, Jonathan Kew wrote: On 18/12/12 22:23, Behdad Esfahbod wrote: Hi Khaled Jonathan, Here's another idea. Now that HarfBuzz shaper is fairly complete, we've been adding lots of what I call

Re: [HarfBuzz] Font introspection tool

2012-12-19 Thread Khaled Hosny
On Wed, Dec 19, 2012 at 08:52:36AM +0100, Werner LEMBERG wrote: I don’t think there are existing JSON to TeX packages, but it shouldn’t be hard to write some python script to process JSON output (I’m guessing here, I never dealt with JSON). pandoc? Didn’t know that pandoc can

[HarfBuzz] Issue with Sanskrit 2003 font

2012-12-28 Thread Khaled Hosny
Happy holidays everyone :) While testing an issue¹ with XeTeX rendering of Devanagari using Sanskrit 2003 font², I noticed that the Harfbuzz output for the string “मन्त्र्यमाण” differs from that of Uniscribe (or ICU), but I know nothing about Devanagari to tell which is correct, so I’m reporting

Re: [HarfBuzz] Issue with Sanskrit 2003 font

2012-12-28 Thread Khaled Hosny
On Fri, Dec 28, 2012 at 07:20:28PM +0530, Shriramana Sharma wrote: Hello Khaled. On Fri, Dec 28, 2012 at 3:27 PM, Khaled Hosny khaledho...@eglug.org wrote: While testing an issue¹ ¹ http://tex.stackexchange.com/q/88323/729 I could not reproduce the issue on my system. with XeTeX

Re: [HarfBuzz] information on how to report a bug on OpenType Layout

2013-01-01 Thread Khaled Hosny
I’d first make sure you are using the same ICU version in LibreOffice and HarfBuzz ICU shaper, I recall ICU LayoutEngine introducing several bugs in its latest versions. Regards, Khaled On Tue, Jan 01, 2013 at 06:15:45PM -0600, Behdad Esfahbod wrote: Hi Élie, I have no explanation for why it

[HarfBuzz] New release?

2013-01-02 Thread Khaled Hosny
Hi Behdad, Any estimates for when next HarfBuzz will be released? (for integrating new XeTeX into TeX Live). Regards, Khaled ___ HarfBuzz mailing list HarfBuzz@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/harfbuzz

Re: [HarfBuzz] New release?

2013-01-02 Thread Khaled Hosny
Great! On Thu, Jan 03, 2013 at 12:16:44AM -0600, Behdad Esfahbod wrote: You got it. On 13-01-02 05:20 AM, Khaled Hosny wrote: Hi Behdad, Any estimates for when next HarfBuzz will be released? (for integrating new XeTeX into TeX Live). Regards, Khaled

[HarfBuzz] [kak...@fuk.kindai.ac.jp: new XeTeX]

2013-01-03 Thread Khaled Hosny
: new XeTeX Dear Khaled Hosny, Thanks for the new XeTeX. I atach changes for Visual Studio 2005: harfbuzz.diff.txt for harfbuzz-0.9.10 xetex.diff.txt for XeTeX. I think it compiles and runs fine. Thanks, Akira - End forwarded message - diff -ur harfbuzz-0.9.10-orig/src/hb-open-type

Re: [HarfBuzz] harfbuzz: Branch 'master'

2013-01-31 Thread Khaled Hosny
On Thu, Jan 31, 2013 at 03:18:35PM -0800, Behdad Esfahbod wrote: --- a/util/options.cc +++ b/util/options.cc @@ -414,7 +414,7 @@ font_options_t::get_font (void) const GString *gs = g_string_new (NULL); char buf[BUFSIZ]; #ifdef HAVE__SETMODE - _setmode (fileno (stdin),

Re: [HarfBuzz] Ligatures and color changes

2013-02-19 Thread Khaled Hosny
On Tue, Feb 19, 2013 at 05:34:40PM -0500, Behdad Esfahbod wrote: Is there maybe a way to tell HarfBuzz to ignore ligatures if they span that color boundary? Or is there maybe a way to (quickly) assess if liga would be applied to a range of characters? We don't have a good answer for

Re: [HarfBuzz] What the correct way to set font size with FreeType?

2013-03-06 Thread Khaled Hosny
On Wed, Mar 06, 2013 at 03:21:49AM -0500, Behdad Esfahbod wrote: On 13-03-02 01:50 PM, Khaled Hosny wrote: Hi all, So far I have been calling FT_Set_Char_Size() with point size * 46 before hb_ft_font_create(), but today I had a problem with Hiragino Mincho Pro (and other Mac Japanese

[HarfBuzz] When to use hb_font_set_ppem()?

2013-03-09 Thread Khaled Hosny
Hi All, My understanding is that x/y_ppem are used for device tables adjustments, but since I’m outputting to PDF files, I think I don’t need/shouldn’t use such adjustments, what do you think? Regards, Khaled ___ HarfBuzz mailing list

[HarfBuzz] Arabic Presentation Forms-A in fallback shaping

2013-03-12 Thread Khaled Hosny
Hi Behdad, While comparing the fallback shaping ICU-based XeTeX with the HarfBuzz-based one, I noticed that ICU uses the Arabic Presentation Forms-A ligatures if the font have them unlike HarfBuzz. It is not a big issue (I don’t even have such font, I striped OT tables from fonts to test), but it

[HarfBuzz] Funny effect of fallback mark positioning

2013-03-12 Thread Khaled Hosny
Hi Behdad, When (accidentally) testing fonts that has no OpenType tables with vocalized Arabic text, the fallback glyph positioning gives a funny Tetris-like patterns. I like it :) but may be HarfBuzz should give up on fallback positioning if the mark will end up as .notdef. See the attached

[HarfBuzz] Support for optical 'opdb' feature(s)

2013-03-15 Thread Khaled Hosny
Hi all, I’m considering the possibility of adding support for ‘opbd’ feature in XeTeX, and I have some questions. The OpenType feature registry description¹ is a bit contradicting, but my understanding is that ‘opbd’ is a merely user interface shorthand, and the actual features are ‘ltbd’ and

Re: [HarfBuzz] Support for optical 'opdb' feature(s)

2013-03-15 Thread Khaled Hosny
On Sat, Mar 16, 2013 at 12:24:30AM +0200, Khaled Hosny wrote: So I’m asking if HarfBuzz can provide an API to retrieve optical bounds, something like: hb_ot_layout_get_glyph_optical_bounds (face, gid, side) if side == left: query ‘ltbd’ else if side == right query ‘rtbd

[HarfBuzz] Regression with ZWJ in Indic scripts

2013-03-18 Thread Khaled Hosny
The issue reported below seems to be a regression in 0.9.13, basically ZWJ seems to be completely ignored, with 0.9.12 I get the desired output. Regards, Khaled - Forwarded message from Ian-Mathew Hornburg imhornb...@gmail.com - From: Ian-Mathew Hornburg imhornb...@gmail.com To:

Re: [HarfBuzz] Regression with ZWJ in Indic scripts

2013-03-19 Thread Khaled Hosny
Esfahbod wrote: BTW, how do you pass OpenType script tag to HarfBuzz?! On 13-03-18 03:15 PM, Khaled Hosny wrote: The issue reported below seems to be a regression in 0.9.13, basically ZWJ seems to be completely ignored, with 0.9.12 I get the desired output. Regards, Khaled

Re: [HarfBuzz] please remove U+115F U+1160 from default_ignorable

2013-03-19 Thread Khaled Hosny
On Tue, Mar 19, 2013 at 10:29:28AM +0900, Dohyun Kim wrote: 2013/3/19 Konstantin Ritt ritt...@gmail.com: IIUC, a correct solution would be determining Hangul clusters and then setting the accumulated cluster advance to the cluster base prior to hiding default ignorables. Correct me if I'm

Re: [HarfBuzz] Regression with ZWJ in Indic scripts

2013-03-19 Thread Khaled Hosny
On Tue, Mar 19, 2013 at 06:28:43AM -0400, Behdad Esfahbod wrote: On 13-03-19 06:21 AM, Khaled Hosny wrote: I was doing something like: script = hb_script_from_string (engine-script, -1) language = hb_language_from_string (engine-language, -1) hb_buffer_set_script (buffer, script

Re: [HarfBuzz] information on how to report a bug on OpenType Layout

2013-03-21 Thread Khaled Hosny
On Tue, Feb 26, 2013 at 06:17:22PM +0100, Élie Roux wrote: On 02/01/2013 08:23, Élie Roux wrote: Dear Behdad and Khaled, Thank you for your answers. I'm leaving now for a place without the Internet for several days, but I have downloaded all I needed and I'll test as you said (though my

Re: [HarfBuzz] harfbuzz: Branch 'master' - 5 commits

2013-03-24 Thread Khaled Hosny
On Tue, Feb 12, 2013 at 06:49:01AM -0800, Behdad Esfahbod wrote: commit 568000274c8edb5f41bc4f876ce21fcc8bdaeed8 Author: Behdad Esfahbod beh...@behdad.org Date: Tue Feb 12 09:44:57 2013 -0500 Adjust mark advance-width zeroing logic for Myanmar Before, we were zeroing advance

Re: [HarfBuzz] Shaping different scripts in the same text run

2013-04-07 Thread Khaled Hosny
() for now. BiDi is going to be the next big challenge. -- Lóránt Pintér Developer at Prezi (http://prezi.com) On Sunday, April 7, 2013 at 1:55 PM, Khaled Hosny wrote: On Sun, Apr 07, 2013 at 02:59:32AM +0200, Lóránt Pintér wrote: Hi, I'm struggling with the problem

Re: [HarfBuzz] Some experiments with harfbuzz/OpenGL

2013-04-12 Thread Khaled Hosny
On Fri, Apr 12, 2013 at 07:44:17PM +0200, Nicolas Rougier wrote: Hi, Thanks to the great example available at https://github.com/lxnt/ex-sdl-freetype-harfbuzz, I did some experiments to render some Arabic text using OpenGL/Freetype/Harfbuzz. You can find a screenshot here:

  1   2   3   >