[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
how to load fonts in a window
From: "sourabh agrawal" ####@####.#### Date: 2 Jul 2007 17:42:56 +0100 Message-Id: <48ade1240707020942x11c46e74t6c911164392bb3db@mail.gmail.com> hi greg, Please show me the way to use .TTF fonts in my program. I want to display some hindi(local language) characters in my window. iam using these API's but it didn,t work font = GrCreateFont(/root/microwindows/DVISR0NT.TTF, i , NULL); GrSetGCFont(gc, font); It gives me Font ID but font is not loaded in the window Even your given examples in microwindows is not working properly(ftdemo, f1demo etc) please describe me how to use my own .ttf fonts in my program. please help me. Thanks & Regards hiimsa | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] how to load fonts in a window
From: "Greg Haerr" ####@####.#### Date: 2 Jul 2007 17:49:45 +0100 Message-Id: <0e5c01c7bcc9$0d72e370$0300a8c0@RDP> : font = GrCreateFont(/root/microwindows/DVISR0NT.TTF, i , NULL); If you list the file in upper case, make sure it exists in the filesystem in upper case. : : Even your given examples in microwindows is not working properly(ftdemo, : f1demo etc) If the demo programs aren't working, then your freetype installation probably isn't working. I recommend moving backwards to the 1.x freetype for the time being, then working with a later 2.x version. This version is documented in the engine/font_freetype.c file. The demos do work, I also recommend running them on a linux desktop before moving to an embedded target. Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |