victoryhighway2
Programmer
Hello Group,
I'm trying to write a program that will simulate the display of our LCD display module. We are giving the user the choice of fonts, font sizes and colors to display. In my simulator, I want to simulate what the display will look like on our LCD display module, but I'm running into a problem. The LCD display we're using is a 68 DPI display, while most PC's are configured for 96 DPI. I've tried multiplying the font sizes by a factor of (96/68), but this results with a fractional point size. I'm trying to use the RichTextBox control to display the text, but unfortunately it only allows integer point sizes. I need to have the display on the simulator match the display on the LCD display as close as possible.
Does anyone have any suggestions to workaround this problem?
Regards,
Geoffrey
I'm trying to write a program that will simulate the display of our LCD display module. We are giving the user the choice of fonts, font sizes and colors to display. In my simulator, I want to simulate what the display will look like on our LCD display module, but I'm running into a problem. The LCD display we're using is a 68 DPI display, while most PC's are configured for 96 DPI. I've tried multiplying the font sizes by a factor of (96/68), but this results with a fractional point size. I'm trying to use the RichTextBox control to display the text, but unfortunately it only allows integer point sizes. I need to have the display on the simulator match the display on the LCD display as close as possible.
Does anyone have any suggestions to workaround this problem?
Regards,
Geoffrey