From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id B8D27BC6B for ; Sun, 7 Oct 2007 21:08:28 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CADLLCEfRVYC6mGdsb2JhbACCOzaLRwEBAQEHBAYRFg X-IronPort-AV: E=Sophos;i="4.21,240,1188770400"; d="scan'208";a="17426830" Received: from fk-out-0910.google.com ([209.85.128.186]) by mail4-smtp-sop.national.inria.fr with ESMTP; 07 Oct 2007 21:08:28 +0200 Received: by fk-out-0910.google.com with SMTP id b27so1248607fka for ; Sun, 07 Oct 2007 12:08:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=TQWnatVHRsm+IuauGt7CtgwgPo3xV3KbgGx8sH03hC8=; b=C9XPW65c8K0LUcKGhPQKVfUSB+yuikLTc6JSnW8W+rn/gm31AUU+8MVBNYGCHvd6ODQMSoUUc8bFFV9xdu4Pg0kN9N0Wbe5UGJXVI30gizD/lehb+qaqpXIa8PvMuizqyMrNk/xBSTFfc3lU6807Qn8KEOpiVbsNCcU+3mHGhWs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=Tp+PdnA2rHSi4s2WyXqdhrVAUgMSI0aXwYq7hQO9xRcfWfFG7HuFU6hasKmYkxJA4bdTUoeKzwOrLNh4KlJ56z3B+rLnz0zO09wxgoZXekpikyVK4heNlCpxJQO90SpBkYPdF6PNKXm4RzsGFcxqXKZnTGoX2XWN9PtX3wCX1UE= Received: by 10.82.112.3 with SMTP id k3mr3869813buc.1191784107303; Sun, 07 Oct 2007 12:08:27 -0700 (PDT) Received: by 10.82.120.16 with HTTP; Sun, 7 Oct 2007 12:08:27 -0700 (PDT) Message-ID: Date: Sun, 7 Oct 2007 15:08:27 -0400 From: "Orlin Grigorov" To: "Vu Ngoc San" Subject: Re: [Caml-list] Text in OpenGL Cc: caml-list@yquem.inria.fr In-Reply-To: <47089BF2.1040307@ujf-grenoble.fr> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_46813_787821.1191784107301" References: <47089BF2.1040307@ujf-grenoble.fr> X-Spam: no; 0.00; lablgl:01 cheers:01 sdlvideo:01 renders:01 lablgl:01 cheers:01 sdlvideo:01 renders:01 smoke:98 smoke:98 wrote:01 wrote:01 caml-list:01 functions:01 functions:01 ------=_Part_46813_787821.1191784107301 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thank you all for the suggestions. Yes, the Smoke Vector Graphics library looks like is extremely professional and good job. Still, I need somethin= g easy and small, and I thought more about the "image to texture" suggestion, and I think I found something, which will definitely work good for my purposes. I decide to give it a try by going through latex, which will produce a dvi file, then use "convert" to make it into a suitable format fo= r importing into an OpenGL texture. What do you think? On 10/7/07, Vu Ngoc San wrote: > > Orlin Grigorov a =E9crit : > > I've been struggling with this one. I'm developing an application, and > > I'm using the gtkgl.area, and drawing some OpenGL renderings with > > lablgl. Please, any suggestions on the best way to display text? > > Anything available already, especially some texture mapped text > > libraries that I can use? > > > > Thank you in advance. Although this is my first post, I'm a very > > frequent reader of this list! > > > > Cheers, > > > > Orlin > > > > > well it is possible to use sdl for this. There are functions for reading > any truetype font file you have into a sdlvideo image. It actually > directly renders any string to an image. Then you have to convert it to > an opengl texture. It is not so difficult. Of course, since you are > actually using gtkgl this may sound a bit circumvoluted, and there is > probably a simpler way to do it. (?) > > San > > ------=_Part_46813_787821.1191784107301 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thank you all for the suggestions.  Yes, the Smoke Vector Graphics lib= rary looks like is extremely professional and good job.   Still, = I need something easy and small, and I thought more about the "image t= o texture" suggestion, and I think I found something, which will defin= itely work good for my purposes.  I decide to give it a try by going t= hrough latex, which will produce a dvi file, then use "convert" t= o make it into a suitable format for importing into an OpenGL texture. = ; =20

What do you think?

On 10/7= /07, Vu Ngoc San <san.vu-ngoc@ujf-grenoble.fr> wrote:
Orlin Grigorov a =E9crit :
> I've been struggling with this one.&= nbsp; I'm developing an application, and
> I'm using the= gtkgl.area, and drawing some OpenGL renderings with
> lablgl. &= nbsp;Please, any suggestions on the best way to display text?
> Anything available already, especially some texture mapped text> libraries that I can use?
>
> Thank you in advance. =  Although this is my first post, I'm a very
> frequent reade= r of this list!
>
> Cheers,
>
> Orlin
>


well it i= s possible to use sdl for this. There are functions for reading
any true= type font file you have into a sdlvideo image. It actually
directly rend= ers any string to an image. Then you have to convert it to
an opengl texture. It is not so difficult. Of course, since you are
= actually using gtkgl this may sound a bit circumvoluted, and there is
pr= obably a simpler way to do it. (?)

San


------=_Part_46813_787821.1191784107301--