Beijer Electronics (formerly QSI Corporation)

Manufacturer of Mobile Data and Human Machine Interface Terminals.
It is currently Sun Nov 19, 2017 5:36 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Wed Jun 01, 2011 12:52 pm 
Offline

Joined: Mon Mar 21, 2011 2:40 pm
Posts: 22
I am using Qlarity 2.63 to program a Qterm-72G. I am having trouble with the right-justification of text fields (possibly only the MBregisterV2 version). The placement of the decimal is slightly different depending on if the value ends as 1 or any other digit. When xxx.1, the decimal is farther to the right by about 20% the width of a digit and if xxx.z, where z is any digit other than 1. This causes the entire value to "jitter" left and right when the number is changing between xxx.1 and xxx.0 or xxx.2.

Only occurs with ttf fonts, both fixed and proportional spacing (courier, arial). I have tested both in simulation and on hardware. Also tested several font sizes.

Can live with it as is, but wanted to alert you of what i am seeing and see if there is an easy fix.


Top
 Profile  
 
PostPosted: Wed Jun 01, 2011 1:22 pm 
Offline
User avatar

Joined: Thu Mar 02, 2006 2:12 pm
Posts: 487
Location: Salt Lake City, Utah
That's going to vary depending on what font you are using. Each font is going to have it's own specification of how the characters should be drawn. You may have better luck with the included BDF fonts which you can find in the directory "bdf fonts" which is created when you install Qlarity Foundry. I would also recommend using only BDF fonts if you need the best possible performance. See this FAQ for details.
viewtopic.php?f=4&t=422

_________________
Ron L.

http://www.beijerelectronicsinc.com/


Top
 Profile  
 
PostPosted: Mon Jun 06, 2011 6:59 am 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
What you are probably looking for is using hjustify_rightalign instead of hjustify_right. The only real issue with right_align is that it can inset text to the left more than desired. This can be combated on a single-line text display by using a negative number for xinset.

_________________
Jeremy
http://www.beijerinc.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group