Displaying Text and Setting the Font

Question:
I am working on a project that reads in teletext information from the COM port in 8-bit binary form. Since ASCII does not represent teletext graphical characters, I have written my own font to represent the teletext characters. How can I change the font with which they are displayed to my font? At the moment I can only display the files in ASCII, as when I set the input to teletext it displays the wrong characters. I think it’s reading the input and outputting the corresponding glyphs using some default windows font type. Is there some Win API command that can allow me to choose the font type with which to display the information?

Answer:
Hmmm…. If you’re reading the transmission as a stream, you’re probably evaluating the characters as they come in, or have a buffer of some sort. In any case, you can use a TRichEdit component to display the text, and set the font as necessary.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

The Latest

iOS app development

The Future of iOS App Development: Trends to Watch

When it launched in 2008, the Apple App Store only had 500 apps available. By the first quarter of 2022, the store had about 2.18 million iOS-exclusive apps. Average monthly app releases for the platform reached 34,000 in the first half of 2022, indicating rapid growth in iOS app development.

microsoft careers

Top Careers at Microsoft

Microsoft has gained its position as one of the top companies in the world, and Microsoft careers are flourishing. This multinational company is efficiently developing popular software and computers with other consumer electronics. It is a dream come true for so many people to acquire a high paid, high-prestige job

your company's audio

4 Areas of Your Company Where Your Audio Really Matters

Your company probably relies on audio more than you realize. Whether you’re creating a spoken text message to a colleague or giving a speech, you want your audio to shine. Otherwise, you could cause avoidable friction points and potentially hurt your brand reputation. For example, let’s say you create a