Re: Loading font directly from font file
- From: Pradeep Botu <pradeep botu82 gmail com>
- To: Behdad Esfahbod <behdad behdad org>
- Cc: gtk-i18n-list gnome org
- Subject: Re: Loading font directly from font file
- Date: Tue, 13 Dec 2011 11:32:05 +0530
I have choosen FT2 backend as my Graphics library takes care of rendering mask image.
I am using FT2 backend only to get mask image from Pango with FT2 backend.
I dont think cairo backend will fit in my scenario.
Can you provide me few pointers for fixing this issue in FT2 backend.
~Pradeep
On Tue, Dec 13, 2011 at 11:05 AM, Behdad Esfahbod
<behdad behdad org> wrote:
Try with the cairo backend. It's supposed to work. If that's the case, then
yes, the FT2 backend needs a small fix.
behdad
On 12/13/2011 12:29 AM, Pradeep Botu wrote:
>
> Actually I am loading normal arial.ttf and want to render bold characters
> algorithmetically.
> My doubt is whether AttrList synthesizes bold or help fontconfig to load bold
> font file itself.
> I want to know the api in lines to FT_Bitmap_Embolden in FreeType.
> Do I need to change FT2 backend a little to achieve this?
>
> ~Pradeep
>
> On Tue, Dec 13, 2011 at 1:04 AM, Behdad Esfahbod <
behdad behdad org
> <mailto:
behdad behdad org>> wrote:
>
> On 12/12/2011 12:33 AM, Pradeep Botu wrote:
> > Thanks.. I will do it by overriding font logic of PangoFT2Fontmap.
> >
> > I have another requirement. I want to synthesize bold characters using
> pango.
> > Using AttrList i am unable to get the bold characters.
> > How can I do the bold characters rendering
>
> It's supposed to work already. No idea why it doesn't. Or maybe the FT2
> backend was never updated to do that. Shouldn't be hard.
>
> behdad
>
> > ~Pradeep
> >
> > On Fri, Dec 9, 2011 at 1:02 AM, Behdad Esfahbod <
behdad behdad org
> <mailto:
behdad behdad org>
> > <mailto:
behdad behdad org <mailto:
behdad behdad org>>> wrote:
> >
> > An easier alternative would be to subclass the PangoFT2Fontmap and
> override
> > its font loading logic.
> >
> > On 12/08/2011 01:35 AM, Pradeep Botu wrote:
> > >
> > >
> > > Thanks for prompt reply. I have done the same thing.
> > > And then i have extracted FcPattern from font file using
> FcFreeTypeQuery.
> > > Using FcPattern i have created FontDescription.
> > >
> > > I have another requirement. I need to load a font file from memory.
> > > ie, I need to lkoad font file data from memory I have provided.
> > > Can I extract FcPattern from buffer or do I have any other way.
> > >
> > > ~Pradeep
> > >
> > > On Thu, Dec 8, 2011 at 2:23 AM, Behdad Esfahbod <
behdad behdad org
> <mailto:
behdad behdad org>
> > <mailto:
behdad behdad org <mailto:
behdad behdad org>>
> > > <mailto:
behdad behdad org <mailto:
behdad behdad org>
> <mailto:
behdad behdad org <mailto:
behdad behdad org>>>> wrote:
> > >
> > > On 12/07/2011 09:07 AM, Pradeep Botu wrote:
> > > >
> > > > I am using Pango with ft2 backend.
> > > > For my application I have to load the font using font file
> directly.
> > > > Whether this feature request is still in implementation stage.
> > > > If there is a way to load font directly from font file
> please let
> > me know
> > >
> > > Use FcConfigAppFontAddFile to add your font to the database
> before using
> > > Pango.
> > >
> > > behdad
> > >
> > > > ~ Pradeep
> > >
> > >
> >
> >
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]