From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-3.2 required=3.0 tests=BAYES_00,NICE_REPLY_A, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Unifont static compiled and stack size... Date: Mon, 14 Aug 2023 10:31:43 +0200 Organization: A noiseless patient Spider Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 14 Aug 2023 08:31:44 -0000 (UTC) Injection-Info: dont-email.me; posting-host="cc824e519d9fa1c5f42fa6e653ec1016"; logging-data="2356607"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+zBc+ATW/VRLJqsgsg/4RbViInyd4I8e0=" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Cancel-Lock: sha1:HpiBCocwx7ZqsLIiajvMxC42RJs= In-Reply-To: Content-Language: en-US Xref: news.eternal-september.org comp.lang.ada:65516 List-Id: 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