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 10:31:43 +0200	[thread overview]
Message-ID: <ubcopg$27tbv$1@dont-email.me> (raw)
In-Reply-To: <kju5liF13jeU1@mid.individual.net>

On 2023-08-14 10:07, Niklas Holsti wrote:

> I'm not familiar with the structure of the Unifont file, but if it is 
> something like a table with rows and columns, it should be rather easy 
> to translate it into a list of assembly-language constant-data definitions.

A comparable case. I have XPM to Ada translator (for having built-in 
images in GTK). It simply creates packages with declarations of 
initialized arrays. No stack issues.

Doing something like that for bitmap fonts is just as simple. The only 
minor issue is creating an index map: code point to the bitmap image 
name (array), because a flat array would blow out.

P.S. I always wanted static functions in Ada for the purpose of all 
static initializations of objects like maps etc.

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

  reply	other threads:[~2023-08-14  8:31 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 [this message]
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
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