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 18:02:58 +0200 Organization: A noiseless patient Spider Message-ID: References: <5290b261-c8d8-4f0a-87f5-941d275a1e6dn@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 14 Aug 2023 16:02:57 -0000 (UTC) Injection-Info: dont-email.me; posting-host="cc824e519d9fa1c5f42fa6e653ec1016"; logging-data="2356608"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/4aomCEpvqRK6xfnpnmq0LaF8Q4dsAkZY=" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Cancel-Lock: sha1:uRAdGV5/i8dOvR/fsKF5maaJZz4= Content-Language: en-US In-Reply-To: <5290b261-c8d8-4f0a-87f5-941d275a1e6dn@googlegroups.com> Xref: news.eternal-september.org comp.lang.ada:65524 List-Id: 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