Re: Text in Graphic Display



On 2007-04-29, Robert Miller <rsmiller@xxxxxxxxxxxx> wrote:
I'm doing a project using Forth Inc's SwiftX on a TI MSP 430 and using an
Osram 128x64 OLED display in which I need to display graphics, text, and
numerics. Although I have flash sufficient to do dot-matrix fonts of
several sizes, I would rather use a vector based font and scale it as
needed. Before I go about re-inventing the wheel, I was wondering if there
was anyone here who has been there and done that - particularly where RAM is
limited -or could point me in the right direction.

Well, not in FORTH and not something that had to look good.

For a recent project, I took an approach similar to a segmented LED
display. I defined a small set of segments from which I could construct
characters; I think I wound up using twenty. I have a table that
provides the endpoints of each segment relative to some key location of
the character; in my case, I used the center of the character. Each
segment contains four coordinates, one pair for the start of the segment
and the other for the end. Since the character cell is small, these can
be quite small.

The character set consists of a set of bitmasks indicating which
segments are to be illuminated when the character is drawn. A character
is plotted by drawing those segments for which a bit is set in the
bitmask. Since I'm using a 32-bit processor, I have a 32-bit mask for
each character.

Simple, straightforward, but ugly. In my application, the characters
didn't have to look good.
--
roger ivie
rivie@xxxxxxxxxxxx
.



Relevant Pages

  • Re: Convert old formats to OpenType?
    ... > Character wrote: ... >>> segments. ... > curves that were destined for output to a plotter, ... > nodes and a gazillion line segments, requiring an inordinate amount of ...
    (comp.fonts)
  • Re: AI project & concepts
    ... >>> But GOFAI programs can use concepts? ... >>> character is reduced to a set of properties ... of the triangle formed by the previous two segments. ... looking at several examples of the letter in all the target fonts. ...
    (comp.ai.philosophy)
  • Re: how do I draw 7-segment displays in Word 2000
    ... segments are sort of rounded. ... > the fourth example shown - WordArt using the TTF font ) ... > the center and 2 vertical bars on the right, ... > so you could apply a color to the character showing the 'lit' ...
    (microsoft.public.word.drawing.graphics)
  • TECH: Sys 11 display character
    ... I have a Sys 11 display wherein one character is out. ... other segments of the display are working and bright, ... displays are fully working and bright. ... found solutions for problems with individual segments. ...
    (rec.games.pinball)
  • TECH: Sys 11 display issue
    ... Well I finally confirmed tonight that it's my display that has the ... more segments start ... there's other data on that line, that first character basically "or's" ... I originally thought this was a cpu board problem as it matches the ...
    (rec.games.pinball)