Discussion Locked

how do i use a single byte of data to st

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I heard you can store font data via s ingle byte of data including font size, style, and faces.

2 replies

by amieveryours

usyou must be using c++. store the value of each data in a set of define bits or bit. everytime u need to modified the data or retrieve it, you must use a masked byte for each different set of data.

000 00 000
111 10 111

use ANDing and bitwise shifting to retrieve the data or modified it.

This discussion is closed to new replies.