Home | History | Annotate | Download | only in bdf

Lines Matching refs:bbx

210 #define ERRMSG4  "[line %ld] BBX too big.\n"
1570 if ( p->row >= (unsigned long)glyph->bbx.height )
1608 mask_index = ( glyph->bbx.width * p->font->bpp ) & 7;
1609 if ( glyph->bbx.width )
1670 /* Expect the BBX field next. */
1671 if ( _bdf_strncmp( line, "BBX", 3 ) == 0 )
1680 glyph->bbx.width = _bdf_atous( p->list.field[1] );
1681 glyph->bbx.height = _bdf_atous( p->list.field[2] );
1682 glyph->bbx.x_offset = _bdf_atos( p->list.field[3] );
1683 glyph->bbx.y_offset = _bdf_atos( p->list.field[4] );
1686 glyph->bbx.ascent = (short)( glyph->bbx.height + glyph->bbx.y_offset );
1687 glyph->bbx.descent = (short)( -glyph->bbx.y_offset );
1691 p->maxas = (short)FT_MAX( glyph->bbx.ascent, p->maxas );
1692 p->maxds = (short)FT_MAX( glyph->bbx.descent, p->maxds );
1694 p->rbearing = (short)( glyph->bbx.width + glyph->bbx.x_offset );
1697 p->minlb = (short)FT_MIN( glyph->bbx.x_offset, p->minlb );
1698 p->maxlb = (short)FT_MAX( glyph->bbx.x_offset, p->maxlb );
1705 glyph->dwidth = glyph->bbx.width;
1746 /* Missing BBX field. */
1747 FT_ERROR(( "_bdf_parse_glyphs: " ERRMSG1, lineno, "BBX" ));
1753 glyph->bpr = ( glyph->bbx.width * p->font->bpp + 7 ) >> 3;
1755 bitmap_size = glyph->bpr * glyph->bbx.height;
1824 p->font->font_ascent = p->font->bbx.ascent;
1825 ft_sprintf( nbuf, "%hd", p->font->bbx.ascent );
1831 FT_TRACE2(( "_bdf_parse_properties: " ACMSG1, p->font->bbx.ascent ));
1837 p->font->font_descent = p->font->bbx.descent;
1838 ft_sprintf( nbuf, "%hd", p->font->bbx.descent );
1844 FT_TRACE2(( "_bdf_parse_properties: " ACMSG2, p->font->bbx.descent ));
2051 p->font->bbx.width = _bdf_atous( p->list.field[1] );
2052 p->font->bbx.height = _bdf_atous( p->list.field[2] );
2054 p->font->bbx.x_offset = _bdf_atos( p->list.field[3] );
2055 p->font->bbx.y_offset = _bdf_atos( p->list.field[4] );
2057 p->font->bbx.ascent = (short)( p->font->bbx.height +
2058 p->font->bbx.y_offset );
2060 p->font->bbx.descent = (short)( -p->font->bbx.y_offset );
2166 p->font->font_ascent = p->font->bbx.ascent;
2167 ft_sprintf( nbuf, "%hd", p->font->bbx.ascent );
2172 FT_TRACE2(( "_bdf_parse_properties: " ACMSG1, p->font->bbx.ascent ));
2174 p->font->font_descent = p->font->bbx.descent;
2175 ft_sprintf( nbuf, "%hd", p->font->bbx.descent );
2180 FT_TRACE2(( "_bdf_parse_properties: " ACMSG2, p->font->bbx.descent ));
2241 p->font->monowidth = p->font->bbx.width;
2257 if ( p->maxrb - p->minlb != p->font->bbx.width )
2260 p->font->bbx.width, p->maxrb - p->minlb ));
2261 p->font->bbx.width = (unsigned short)( p->maxrb - p->minlb );
2265 if ( p->font->bbx.x_offset != p->minlb )
2268 p->font->bbx.x_offset, p->minlb ));
2269 p->font->bbx.x_offset = p->minlb;
2273 if ( p->font->bbx.ascent != p->maxas )
2276 p->font->bbx.ascent, p->maxas ));
2277 p->font->bbx.ascent = p->maxas;
2281 if ( p->font->bbx.descent != p->maxds )
2284 p->font->bbx.descent, p->maxds ));
2285 p->font->bbx.descent = p->maxds;
2286 p->font->bbx.y_offset = (short)( -p->maxds );
2290 if ( p->maxas + p->maxds != p->font->bbx.height )
2293 p->font->bbx.height, p->maxas + p->maxds ));
2294 p->font->bbx.height = (unsigned short)( p->maxas + p->maxds );