From 2179b8cfb69557082cada7ddd91194091718c8ba Mon Sep 17 00:00:00 2001 From: lordjaxom Date: Sun, 2 Jan 2005 23:18:42 +0000 Subject: - Width now in percent --- graphtft/font.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'graphtft') diff --git a/graphtft/font.c b/graphtft/font.c index c8c74fa..0a384f7 100644 --- a/graphtft/font.c +++ b/graphtft/font.c @@ -1,5 +1,5 @@ /* - * $Id: font.c,v 1.2 2005/01/02 14:34:05 lordjaxom Exp $ + * $Id: font.c,v 1.3 2005/01/02 23:18:42 lordjaxom Exp $ * * Taken from GraphTFT */ @@ -58,6 +58,9 @@ bool cGraphtftFont::Load(string Filename, string CacheName, int Size, int Langua // set slot _slot = _face->glyph; + if (Width > 0) + Width = Size * Width / 100; + // set Size FT_Set_Char_Size ( -- cgit v1.2.3