Added unifont_height...
This was SVN commit r1235.
This commit is contained in:
parent
f4b410ff82
commit
5b74afce82
@ -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
|
Unicode OpenGL texture font
|
||||||
|
|
||||||
@ -204,6 +204,11 @@ int unifont_linespacing(const Handle h)
|
|||||||
return f->LineSpacing;
|
return f->LineSpacing;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int unifont_height(const Handle h)
|
||||||
|
{
|
||||||
|
H_DEREF(h, UniFont, f);
|
||||||
|
return f->Height;
|
||||||
|
}
|
||||||
|
|
||||||
void glwprintf(const wchar_t* fmt, ...)
|
void glwprintf(const wchar_t* fmt, ...)
|
||||||
{
|
{
|
||||||
|
@ -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__
|
#ifndef __UNIFONT_H__
|
||||||
#define __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.
|
// 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);
|
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
|
// Return spacing in pixels from one line of text to the next
|
||||||
int unifont_linespacing(const Handle h);
|
int unifont_linespacing(const Handle h);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user