I find it best, when asking/[being asked] for help, it is best to
accurately describe the problem, rather than a problem in a solution,
unless I have a very firm belief that my current solution, is my best
solution. I don't know of an answer to your question about the white
space, but if you are trying to render identical pages across a variety
of mediums, it is best to just display a picture. Flash was a great
idea in solving this problem, but flash pages weren't/aren't search
engine crawl-able, but neither are images. Anyhow, I hope this
was./[will be] helpful.
On 8/4/2012 11:21 AM, Andreas Sandberg wrote:
I think actually what I need is the ability to retrieve the cap
height. Is something thats possible to retrieve? it doesn't appear as
though that metric is listed on the tutorial page (unless it's listed
as something else) and I've tried to read through the api's and can't
find any mention of it. I've also searched through the mailing list
archives and couldn't find any info. Thanks again for the help and
your patience.
Andreas
On Sat, Aug 4, 2012 at 1:14 AM, vern adams <[email protected]
<mailto:[email protected]>> wrote:
You mean you want identical line spacing across different browsers
and across different operating systems? And you are not getting that?
-v
On 4 Aug 2012, at 05:12, Andreas Sandberg <[email protected]
<mailto:[email protected]>> wrote:
> Greetings List,
>
> I'm very new to font rendering and any type of graphics
manipulation so I apologize in advance if this question is
somewhat juvenile. I'm developing a web application and noticed
that the rendering that is happening for certain fonts in chrome
is very different than how some proprietary layout tools are
rendering the same font. This causes an issue for me as I'm
trying to get the rendering to be somewhat identical. I've been
trying to use the free type library to pull out some metrics to
see if I could figure out what the rendering engines are doing
differently and if I could account for this difference. What I'm
seeing is that for some fonts, and for this example specifically
Patua-one, there appears to be a lot of white space from the top
of the text within a glyph to the top of the bounding box
(vertical spae). In layman's terms, there is a lot of white space
in this font and that's the way it's been designed I suppose.
However, it appears some programs will remove this extra space
when rendering the font but others dont. So, I suppose my
question boils down to, is there a way to determine how much white
space is present and/or are there specific font metrics that
specify this? I've read through the online docs and have played
with the api but was unable to find anything. So my next approach
was then to render a character using the gd library and see if I
could detect the pixel width based on color. Unfortunately it
looks like the gd library that php is using is removing this
padding and therefore my calculations are off. Appreciate any
help in this matter Thanks very much, here is a simple text
drawing of the space I'm trying to describe:
>
>
> A (space)
> | (space)
> | (space)
> | *
> | *
> | *
> B *
>
> where b is the baseline, a the accent, and the *'s represent the
actual glyph.
>
>
> Andreas
>
> _______________________________________________
> Freetype mailing list
> [email protected] <mailto:[email protected]>
> https://lists.nongnu.org/mailman/listinfo/freetype
_______________________________________________
Freetype mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype
_______________________________________________
Freetype mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype