Re: regarding all the possible functions that can be assigned to PangoCairoShapeRendererFunc func
- From: Behdad Esfahbod <behdad behdad org>
- To: Parth Kanungo <kanungoparth gmail com>
- Cc: gtk-i18n-list gnome org
- Subject: Re: regarding all the possible functions that can be assigned to PangoCairoShapeRendererFunc func
- Date: Sun, 16 Sep 2012 01:14:04 -0400
On 09/10/2012 02:01 AM, Parth Kanungo wrote:
> Note that Pango doesn't really implement font variants. Italic, bold, stretch
> etc should work as far as fonts are available. Italic and bold are
> synthesized if not available, but not stretch or other properties.
>
>
> On second thoughts... did you mean that italic and bold are to be synthesized
> manually by writing code ?
> I mistook your statement as, "Italic an bold are (automatically) synthesized
> if not available."
The "automatically" is what I meant. Though, really, I have no idea what
happens on Windows, but it was my expectation that the pangoft2 backend should
work the same independently of the platform.
> In that case, do I use FT_Bitmap_Embolden to help me with bold and
> transformation in PangoMatrix for styles ??
Not really. It's supposed to be handled by pangocairo automatically. Which
reminds me that you are using pangoft2 itself, not pangocairo-fc. In which
case, yeah, I think pangoft2 is simply incomplete. I don't think anyone will
ever finish it. Try to use pangocairo instead. That's pretty much the only
supported backend these days.
behdad
> And, If I can synthesize while rendering, I am concerned how layouting will
> change. Can you share your thoughts on this ??
>
> Thanks.
> --
> PangoLearner
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]