Пример #1
0
void
RasterCallback(const int y,
               const int count,
               const FT_Span * const spans,
               void * const user) 
{
	Spans *sptr = (Spans *)user;
	for (int i = 0; i < count; ++i) 
	  sptr->push_back(Span(spans[i].x, y, spans[i].len, spans[i].coverage));
}
//---------------------------------------------------------------------------------
//	renderCallback()
//---------------------------------------------------------------------------------
void FontMaker::renderCallback( int y, int count, const FT_Span* spans, void* user )
{
	Spans *sptr = (Spans *)user;
	for( int i = 0; i < count; ++i )
		sptr->push_back( Span( spans[i].x, y, spans[i].len, spans[i].coverage ) );
}