{{htmlmetatags>metatag-robots=() metatag-title=(DEFDGR | ugBASIC User Manual) metatag-keywords=(ugBASIC,Commodore 64,Commodore PLUS/4,ZX Spectrum) metatag-description=(Manual page for DEFDGR) metatag-media-og:image=(:ugbasic:logo-ugbasic-fb.png) metatag-og:title=(DEFDGR | ugBASIC User Manual) metatag-og:description=(Manual page for DEFDGR) }} ====== ugBASIC User Manual ====== ===== DEFDGR ✓ ===== ===== SYNTAX ===== DEFDGR[$](x) = b0, b1, ... , b7 ==== PURPOSE ==== This command allows you to customize a single character from those used in graphical mode. The character is defined by means of an 8 pixel by 8 pixel monochrome matrix. If the system font has fewer pixels along one or both directions, the character will be aligned to the top left and the extra pixels will be ignored. The customization of the character occurs at runtime. If you want to customize the characters used in text mode, or during compilation, you must use the ''LOAD FONT'' command. ==== EXAMPLE ==== DEFDGR(0) = $ff, $ff, $ff, $ff, $00, $00, $00, $00 DEFDGR$(1) = $ff, $ff, $ff, $ff, $00, $00, $00, $00 See also the following example files: * ''[[https://github.com/spotlessmind1975/ugbasic/tree/main/examples/font_example_02.bas|font_example_02.bas]]'' ==== ABBREVIATION ==== Dfg ==== AVAILABLE ON ==== ==== ANY PROBLEM? ==== If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please [[https://github.com/spotlessmind1975/ugbasic/issues/new?title=ISSUE ON DEFDGR|open an issue]] for this keyword on GitHub. Thank you!===== POWERED BY ===== [[:ugbasic:user:index|{{ :ugbasic:user:logo-ugbasic.png?nolink&600 |}}]]