[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] How to get Horizontal Advance on Stroked Glyph
From: |
johnpf74 |
Subject: |
Re: [ft] How to get Horizontal Advance on Stroked Glyph |
Date: |
Mon, 21 May 2012 07:57:10 -0700 (PDT) |
Hello Werner.
Sorry, I am new to this. What do you think of the below comments? I hope
this is enough information to go on in order to find the code and add to the
documentation.
John
freetype.h
line 223
/* horiAdvance ::
*/
/* Advance width for horizontal layout. If the glyph will be
*/
/* stroked with an outside border you will need to manually adjust
*/
/* this advance to account for added width from the border.
*/
line 232 (will be line 234 once comment above is added)
/* vertAdvance ::
*/
/* Advance height for vertical layout. If the glyph will be
*/
/* stroked with an outside border you will need to manually adjust
*/
/* this advance to account for added height from the border.
*/
ftstroke.h
line 658
* @note:
* The source glyph is untouched in case of error. Adding
* stroke may yield a significantly wider and taller glyph
* depending on how large of a radius was used to stroke the
* glyph. You may need to manually adjust horizontal and
* vertical advance amounts to account for this added size.
line 695 (will be line 699 after comment above is added)
* @note:
* The source glyph is untouched in case of error. Adding
* stroke may yield a significantly wider and taller glyph
* depending on how large of a radius was used to stroke the
* glyph. You may need to manually adjust horizontal and
* vertical advance amounts to account for this added size.
Werner LEMBERG wrote:
>
>
>> Does that mean if, in general, if I add an N pixel stroke, I would
>> add a 2*N pixel advance to account for the stroke on each side,
>> where N is an integer?
>
> It really depends on the amount of the added thickness, your personal
> taste, the font itself, etc., etc.; if it were a one-to-one
> relationship, FreeType would adjust it automatically.
>
>> Would I also do the same for advancing each line of text vertically?
>
> It's the same situation, yes.
>
>> Also, how do I advise a patch to update the documentation? Is that
>> something that you will handle?
>
> The doc files are generated from the header files. I thus ask you to
> open the file ftstroke.h, improve the wording (or add some words or
> sentences) and send me a diff to the original version.
>
>
> Werner
>
> _______________________________________________
> Freetype mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/freetype
>
>
--
View this message in context:
http://old.nabble.com/How-to-get-Horizontal-Advance-on-Stroked-Glyph-tp33868633p33883242.html
Sent from the Freetype - User mailing list archive at Nabble.com.