A variety of character fonts in milliseconds This utility modifies the in-RAM character set to provide additional fonts. The options arc regular or italic set: either one can be normal, or thin, or chick, or mixed with or without underlining. The mixed font has thin top and thick bottom and resembles the hi-tech computer character set. These options combined with inverse printing [PRINT CHR$(24)] can provide quite a variety of screen displays, even in MODE 2. All this can be (and has been) done in BASIC, but very slowly. This routine can change fonts in real time, the delay (about 63 milliseconds) being hardly noticeable. The selection is made by setting certain bits of the parameter passed to the routine: if bit 7 is set (parameter=128), underline will be selected; setting bit 0 as well (parameter=128+1=129) will also select italics. The relocatable routine is stored in an integer array, and the address of the start of the character table is passed to it. This is simpler and more flexible than trying to store it at a fixed memory address. I am currently installing it in my homemade wordprocessor, to preview selection of different fonts before the final printing. TAU ★ AMSTRAD CPC ★ DOWNLOAD ★ |
|
CPCrulez[Content Management System] v8.7-desktop/c Page créée en 186 millisecondes et consultée 1811 foisL'Amstrad CPC est une machine 8 bits à base d'un Z80 à 4MHz. Le premier de la gamme fut le CPC 464 en 1984, équipé d'un lecteur de cassettes intégré il se plaçait en concurrent du Commodore C64 beaucoup plus compliqué à utiliser et plus cher. Ce fut un réel succès et sorti cette même années le CPC 664 équipé d'un lecteur de disquettes trois pouces intégré. Sa vie fut de courte durée puisqu'en 1985 il fut remplacé par le CPC 6128 qui était plus compact, plus soigné et surtout qui avait 128Ko de RAM au lieu de 64Ko. |
|
|