Re: pango vs. libraqm

2019-01-16 Thread Behdad Esfahbod
Hi Daniel, On Fri, Jan 11, 2019 at 7:34 PM Daniel G via gtk-i18n-list < gtk-i18n-list@gnome.org> wrote: > Hello Pango wizards, > > Could someone provide an overview (via a bulleted list, perhaps) of what > additional functionality Pango provides, over something minimal like > libraqm? >

Linking to libstdc++ in HarfBuzz

2018-08-02 Thread Behdad Esfahbod
Hi, Just asking, does anybody still object about using C++ standard library (ie. linking to it) in HarfBuzz? I know I've been one of the bigger opponents myself. But I can change too. :) -- behdad http://behdad.org/ ___ gtk-devel-list mailing list

Re: Emoji with CoreText

2018-05-22 Thread Behdad Esfahbod
lls > > > On May 22, 2018, at 4:07 PM, Behdad Esfahbod <beh...@behdad.org> wrote: > > > > Hi John, > > > > I don't know how the CoreText backends in Pango / Cairo work. Cannot > help I'm afraid :(. > > > > On Fri, May 18, 2018 at 12:01 PM, Joh

Re: Emoji with CoreText

2018-05-22 Thread Behdad Esfahbod
Hi John, I don't know how the CoreText backends in Pango / Cairo work. Cannot help I'm afraid :(. On Fri, May 18, 2018 at 12:01 PM, John Ralls wrote: > Behdad, > > Even with gtk-3.22.30, cairo-1.15.12, and pango 1.40.12 I'm not able to > get most emoji (and not

Re: pango-view --backend=cairo doesn't use fontconfig - why not?

2018-04-25 Thread Behdad Esfahbod
Try setting env var PANGOCAIRO_BACKEND=fc On Wed, Apr 25, 2018 at 10:37 PM, <pa...@parvis.nl> wrote: > On Wed, Apr 25, 2018 at 4:27 PM, <pa...@parvis.nl> wrote: > >> >> pango-view --backend=cairo doesn't use fontconfig - why not? > > > > On

Re: pango-view --backend=cairo doesn't use fontconfig - why not?

2018-04-25 Thread Behdad Esfahbod
On Wed, Apr 25, 2018 at 4:27 PM, wrote: > > pango-view --backend=cairo doesn't use fontconfig - why not? > What makes you think so? > I compiled cairo & pango with fontconfig enabled. > > pango-view backends aft and ft2 do use fontconfig, cairo doesn't. > > Whant can I do to

Re: What's the deal with 'pango-bidi-type.c' ?

2018-03-08 Thread Behdad Esfahbod
On Thu, Mar 8, 2018 at 1:36 AM, John Emmas <j...@creativepost.co.uk> wrote: > On 07/03/2018 22:05, Behdad Esfahbod wrote: > >> Yes. You need the external fribidi library now. >> >> > Okay Behdad, thanks. > > I installed fribidi (from (git) and decided to u

Re: What's the deal with 'pango-bidi-type.c' ?

2018-03-07 Thread Behdad Esfahbod
Yes. You need the external fribidi library now. On Wed, Mar 7, 2018, 6:16 PM John Emmas, wrote: > I just updated pango from git master and noticed commit #0a71013dfc > (13th Nov 2017) which reads "Drop now unused mini-fribidi". > > Maybe I'm confused about something but

Re: Getting different sizes from pango_layout_get_pixel_extents on ubuntu 16.04 vs 17.10?

2018-01-31 Thread Behdad Esfahbod
FreeType often changes things enough to result in such differences... On Wed, Jan 31, 2018 at 7:54 AM, Dan Kegel wrote: > On Wed, Jan 31, 2018 at 1:30 AM, Alexander Larsson > wrote: > >> It gets a slightly different result depending on operating system. > > >

Re: Variable fonts redux

2017-09-27 Thread Behdad Esfahbod
This branch is now IMO complete and ready to be merged: https://github.com/behdad/fontconfig/commits/varfonts2 I'll merge tomorrow if there's no comments. Cheers, b On Sat, Sep 16, 2017 at 1:49 PM, Behdad Esfahbod <beh...@behdad.org> wrote: > Hi, > > Previously I have

Re: [cairo] color fonts and CAIRO_OPERATOR_SOURCE

2017-09-20 Thread Behdad Esfahbod
On Wed, Sep 13, 2017 at 11:07 AM, Bill Spitzak <spit...@gmail.com> wrote: > On Mon, Sep 11, 2017 at 10:39 PM, Behdad Esfahbod <beh...@behdad.org> > wrote: > > It was actually not that complicated: > > https://bugs.freedesktop.org/show_bug.cgi?id=102661 > >

Variable fonts redux

2017-09-16 Thread Behdad Esfahbod
Hi, Previously I have had implemented and merged support for named-instances in variable fonts, but the generic variation mechanism was not integrated. I've finished the core of what was left of implementing variable fonts in fontconfig: https://github.com/behdad/fontconfig/commits/varfonts2

Re: color fonts and CAIRO_OPERATOR_SOURCE

2017-09-11 Thread Behdad Esfahbod
It was actually not that complicated: https://bugs.freedesktop.org/show_bug.cgi?id=102661 On Mon, Sep 11, 2017 at 1:44 AM, Uli Schlachter wrote: > Hi everyone, > > yesterday I was asked to comment here: > > https://github.com/i3/i3/pull/2925 > > The issue seems to be: With

Re: Upright glyphs with combining marks in vertical text.

2017-09-10 Thread Behdad Esfahbod
Care filing a bug please, so we don't lose? On Sun, Sep 10, 2017 at 4:24 AM, Behdad Esfahbod <beh...@behdad.org> wrote: > Renders fine with hb-view, but broken with pango-view. > I'll take a look. > > On Thu, Sep 7, 2017 at 1:34 AM, Tavmjong Bah <tavmj...@free.fr> wrote:

Re: Upright glyphs with combining marks in vertical text.

2017-09-10 Thread Behdad Esfahbod
Renders fine with hb-view, but broken with pango-view. I'll take a look. On Thu, Sep 7, 2017 at 1:34 AM, Tavmjong Bah <tavmj...@free.fr> wrote: > On Wed, 2017-09-06 at 12:24 -0700, Behdad Esfahbod wrote: > > Pictures please? > > Attached. > > > On Wed, Sep 6,

Re: Upright glyphs with combining marks in vertical text.

2017-09-06 Thread Behdad Esfahbod
Pictures please? On Wed, Sep 6, 2017 at 12:07 PM, Tavmjong Bah wrote: > > Hi, > > I've got two questions about rendering characters with combining marks > (as one might have with CSS "writing-mode:vertical;text- > orientation:upright"). > > It appears that Pango misplaces the

Re: Building the enum-types (with or without pango-ot.h)

2017-08-14 Thread Behdad Esfahbod
You can ignore pango-ot.h for now. On Mon, Aug 14, 2017 at 10:02 AM, John Emmas wrote: > When generating the enum-types modules ('pango-enum-types.c' and > 'pango-enum-types.h') should I be referencing (i.e. including) pango-ot.h > during the process? I only realised

Re: [cairo] Color fonts

2017-07-29 Thread Behdad Esfahbod
ocess_updates_with_mode > (window=, recurse_mode=) at > gdkwindow.c:4189 > #108 0x7fd51db8d57d in g_closure_invoke () at /lib64/libgobject- > 2.0.so.0 > #109 0x7fd51dba0e4e in signal_emit_unlocked_R () at > /lib64/libgobject-2.0.so.0 > #110 0x7fd51dba9975 in g_signal_emit_valist () at

Re: [cairo] Color fonts

2017-07-29 Thread Behdad Esfahbod
:jit::DoCallFallback(JSContext*, > js::jit::BaselineFrame*, js::jit::ICCall_Fallback*, unsigned int, > JS::Value*, JS::MutableHandle) () > at /lib64/libmozjs-38.so > #25 0x7fd0f1877510 in () > #26 0x7fffada948a0 in () > #27 0x7fffada94368 in () > #28 0x00

Re: [cairo] Color fonts

2017-07-29 Thread Behdad Esfahbod
g to this thread... > My messages go through, yours probably don't because you are not a member. It's valuable still. Cheers, b > On 28.07.2017 16:38, Behdad Esfahbod wrote: > > Uli, > > > > Can we commit this? I don't think waiting another few years will result > in

Re: [cairo] Color fonts

2017-07-28 Thread Behdad Esfahbod
_show_glyphs(), so I don't see how this is pango's job. > > On Fri, Jul 28, 2017 at 7:38 AM, Behdad Esfahbod <beh...@behdad.org> > wrote: > > Uli, > > > > Can we commit this? I don't think waiting another few years will result > in > > a superior patchs

Re: [cairo] Color fonts

2017-07-28 Thread Behdad Esfahbod
Uli, Can we commit this? I don't think waiting another few years will result in a superior patchset. :) Cheers, behdad On Wed, Jul 19, 2017 at 1:53 AM, Behdad Esfahbod <beh...@behdad.org> wrote: > Right. In the future we would want to make it show glyphs in the input &g

Re: Synthesizing fonts using Cairo/Pango

2017-07-19 Thread Behdad Esfahbod
d it! > See! You didn't include the FcConfigCreate() in your snippet; that's why I found it strange ;). > All the best, > Carl > > > > > > Thank you, > > Carl > > > > On Tue, 18 Jul 2017, Behdad Esfahbod wrote: > > > >

Re: [cairo] Color fonts

2017-07-18 Thread Behdad Esfahbod
rote: >> >> On 30.06.2017 17:29, Behdad Esfahbod wrote: >> >>> On Jun 30, 2017 7:51 PM, "Matthias Clasen" <mcla...@redhat.com> >> wrote: >> >>> On Fri, 2017-06-30 at 17:02 +0200, Uli Schlachter wrote: >> >>>> On 28.

Re: Synthesizing fonts using Cairo/Pango

2017-07-18 Thread Behdad Esfahbod
nd > do any debugging that would help. > Read this and see if anything strikes out: http://mces.blogspot.ca/2015/05/how-to-use-custom-application-fonts.html Try calling FcInitLoadConfigAndFonts first for example... > Thank you, > Carl > > On Tue, 18 Jul 2017, Behdad Esfahbod wr

Re: Font size wrong on MacOS Retina display

2017-07-17 Thread Behdad Esfahbod
Will do. Was on vacation for several weeks... :D On Tue, Jun 20, 2017 at 10:17 PM, John Ralls <jra...@ceridwen.fremont.ca.us> wrote: > > > On May 22, 2017, at 3:48 PM, Behdad Esfahbod <beh...@behdad.org> wrote: > > > > On Mon, May 22, 20

Re: [cairo] Color fonts

2017-07-11 Thread Behdad Esfahbod
On Fri, Jul 7, 2017 at 5:53 PM, Matthias Clasen wrote: > On Sat, Jul 1, 2017 at 2:25 AM, Uli Schlachter wrote: > >> >> Okay... so what is the new model? What happens when I draw a color glyph >> with operator XOR and a red source? > > > The red source

Re: [cairo] Color fonts

2017-07-11 Thread Behdad Esfahbod
On Fri, Jul 7, 2017 at 5:55 PM, Matthias Clasen wrote: > It would be great to know if this approach, following Behdad's > recommendation, will be acceptable. > Thanks for the quick implementation. I quite like your changes and think this is the right way to do it.

Re: [cairo] Color fonts

2017-06-30 Thread Behdad Esfahbod
On Jun 30, 2017 7:51 PM, "Matthias Clasen" <mcla...@redhat.com> wrote: On Fri, 2017-06-30 at 17:02 +0200, Uli Schlachter wrote: > Hi, > > On 28.06.2017 14:23, Behdad Esfahbod wrote: > > All of you have asked me about the status of color fonts in > > cai

Color fonts

2017-06-28 Thread Behdad Esfahbod
Hello, All of you have asked me about the status of color fonts in cairo. There's some discussion here: https://github.com/googlei18n/noto-emoji/issues/36 The remaining part is indeed the cairo patchset. Matthias had a reworked version, which Chris Wilson objected to. I agree with parts of

Re: Pango pipe stdin and stdout

2017-06-07 Thread Behdad Esfahbod
Looks like I did all of those in hb-view, but not pango-view... So, no, it's not currently possible. Try paps indeed. On Sat, Jun 3, 2017 at 6:43 AM, Adam Dyson wrote: > I’d like to know whether it’s possible to render text using Pango, by > piping text as input to

Re: Font size wrong on MacOS Retina display

2017-05-22 Thread Behdad Esfahbod
On Mon, May 22, 2017 at 8:24 AM, John Ralls wrote: > Behdad, > > Could you find a few minutes to review https://bugzilla.gnome. > org/attachment.cgi?id=351992 on https://bugzilla.gnome.org/ > show_bug.cgi?id=782393? > Brings back memories Done:

Re: Pango: Issues with illegal characters in family names (encoding problems on Windows?)

2017-05-22 Thread Behdad Esfahbod
On Mon, May 22, 2017 at 3:13 PM, Eduard Braun <eduard.bra...@gmx.de> wrote: > Am 22.05.2017 um 23:36 schrieb Behdad Esfahbod: > > Can you point me to the crash stacktrace? I couldn't find it browsing > your links casually. > > > https://bugs.launchpad.net/inkscape/

Re: Pango: Issues with illegal characters in family names (encoding problems on Windows?)

2017-05-22 Thread Behdad Esfahbod
On Sun, May 21, 2017 at 4:02 PM, Eduard Braun <eduard.bra...@gmx.de> wrote: Am 18.05.2017 um 21:39 schrieb Behdad Esfahbod: > > At any rate, I guess the right question you should be asking is, why is >> Inkscape crashing, and fix that. Pango, etc, handle invalid UTF-8 just &

Re: Pango: Issues with illegal characters in family names (encoding problems on Windows?)

2017-05-18 Thread Behdad Esfahbod
Hi Eduard, It's possible that there are bugs on the fonts. For the ttf in [6] I cannot spot any from the output of fc-query. The one in [5] is a Windows .fon font. It's possible that there's a bug in FreeType driver for that format. At any rate, I guess the right question you should be asking

Re: Embedding icons in Pango text, the "right" way?

2016-08-12 Thread Behdad Esfahbod
See: https://github.com/GNOME/pango/blob/master/examples/cairoshape.c On Aug 11, 2016 8:04 AM, "Andy Meneely" wrote: > Hi, > I maintain a Ruby gem that uses Pango heavily ( > https://github.com/andymeneely/squib/). One of the key features is to be > able to draw an

Re: Gtk+4.0

2016-07-11 Thread Behdad Esfahbod
No? Humm. I don't quite follow. Common practice for "added API, internal fixes, > and no change to public API/ABI" is to keep the soname. > On Mon, Jul 11, 2016 at 4:29 PM, Behdad Esfahbod <beh...@behdad.org> wrote: >> >> I also think bumping soname every s

Re: Gtk+4.0

2016-07-11 Thread Behdad Esfahbod
I also think bumping soname every six months would be disaster. It was painful enough when libstdc++, libpng, libssl, etc changed soname every few years. On Thu, Jul 7, 2016 at 11:23 AM, Emilio Pozuelo Monfort wrote: > Hi, > > On 21/06/16 16:26, Peter Weber wrote: >> I don't

Re: G_UTF8String: Boxed Type Proposal

2016-03-23 Thread Behdad Esfahbod
On Mon, Mar 21, 2016 at 3:30 PM, Randall Sawyer wrote: > Frankly, the use of the term "character" when referring to a "UTF-8 > encoded Unicode code point" was for me a source of confusion A character means a "Unicode character". That's independent of encoding, so,

Re: G_UTF8String: Boxed Type Proposal

2016-03-21 Thread Behdad Esfahbod
I like to voice my opinion as well: - Bundling data and its length in a boxed type is useful, but that's gblob, - Bundling number-of-Unicode-character is rarely useful indeed, - A string API that would require any changes to the string content to go through editing function calls is

Re: GTK+ hackfest 2016

2016-03-07 Thread Behdad Esfahbod
Hi Matthias, Any idea why the page says Immutable to me? https://wiki.gnome.org/Hackfests/GTK2016 I remember having seen this before but don't remember what the resolution was. Cheers, behdad On Tue, Mar 8, 2016 at 5:02 AM, Matthias Clasen wrote: > Hi, > > we've

Re: Error due to #including FT_ERRORS_H

2016-01-20 Thread Behdad Esfahbod
Thanks John. That is indeed a FreeType issue. I replied to your post on the FreeType mailing list. On 16-01-20 02:16 PM, John Emmas wrote: > Is this the right list for reporting pango development issues? Assuming it > is... > > I updated freetype2 a few days ago (i.e. I pulled the latest

Re: Unicode normalization and text display differences

2016-01-06 Thread Behdad Esfahbod
On 16-01-06 03:07 PM, Benjamin Kiessling wrote: > On 01/06, Behdad Esfahbod wrote: >> On 16-01-06 02:55 PM, Benjamin Kiessling wrote: >>> On 01/06, Behdad Esfahbod wrote: >>>> Hi Ben, >>>> >>>> You at least need to tell us on what

Re: Pango and Android

2015-12-31 Thread Behdad Esfahbod
On 15-12-18 11:39 PM, Pere Pujal i Carabantes wrote: > Hi Behdad, Thanks for replying > > El dv 18 de 12 de 2015 a les 16:34 +0000, en/na Behdad Esfahbod va > escriure: >> On 15-12-15 10:44 PM, Pere Pujal i Carabantes wrote: >>> Any hints to debug this? >> >>

Re: Pango and Android

2015-12-18 Thread Behdad Esfahbod
On 15-12-15 10:44 PM, Pere Pujal i Carabantes wrote: > Any hints to debug this? Humm. Not really. When you say "messed up", care to explain how? behdad ___ gtk-i18n-list mailing list gtk-i18n-list@gnome.org

Re: Pango modules Hebrew heurisics

2015-08-30 Thread Behdad Esfahbod
Hi Dov, Yes, I removed those. There *is* fallback positioning in HarfBuzz for fonts that don't have GPOS, so theoretically you can contribute improvements to that. But I'd really be cautious about taking any changes in this day and age... Here's the code:

Font settings via XSETTINGS vs fontconfig

2015-08-28 Thread Behdad Esfahbod
Benjamin, At the typography BoF at GUADEC you asked why the GNOME font settings where routed through XSETTINGS and not by writing to an XML fontconfig config file. I said there's probably no reason for that and that's just the way Owen or whoever did the work did it. But then I thought about it

Re: New version of paps with cairo backend

2015-08-18 Thread Behdad Esfahbod
Thanks Dov! How is this different from pango-view? Does it support pagination? Cheers, b On 15-08-18 06:55 AM, Dov Grobgeld wrote: After more than a decade I have finally converted my text to postscript converter paps, to use cairo for its postscript rendering. In addition I have added a

Re: Alpha in Pango Color

2015-08-08 Thread Behdad Esfahbod
Hi William, Currently Pango doesn't support alpha in colors. At this point, it might make sense to add a separate PANGO_ATTR_ALPHA, instead of an RGBA type. I'd take a patch. Matthias, is this something you can possibly implement? Shouldn't take long to implement and test... b On 15-08-08

Re: Width for bounding box of highly tilted characters

2015-05-22 Thread Behdad Esfahbod
On 15-05-20 11:38 AM, mathog wrote: how does one retrieve from Pango the width (bounding box xmax - xmin) of the glyph? pango_font_get_glyph_extents() ___ gtk-i18n-list mailing list gtk-i18n-list@gnome.org

Re: [Fontconfig] Application fonts with Pango+fontconfig

2015-05-13 Thread Behdad Esfahbod
On 15-05-13 06:17 AM, Khaled Hosny wrote: On Tue, May 12, 2015 at 03:34:59PM -0700, Behdad Esfahbod wrote: On 15-05-10 12:10 PM, Khaled Hosny wrote: This seems to be a general Pango issue, if I modify a font while an application is using it, I get similar issues. This sounds like caching

Re: [Fontconfig] Application fonts with Pango+fontconfig

2015-05-12 Thread Behdad Esfahbod
On 15-05-10 12:10 PM, Khaled Hosny wrote: On Fri, May 01, 2015 at 07:19:11PM -0400, Behdad Esfahbod wrote: Hi all, I am at the Libre Graphics Meeting in Toronto this week, which meant that I got to talk to GIMP and Inkscape developers after many years, and was reminded that Pango still

Re: Module-less pango vs pangox-compat

2015-04-30 Thread Behdad Esfahbod
On 15-04-27 01:01 PM, Matthias Clasen wrote: On Fri, 2015-04-24 at 14:31 -0700, Behdad Esfahbod wrote: Hi Matthias, Just a quick note that with the module-less pango, the pangox-compat lib won't work anymore. Not that *anyone* cares... Thanks for the update. I do have customers who

Re: Module-less pango vs pangox-compat

2015-04-24 Thread Behdad Esfahbod
On 15-04-24 04:01 PM, Alexandre Rostovtsev wrote: On Fri, 2015-04-24 at 14:31 -0700, Behdad Esfahbod wrote: Hi Matthias, Just a quick note that with the module-less pango, the pangox-compat lib won't work anymore. Not that *anyone* cares... Some distros care. In Gentoo, I see seven

Module-less pango vs pangox-compat

2015-04-24 Thread Behdad Esfahbod
Hi Matthias, Just a quick note that with the module-less pango, the pangox-compat lib won't work anymore. Not that *anyone* cares... -- behdad http://behdad.org/ ___ gtk-i18n-list mailing list gtk-i18n-list@gnome.org

Re: Pango indent marks

2015-03-03 Thread Behdad Esfahbod
On 15-02-13 10:13 AM, Detlef Reichl wrote: Hi, I already send the following to gtk+ list, but it seems that no one there was able to help. So I hope that I have more luck here :-) Is Pango able to render indent marks like dots for spaces and arrows for tabs? I found nothing like this in

Re: Glyph width vs advance width

2015-02-25 Thread Behdad Esfahbod
Also, 'f' in many italic fonts for example. Many glyphs in most script-style fonts. On 15-02-25 06:45 AM, Dave Crossland wrote: hi the w can often be a little wider in glyph width than advance width, to avoid distasteful gaps with other vertical letters like in www also many fonts for

Re: Need help understanding how things fit together

2015-01-20 Thread Behdad Esfahbod
specific questions more specifically :). behdad 2015-01-20 21:20 GMT+02:00 Behdad Esfahbod beh...@behdad.org mailto:beh...@behdad.org: On 15-01-20 11:10 AM, Anthony Kraft wrote: FT has a function FT_Get_Char_Index to get a glyph index from a unicode char code. Therefore, it seems

Re: [ft-devel] [PATCHSET] Multithread-safe FreeType

2015-01-06 Thread Behdad Esfahbod
On 15-01-03 09:16 PM, Behdad Esfahbod wrote: On 14-12-30 10:25 PM, Werner LEMBERG wrote: The patchset mainly removes use of singleton buffers in favor of stack or per-face allocated ones. In all cases this has no down side. [...] Thanks! I'll have a look next year :-) I've now

Re: [ft-devel] [PATCHSET] Multithread-safe FreeType

2015-01-03 Thread Behdad Esfahbod
On 14-12-30 10:25 PM, Werner LEMBERG wrote: The patchset mainly removes use of singleton buffers in favor of stack or per-face allocated ones. In all cases this has no down side. [...] Thanks! I'll have a look next year :-) I've now pushed many more commits out, that fix a couple of

[PATCHSET] Multithread-safe FreeType

2014-12-30 Thread Behdad Esfahbod
with a FreeType including the patchset. Thanks! Behdad Esfahbod 30 December 2014 ___ gtk-i18n-list mailing list gtk-i18n-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-i18n-list

Re: [PATCHSET] Multithread-safe FreeType

2014-12-30 Thread Behdad Esfahbod
On 14-12-30 04:06 PM, Behdad Esfahbod wrote: The patchset mainly removes use of singleton buffers in favor of stack or per-face allocated ones. In all cases this has no down side. The exception is the patch that affects the autohinter, which results in significant (~20%) slowdown. I plan

Re: Pango, Cairo, Scale, and Ink Rectangles

2014-11-25 Thread Behdad Esfahbod
On 14-11-24 07:13 PM, Yclept Nemo wrote: On Mon, Nov 24, 2014 at 5:12 PM, Behdad Esfahbod beh...@behdad.org mailto:beh...@behdad.org wrote: On 14-11-23 11:15 AM, Yclept Nemo wrote: This seems impossible if the glyph width/height ratios vary with scale/dpi. Turn hinting off

Re: Pango with OpenGL on Android (and desktop linux)

2014-10-10 Thread Behdad Esfahbod
Thanks Ralph for sharing. I've taken a note of the project. On 14-10-01 09:27 PM, Ralph Thomas wrote: Hi Pango people, I made a game for Android[1] with a friend this summer -- I wrote a minimal UI toolkit that draws with OpenGL directly. I struggled for a while on text (Android doesn't

Re: Kerning: OTF + Pango

2014-10-09 Thread Behdad Esfahbod
Feel free to send me the font offlist. It should work. On 14-10-09 04:15 PM, Anthony O'Brien wrote: I can't seem to get kerning features of the OpenType fonts I'm using to show up in rendered SVGs when using pango/cairo. Specifically, I am using the python bindings to pango/cairo/pangocairo

Re: Pango without FreeType (or fontconfig)

2014-09-13 Thread Behdad Esfahbod
On 14-09-03 07:43 PM, Lóránt Pintér wrote: Hi Behdad, On Wednesday, Sep 3, 2014 at 4:01 pm, Behdad Esfahbod beh...@behdad.org mailto:beh...@behdad.org, wrote: I’m not sure what the glib dependency means for us. Can you explain why it would be a problem? It's just one

Re: Pango without FreeType (or fontconfig)

2014-09-03 Thread Behdad Esfahbod
Hi Lóránt, On 14-08-28 09:26 PM, Lóránt Pintér wrote: Hi, I’m currently using HarfBuzz compiled to JavaScript via Emscripten with a custom (primitive) layout engine. I’d like to replace the custom layout engine with Pango (also compiled to JS) if possible. To do this, I’d need to be able

Re: Pango without FreeType (or fontconfig)

2014-09-03 Thread Behdad Esfahbod
On 14-09-03 02:57 PM, Lóránt Pintér wrote: Hey, thanks for replying. Comments inline. On Wednesday, Sep 3, 2014 at 12:58 pm, Behdad Esfahbod beh...@behdad.org mailto:beh...@behdad.org , wrote: So, you are OK with the glib dependency? I’m not sure what the glib dependency means

Re: Pango manual rendering

2014-08-02 Thread Behdad Esfahbod
on the pattern... You might need rather recent pango and fontconfig for this to work. Again, thank you for your responses! On Aug 2, 2014 6:51 AM, Behdad Esfahbod beh...@behdad.org mailto:beh...@behdad.org wrote: On 14-08-01 11:04 AM, Edu García wrote: Hi, I want

Re: Pango manual rendering

2014-08-02 Thread Behdad Esfahbod
On 14-08-02 03:20 PM, Behdad Esfahbod wrote: Not right now. If you want to disable them so badly and don't mind getting yourself comfortable with gobject, then you can subclass PangoCairoFcFontMap and override the fontset_key_substitute(), and in there set PANGO_FC_FONT_FEATURES

Re: Pango manual rendering

2014-08-01 Thread Behdad Esfahbod
On 14-08-01 11:04 AM, Edu García wrote: Hi, I want to use Pango for layout, but not for rendering. I have a proof of concept that works, but I think it's not the right way of doing things :) I create a PangoLayout with my text, then get a PangoLayoutIter, then I start calling next_line()

Re: Using Pango for text rendering on Android

2014-07-10 Thread Behdad Esfahbod
On 14-07-09 08:29 AM, György Kövesdi wrote: Hi, I have a multi-platform project which needs software rendering of graphical primitives (lines, circles, etc) and international text into memory pixmaps. Pango seems to be a good choice for this purpose, and it works perfectly for me on some

Re: Using Pango for text rendering on Android

2014-07-10 Thread Behdad Esfahbod
Alternatively, check this: https://github.com/anoek/ex-sdl-cairo-freetype-harfbuzz It's nowhere near what Pango does, but might be good enough for you. On 14-07-10 03:51 PM, Behdad Esfahbod wrote: On 14-07-09 08:29 AM, György Kövesdi wrote: Hi, I have a multi-platform project which needs

Re: Pango default font

2014-05-07 Thread Behdad Esfahbod
On 14-05-07 10:45 AM, Antonio Roberts wrote: Hi, I recently used Pango to add text to a series of images (see here: https://www.flickr.com/photos/hellocatfood/sets/72157641915581285/ ) I used pango in conjunction with imagemagick and didn't specify a font. Is there any way to find out

Re: Pango font rendering on OSX

2014-04-03 Thread Behdad Esfahbod
On 14-03-14 01:58 PM, Vojtěch Knyttl wrote: I can list it with fontconfig as well: Does fc-list or fc-match find it? Looks like that directory is not scanned by fontconfig. -- behdad http://behdad.org/ ___ gtk-i18n-list mailing list

Re: SCRIPT_FONTPROPERTIES(windows uniscribe) : how to get font properties on linux

2014-01-28 Thread Behdad Esfahbod
On 14-01-28 10:58 AM, ken wrote: no, need to get all font properties. you would see the link above(uniscribe) Then go figure out how to do it... 此邮件来自易信 - 点击下载,体验邮件随身提醒! http://u.163.com/yxgw?from=chajian 在2014年1月28日 23:52:09, Behdad Esfahbod beh...@behdad.org 写道: On 14-01-24 07:18

Re: SCRIPT_FONTPROPERTIES(windows uniscribe) : how to get font properties on linux

2014-01-28 Thread Behdad Esfahbod
On 14-01-24 07:18 AM, ken wrote: eg,we need to get the glyph which is indicate a blank. Just get the glyph for the space character perhaps. -- behdad http://behdad.org/ ___ gtk-i18n-list mailing list gtk-i18n-list@gnome.org

Re: Activating the 'calt' feature in (Py)GTK

2014-01-23 Thread Behdad Esfahbod
On 14-01-22 03:29 PM, Alexis Luengas wrote: Thank you Dave, but WebKit does not implement the 'calt' feature in a fully thorough way; it seems to omit certain lookups. Try text-rendering:optimizeLegibility in your CSS, and of-course turning on 'calt' feature. -- behdad http://behdad.org/

Re: SCRIPT_FONTPROPERTIES(windows uniscribe) : how to get font properties on linux

2014-01-23 Thread Behdad Esfahbod
On 14-01-23 03:42 AM, ken wrote: Hello everybody: I am porting a program from uniscribe(windows) to pango(linux), but I don't know how to get font properties on linux. Does anybody know? We don't have anything similar to that. Why exactly does the code need this?

Re: Activating the 'calt' feature in (Py)GTK

2014-01-23 Thread Behdad Esfahbod
disjunct classes with the same number of glyphs) Humm. I bet either your backtrack or lookahead includes non-letters? That's a known bug that is being worked on. behdad On Thu, Jan 23, 2014 at 6:59 PM, Behdad Esfahbod beh...@behdad.org mailto:beh...@behdad.org wrote: On 14-01-22 03:29

Re: Activating the 'calt' feature in (Py)GTK

2014-01-23 Thread Behdad Esfahbod
On 14-01-23 04:56 PM, Alexis Luengas wrote: That's right! I'll stay tuned for the fix. This is the bug to track: https://code.google.com/p/chromium/issues/detail?id=311372 On Thu, Jan 23, 2014 at 10:14 PM, Behdad Esfahbod beh...@behdad.org mailto:beh...@behdad.org wrote: On 14-01

Re: Activating the 'calt' feature in (Py)GTK

2014-01-22 Thread Behdad Esfahbod
On 14-01-22 08:45 AM, Alexis Luengas wrote: I'm looking for a way of adding the 'calt' feature to an entire TextView object. Is this possible with PyGTK? Currently, no. -- behdad http://behdad.org/ ___ gtk-i18n-list mailing list

Re: inconsistency of pangocairo on Mac and Linux

2014-01-15 Thread Behdad Esfahbod
On 14-01-15 09:31 PM, Jun T. wrote: Is this a bug of pangocairo on Mac? Just pushed out a patch to default to 96dpi on CoreText. -- behdad http://behdad.org/ ___ gtk-i18n-list mailing list gtk-i18n-list@gnome.org

Re: issue with Devanagari rendering

2014-01-09 Thread Behdad Esfahbod
On 14-01-09 06:23 PM, Parth Kanungo wrote: Hello Werner, Behdad, Probably I am getting things wrong here. I infer that you are suggesting that the fault lies in the font file itself. I ran my code with different font files available in Windows, like Kokila, Managal and Arial

Re: issue with Devanagari rendering

2014-01-09 Thread Behdad Esfahbod
that this behaviour has anything to do with harfbuzz? Ok, maybe then you should send a screenshot, like any useful bug report has. Thanks and regards, Parth Kanungo // --- *Original Message* --- *Sender* : Behdad Esfahbod *Date* : Jan 09, 2014 12:39 (GMT+05:30) *Title

Re: issue with Devanagari rendering

2014-01-09 Thread Behdad Esfahbod
:42 PM, Parth Kanungo wrote: Hi Behdad, Attached are the images, I got from the string { 0x094D, 0x0930, 0x }; Also, attached is the test code to reproduce the issue. Thanks and regards, Parth Kanungo --- *Original Message* --- *Sender* : Behdad Esfahbod

Re: issue with Devanagari rendering

2014-01-08 Thread Behdad Esfahbod
On 14-01-08 11:21 PM, Parth Kanungo wrote: On further investigation, I found that even this string {0x094D, 0x0930,0x094D, 0x0930,0x094D, 0x0930} shows wrong output. Get a non-broken-beyond-repair font. Ie. remove freesans from your system. -- behdad http://behdad.org/

Re: issue with Devanagari rendering

2014-01-08 Thread Behdad Esfahbod
On 14-01-09 02:19 PM, Werner LEMBERG wrote: Get a non-broken-beyond-repair font. Ie. remove freesans from your system. Hmm. FreeSans is actively developed, as far as I know. So why not contact the author so that he fixes such issues? The maintainer is in fact CC'ed on this message

Re: ellipsis per layout

2014-01-01 Thread Behdad Esfahbod
On 14-01-02 01:36 PM, Parth Kanungo wrote: Hello, I was trying to add ellipsis to a text containing '\n'. I noticed that pango implements ellipsis per paragraph, but not ellipsis per layout. Can anyone throw some light on how to go about implementing it ? If you can patch

Re: regarding open file descriptors in Pango

2013-10-29 Thread Behdad Esfahbod
You are on your own re implementing FT_Face caching on PangoFT2 fontmaps. If you come up with a cache, I'll consider upstreaming it. behdad On 13-10-29 04:45 AM, Parth Kanungo wrote: Hello all, I observed that in pangoft2, the file descriptor opened for the font file, does not get

Re: file descriptors in pango

2013-10-17 Thread Behdad Esfahbod
Which backend are you using? On 13-10-17 01:11 PM, Parth Kanungo wrote: Hello, I observed that when pango_fc_font_lock_face() is used, it opens a file descriptor. I was hoping that pango_fc_font_unlock_face() would close the file descriptor. However, it does nothing. In fact, the

Re: issue with line break option PANGO_WRAP_CHAR

2013-09-09 Thread Behdad Esfahbod
On 13-09-06 08:22 AM, Parth Kanungo wrote: Hello, I am facing an issue with a line break option - PANGO_WRAP_CHAR. You can see the output (image.bmp) for my code (main.cpp) It is clear that i can be rendered on the first line after Th. However, it is coming on the second line. This

Re: Issue with composite glyph rendering in Hindi Text

2013-07-23 Thread Behdad Esfahbod
On 13-07-22 11:51 AM, Parth Kanungo wrote: Hello, When I render Hindi Text using PANGO_WRAP_CHAR, the breaks are incorrect ( See: pangoCairo.png ). Some of the composite glyphs get distributed on 2 lines. Attach with the mail is an example code (this time using PangoCairo). Any

Re: regarding setting resolution in pangoft2

2013-07-10 Thread Behdad Esfahbod
.c -- Thanks and regards, Parth Kanungo --- *Original Message* --- *Sender* : Behdad Esfahbod *Date* : Jul 09, 2013 18:31 (GMT+05:30) *Title* : Re: regarding setting resolution in pangoft2 On 13-07-09 08:06 AM, Parth Kanungo wrote: it did not impact the resolution

Re: regarding setting resolution in pangoft2

2013-07-09 Thread Behdad Esfahbod
On 13-07-09 08:06 AM, Parth Kanungo wrote: it did not impact the resolution. What do you mean by this exactly? The resolution is only used when converting from font size in points to font size in pixels. -- behdad http://behdad.org/ ___

Re: regarding setting resolution in pangoft2

2013-07-09 Thread Behdad Esfahbod
AFAIK Pango doesn't currently support that. And PangoFT2 is obsolete as far as I'm concerned... On 13-07-09 10:09 AM, Parth Kanungo wrote: Okay, It does impact the resolution. What I meant is that the effect is observed only when I change the Y-resolution (dpi_y). Moreover, the value

Re: Contribute to Pango source.

2013-06-26 Thread Behdad Esfahbod
On 13-06-25 01:43 PM, Pranay Samanta wrote: Hello, I have implemented a few features (like Monospace and PANGO_WRAP_HYPHEN) using pango and pangoft2. I was wondering if I could get that code reviewed and contribute in the next update of Pango. However, I could not find any guidelines or

Re: Making Graphite2 work with Pango?

2013-06-22 Thread Behdad Esfahbod
On 13-06-21 01:37 PM, Alex Kerr wrote: Many thanks for any ideas on how to get this working! I'm more inclined to say that you probably have an installation issue, ie. running against older Pango, not the one you built. Otherwise, if your Pango is using HarfBuzz, and HarfBuzz has graphite2

Re: Pango Hindi Text rendering error

2013-06-13 Thread Behdad Esfahbod
On 13-06-12 10:01 PM, Mayank Jha wrote: you mean to say that these fonts aren't supposed to render conjugate characters ? Unless the fonts render correctly on *some* environment, I'd say the font is just incomplete. -- behdad http://behdad.org/

Re: difference between inkRect and logRect

2013-06-12 Thread Behdad Esfahbod
On 13-06-12 12:10 PM, Parth Kanungo wrote: Can you tell me the difference between inkRect and logRect ? ink_rect is exactly what it says: tight bounding box of glyph images. logical_rect is the conceptual size of the text. Say, you have a line of text that has one period only: . The ink rect

  1   2   3   4   5   6   7   8   9   >