[HarfBuzz] harfbuzz: Branch 'master'

2015-10-02 Thread Behdad Esfahbod
src/hb-shape-plan.cc |9 +++-- src/hb-shape.cc |5 - 2 files changed, 7 insertions(+), 7 deletions(-) New commits: commit 26ba4d1e1fb8949632fe08e6a7600badfba4f142 Author: Behdad Esfahbod Date: Fri Oct 2 07:25:52 2015 +0100 Fix segfault with empty

[HarfBuzz] harfbuzz: Branch 'master'

2015-10-02 Thread Behdad Esfahbod
src/hb-face.cc |2 +- src/hb-shape-plan.cc |2 +- src/hb-shaper.cc |2 +- 3 files changed, 3 insertions(+), 3 deletions(-) New commits: commit a5efaac4ff61b587f228830b265b39fe8e5e4e47 Author: Behdad Esfahbod Date: Fri Oct 2 08:02:29 2015 +0100

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

2015-10-02 Thread Behdad Esfahbod
src/hb-font.cc |6 +- test/api/test-font.c | 34 +++--- 2 files changed, 28 insertions(+), 12 deletions(-) New commits: commit 88da7bba9fa4665b33f5bfcd45add7443097eaf3 Author: Behdad Esfahbod Date: Fri Oct 2 14:38:20 2015 +0100

[HarfBuzz] Streamlining hb_font_t some more

2015-10-02 Thread Behdad Esfahbod
Hi, So, with the default scale set to upem, I'm now planning to make the following changes: - Make all fonts have a parent; for fonts created with hb_font_create(), they will default to the hb_font_get_empty() font as their parent. This changes the return value of hb_font_get_parent() for

Re: [HarfBuzz] Streamlining hb_font_t some more

2015-10-02 Thread Konstantin Ritt
Sounds just great! 2015-10-02 19:51 GMT+03:00 Behdad Esfahbod : > - Make all fonts have a parent; for fonts created with hb_font_create(), > they will default to the hb_font_get_empty() font as their parent. This > changes the return value of hb_font_get_parent() for most

Re: [HarfBuzz] Streamlining hb_font_t some more

2015-10-02 Thread Behdad Esfahbod
On 15-10-02 06:08 PM, Konstantin Ritt wrote: > Sounds just great! > > 2015-10-02 19:51 GMT+03:00 Behdad Esfahbod >: > > - Make all fonts have a parent; for fonts created with hb_font_create(), > they will default to the hb_font_get_empty()

[HarfBuzz] A Ruby interface to Harfbuzz

2015-10-02 Thread John Labovitz
I’ve just worked up a preliminary Ruby gem that interfaces to the Harfbuzz library (using FFI). It’s not a full implementation, but is enough to do basic shaping. I’m using it successfully in a Ruby-based typesetting library that I’m developing. Here’s an example of how the gem can be used:

Re: [HarfBuzz] [Feature Request] Custom allocator support

2015-10-02 Thread Jamie Dale
That's similar to what I originally had, so I'm fine with something like that. My only question is, what would hb_malloc_impl, hb_calloc_impl, hb_realloc_impl, and hb_free_impl be defined to in your example? I went with the extern function approach so I could inject my own allocator functions

Re: [HarfBuzz] [Feature Request] Custom allocator support

2015-10-02 Thread Behdad Esfahbod
Hi Jamie, I'm opposed to runtime custom allocators, but am fine with something like what you suggest. However, that has two down sides: 1. It touches a lot of callsites, 2. I have to add macros to make sure stock malloc etc are not used by mistake. If doing 2., I might as well just define

[HarfBuzz] harfbuzz: Branch 'master'

2015-10-02 Thread Behdad Esfahbod
src/hb-ot-shape-normalize.cc |2 ++ 1 file changed, 2 insertions(+) New commits: commit 980e25cad2e58c31f5361862b9223d94ec47fc7a Author: Behdad Esfahbod Date: Fri Oct 2 08:21:12 2015 +0100 Fix hb-ot-shape-normalize with empty buffer Part of