Re: Big Font Bolt-in Time

new topic     » goto parent     » topic index » view thread      » older message » newer message

Fully functional prototype of my font storage routines.
Currently stores and loads only 32x32 fonts.

Fonts passed to and returned from the routines are to have
1 and 0 data only.

They all fall under the rule of
  font = (rand(repeat(repeat(2, 32), 32) - 1)
or

NOTE: values are to be either (1 or 0) only.
  font = {
          { 1, 2, 3, 4..., 31, 32}, --1
          { 2, 2, 3, 4..., 31, 32}, --2
          { 3, 2, 3, 4..., 31, 32}, --3
          { 1, 2, 3, 4..., 31, 32}, --4
          ....
          {31, 2, 3, 4..., 31, 32}, --31
          {32, 2, 3, 4..., 31, 32}  --32
         }

32 width by 32 height and all values are either 1 or 0.

USAGE:
    save_font("fonts.lhf", char#, font_to_save, style_info)
    load_font("fonts.lhf", char#)

  style_info is a sequence and is currently unused.
    It is reserved for future features.
  Please pass an empty sequence,({} or ""), to style_info.
That is what I will look for in future releases
for backwards compatibility.


>---------------------- Information from the mail
header -----------------------
>Sender:       Euphoria Programming for MS-DOS
<EUPHORIA at LISTSERV.MUOHIO.EDU>
>Poster:       Norm Goundry <bonk1000 at HOTMAIL.COM>
>Subject:      Big Font Bolt-in Time
>---------------------------------------------------------------------------
----
>
>Mostly for Lucius,
>
>
>Questions:
>
>1.  How close to either Jiri's unexpanded .f structure is the data
>structure?  I have taken one of the actual Chinese fonts and used a Hex-
>Editor to print out the first forty lines or so.  I printed out your
>Compact.f, Expanded.f, AB.f (chinese font in Jiri's), AB.sf (same Chinese
>font in Colin's) for comparison.

    I haven't looked over Jiri's .f structure.
Above is a reasonable description of the routines and how to make
use of them.  Fonts are 32x32 2D sequences with only 1 & 0 values.
The only routines used are save_font() and load_font().

>
>2.  I am wanting to use this asap.  I can severely hack the present code so
>that I just need to import (i.e., more like shovel!) in the fonts as sit
>now in byte format, or I can more safely cobble in the expanded binary
>fonts.
>
>I need some direction on this.  This is the largest font file ever built
>anywhere, and it is starting today.  What is your advice?
>
>Regards,
>Norm
>
        Lucius L. Hilley III
          lhilley at cdc.net
+----------+--------------+--------------+
| Hollow   | ICQ: 9638898 | AIM: LLHIII  |
|  Horse   +--------------+--------------+
| Software | http://www.cdc.net/~lhilley |
+----------+-----------------------------+

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu