summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2003-06-14 21:39:17 +0000
committerWerner Lemberg <wl@gnu.org>2003-06-14 21:39:17 +0000
commit09752876890755c857a808af65fe0fac9935fcdd (patch)
treecae4b2ce646f338d5e1c41ad2ad5449afa0165ad
parent29f8e355162b4524501bf2dcf5666ce56e746206 (diff)
downloadfreetype2-09752876890755c857a808af65fe0fac9935fcdd.tar.gz
Minor documentation typos.
-rw-r--r--docs/TODO3
-rw-r--r--include/freetype/freetype.h10
-rw-r--r--src/pfr/pfrobjs.c5
-rw-r--r--src/truetype/ttobjs.c2
4 files changed, 8 insertions, 12 deletions
diff --git a/docs/TODO b/docs/TODO
index ee4ec390b..592809acf 100644
--- a/docs/TODO
+++ b/docs/TODO
@@ -19,8 +19,5 @@ not exactly bugs, but should be considered though:
* Possibly add support for reading PFM files.
-* Is the anti-aliased glyphs feature of BDF also available in PCF format?
- If yes, add support to the PCF driver.
-
--- end of TODO ---
diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h
index 6ed12a03f..8aa975188 100644
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -1143,12 +1143,12 @@ FT_BEGIN_HEADER
/* fixed point pixels. Always positive. */
/* */
/* <Note> */
- /* The values of `ascender', `descender', and `height' are only the */
- /* scaled versions of `face->ascender', `face->descender', and */
- /* `face->height'. */
+ /* For scalable fonts, the values of `ascender', `descender', and */
+ /* `height' are scaled versions of `face->ascender', */
+ /* `face->descender', and `face->height', respectively. */
/* */
/* Unfortunately, due to glyph hinting, these values might not be */
- /* exact for certain fonts, they thus must be treated as unreliable */
+ /* exact for certain fonts. They thus must be treated as unreliable */
/* with an error margin of at least one pixel! */
/* */
/* Indeed, the only way to get the exact pixel ascender and descender */
@@ -1854,7 +1854,7 @@ FT_BEGIN_HEADER
/* character dimensions is zero, its value is set equal to the other. */
/* */
/* <InOut> */
- /* size :: A handle to a target size object. */
+ /* face :: A handle to a target face object. */
/* */
/* <Input> */
/* char_width :: The character width, in 26.6 fractional points. */
diff --git a/src/pfr/pfrobjs.c b/src/pfr/pfrobjs.c
index af993e819..3993eee3a 100644
--- a/src/pfr/pfrobjs.c
+++ b/src/pfr/pfrobjs.c
@@ -164,9 +164,8 @@
root->units_per_EM = (FT_UShort)phy_font->outline_resolution;
root->ascender = (FT_Short) phy_font->bbox.yMax;
root->descender = (FT_Short) phy_font->bbox.yMin;
- root->height = (FT_Short)
- ( ( ( root->ascender - root->descender ) * 12 )
- / 10 );
+ root->height = (FT_Short)(
+ ( ( root->ascender - root->descender ) * 12 ) / 10 );
if ( phy_font->num_strikes > 0 )
{
diff --git a/src/truetype/ttobjs.c b/src/truetype/ttobjs.c
index 9d4fb7a0d..690c6dcbc 100644
--- a/src/truetype/ttobjs.c
+++ b/src/truetype/ttobjs.c
@@ -593,7 +593,7 @@
size->ttmetrics.y_ratio = 0x10000L;
}
- /* Compute root ascender, descender, test height, and max_advance */
+ /* Compute root ascender, descender, text height, and max_advance */
metrics->ascender = ( FT_MulFix( face->root.ascender,
metrics->y_scale ) + 32 ) & -64;
metrics->descender = ( FT_MulFix( face->root.descender,