[HarfBuzz] hb-view cuts of part of text/character?
Behdad Esfahbod
behdad at behdad.org
Sun May 27 11:08:18 PDT 2012
On 05/27/2012 12:44 PM, Rolf Langenhuijzen wrote:
> I think ink extents as you call them (nice name btw) are implemented in pango-view, correct? I mean should I be using that instead maybe?
I don't remember off the top of my head what pango-view does. At any rate,
which one you need really depends on what functionality you want. hb-view
only works for one font, one script, one language, one direction at a time.
pango-view does not have any of these limitations, but does not let you choose
font by file, only by font descriptions.
behdad
> I played with the margins, but sometimes with swashes you just don't know where they end, so you keep changing margin values which is a bit cumbersome.
>
> But thanks!
>
> On May 27, 2012, at 3:14 PM, Behdad Esfahbod wrote:
>
>> On 05/27/2012 08:51 AM, Rolf Langenhuijzen wrote:
>>> I was able to get hb-view working on my local machine (mac) so that is cool.
>>> When outputting some text and character tests to a png I noticed it cuts of part of the glyphs mainly when you apply a font feature like swsh or some aalt.
>>>
>>> Can this be prevented so that everything always is inside the outputted image somehow?
>>
>> Right now the image box is the "logical" text size plus margins. What you are
>> asking for is the ink extents, which I have not implemented yet. In the mean
>> time you can use the --margin option to work around that.
>>
>> behdad
>>
>>
>>> Regards,
>>> Rolf
>
>
More information about the HarfBuzz
mailing list