comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Unifont static compiled and stack size...
Date: Mon, 14 Aug 2023 18:02:58 +0200	[thread overview]
Message-ID: <ubdj7h$27tc0$4@dont-email.me> (raw)
In-Reply-To: <5290b261-c8d8-4f0a-87f5-941d275a1e6dn@googlegroups.com>

On 2023-08-14 17:10, Micah Waddoups wrote:

[...]

> procedure Unifont_Hex_To_Ada is

[...]

What are you going to do with this?

1. This is not a font usable in a GUI framework.

2. This is not a drawable in-memory image for a GUI framework either. 
Provided, you wanted to render obtained images manually. These images 
must be in a format supported by the corresponding engine.

E.g. GTK uses Pixbuf representation for drawable in-memory images. Which is

    type Pixbuf_Image is array (Natural range 0..N*M-1) of GUChar;
    pragma Convention (C, Pixbuf_Image);

containing 4 channels RGB + alpha, row-wise.

And, no, normally you cannot draw in an arbitrary OS window.

If you are so keen to use GNU Unifont, why do not you install it from 
its available formats like TrueType and be done with that? What is wrong 
with other fixed-size fonts?

Why do you want to render glyphs manually instead of using existing OS 
facilities and GUI libraries? You cannot get around these libraries 
without rewriting device drivers and who knows what else making the code 
highly non-portable.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

  parent reply	other threads:[~2023-08-14 16:02 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-13 16:16 Unifont static compiled and stack size Micah Waddoups
2023-08-13 21:19 ` DrPi
2023-08-14  0:29   ` Micah Waddoups
2023-08-14  8:21     ` Dmitry A. Kazakov
2023-08-14  8:07 ` Niklas Holsti
2023-08-14  8:31   ` Dmitry A. Kazakov
2023-08-14  9:25     ` Kevin Chadwick
2023-08-14  9:30       ` Kevin Chadwick
2023-08-14  9:43         ` Dmitry A. Kazakov
2023-08-14  9:39       ` Dmitry A. Kazakov
2023-08-15  8:40     ` G.B.
2023-08-16  6:17       ` Dmitry A. Kazakov
2023-08-18  3:04         ` Randy Brukardt
2023-08-14 10:06 ` Jeffrey R.Carter
2023-08-14 15:10   ` Micah Waddoups
2023-08-14 15:59     ` Jeffrey R.Carter
2023-08-14 16:02     ` Dmitry A. Kazakov [this message]
2023-08-15  4:48       ` Micah Waddoups
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox