1
0
forked from 0ad/0ad

Added unifont_height...

This was SVN commit r1235.
This commit is contained in:
Gee 2004-10-14 10:09:51 +00:00
parent f4b410ff82
commit 5b74afce82
2 changed files with 10 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/*
$Id: unifont.cpp,v 1.18 2004/09/19 11:55:15 janwas Exp $
$Id: unifont.cpp,v 1.19 2004/10/14 10:09:51 gee Exp $
Unicode OpenGL texture font
@ -204,6 +204,11 @@ int unifont_linespacing(const Handle h)
return f->LineSpacing;
}
int unifont_height(const Handle h)
{
H_DEREF(h, UniFont, f);
return f->Height;
}
void glwprintf(const wchar_t* fmt, ...)
{

View File

@ -1,4 +1,4 @@
// $Id: unifont.h,v 1.7 2004/10/06 14:00:43 janwas Exp $
// $Id: unifont.h,v 1.8 2004/10/14 10:09:51 gee Exp $
#ifndef __UNIFONT_H__
#define __UNIFONT_H__
@ -37,6 +37,9 @@ void glwprintf(const wchar_t* fmt, ...);
// a capital letter, for use when aligning text in an aesthetically pleasing way.
int unifont_stringsize(const Handle h, const wchar_t* text, int& width, int& height);
// Get only the height
int unifont_height(const Handle h);
// Return spacing in pixels from one line of text to the next
int unifont_linespacing(const Handle h);