Example #1
0
short
SWFText_getScaledAscent(SWFText text)
{
	SWFFont font = text->currentRecord->font.font;
	int height = text->currentRecord->height;

	if ( text->currentRecord->isBrowserFont )
		return 0;
	else
		return SWFFont_getScaledAscent(font) * height / 1024;
}
Example #2
0
short
SWFText_getScaledAscent(SWFText text)
{
	SWFFont font;
	int height;

	if(text->currentRecord == NULL)
		return -1;

	font = text->currentRecord->font.font;
	height = text->currentRecord->height;
	return SWFFont_getScaledAscent(font) * height / 1024;
}
Example #3
0
float
SWFFont_getAscent(SWFFont font)
{
    return SWFFont_getScaledAscent(font)/Ming_scale;
}