Inverse text with GLCD module
Moderators: David Barker, Jerry Messina
Inverse text with GLCD module
Is there a way to display text in inverse with the GLCD module (KS0108)?
Hello,
from Swordfish help file in GLCD section:
octal
from Swordfish help file in GLCD section:
Regardsstructure TFont
Header as word
Data as word
Width as byte
Height as byte
Style as byte
LetterSpacing as byte
NumberOfChars as Header.Byte1
IsFixed as Header.Booleans(0)
IsVariable as Header.Booleans(1)
IsScanX as Header.Booleans(6)
IsScanY as Header.Booleans(7)
end structure
Header - The font header
Data - Start address of the font data table
Width - The font width, in pixels. For variable width fonts, this value is 0.
Height - The font height, in pixels.
Style - The font style. Can be fsNormal, fsMerge, fsXOR or fsInvert. Please note that different GLCD drivers may only allow a subset of font styles to be used or none at all. You should refer to specific driver documentation for information on supported font styles.
LetterSpacing - The distance between font characters, in pixels.
NumberOfChars - The number of characters in a font table.
IsFixed - Font fixed width flag
IsVariable - Font variable width flag
IsScanX - Font data is scanned along x flag
IsScanY - Font data is scanned along y flag
octal
rmteo wrote:Thank you. Also, is there a way to filled rectangles?
You already asked for that a long time ago
http://www.sfcompiler.co.uk/forum/viewt ... +rectangle
Regards
octal
Sorry, about that. I know that it can be done by drawing lines - that is the way I have always been doing it. I was just wondering if it could be done using SF primitives. Something like this (would be nice if it can also be done for circles and ellipses):
Code: Select all
brush.style = bssolid ' Draw a filled rectangle
glcd.rectangle(0,0,127,63)
brush.style = bsclear ' Draw outline only
glcd.rectangle(0,0,127,63)