CircuitGizmos

Electronic Products for Creative Minds

  • Home
  • Gizmo Store/Products
  • Documentation/Datasheets
  • Projects/Libraries
  • GizmoBlog
  • Services/Contact
    • Design
    • Contact Gizmo!
  • Your Gizmo Cart
    • Your Account
You are here: Home / GizmoBlog / MMBasic Language / LCD Modules and Graphics / DEFINEFONT

DEFINEFONT

DEFINEFONT #Nbr
hex [[ hex[…]
hex [[ hex[…]
END DEFINEFONT

This will define an embedded font which can be used alongside or to replace the built in font(s) used on an attached LCD panel. These work exactly same as the built in fonts (ie, selected using the FONT command or specified in the TEXT command).

‘#Nbr’ is the font’s reference number (from 1 to 16). It can be the same number as a built in font and in that case it will replace the built in font. Each ‘hex’ must be exactly eight hex digits and be separated by spaces or new lines from the next.

Multiple lines of ‘hex’ words can be used with the command terminated by a matching END DEFINEFONT.

Multiple embedded fonts can be used in a program with each defining a different font with a different font number.

During execution MMBasic will skip over any DEFINEFONT commands so they can be placed anywhere in the program.

Any errors in the data format will be reported when the program is saved.

See also:

FONT

TEXT

Applies to:

CGMICROBOARD

CGMICROMITE

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

A Ton of Documentation

Open all | Close all

Projects made by Gizmo, Friends, and Members

open all | close all

Recent GizmoBlog Musings

  • Altair 8800 using a ColorMax!
  • Re-energizing the ColorMax, Pt. 3

Visit us!

  • Facebook

Electronic Products for Creative Minds

CircuitGizmos is your source for electronic products that help you create your embedded projects. Here at CircuitGizmos.com you will find a friendly store filled with creative products and all of the documentation that you need to use these gizmos.

We create devices that we believe make electronics fun, but we also know that our products are used for professional designs. For decades we have designed products for commercial, military, and medical industries. Our gizmos here are great for engineers and hobbyists alike.

Copyright © 2008+ CircuitGizmos, L.L.C. All rights reserved

Image already added

Recently Viewed Products

Copyright © 2025 · Generate Pro Theme on Genesis Framework · WordPress · Log in