Offset of each character,
more characters in the string the more the offset
field size remains the same, so the last characters are cut.
Different behavior on preview, PrintToPDF and PrintToPDF From Preview
Look Attached File.
I am not sure there is a problem here. When rendering fonts the output device has an effect on the sizing and spacing. Rendering to the screen and PDF will use slightly different options that can result in variations like you are seeing. In addition these will vary from different OS's and even different computers with the same OS if they have different fonts installed. If you are placing labels you should leave some amount of extra space for these rendering discrepancies.
About the different OS I know. Why can't use the same options, so on one system are displayed correctly?
Because it's uncomfortably. Look second attached file, be offset to display correctly.
I don't have a very good answer for that. A lot of it has to do with the Qt. When we print to screen/printer/pdf we tell Qt which device to use and it is making some of those decisions for us. I know for example that PDF always uses a 72dpi scale while rendering to a screen or printer will use the dpi setting appropriate for that device. The reason preview to pdf gives you slightly different results is probably because the preview pre renders using font metrics for the screen and then when you print it uses that already generated document so some of the attributes have already been set but the physical representation of the fonts or lines could vary.
Regarding the lines showing as different weights have you tried to set the line thickness to 1. I have found that lines of thickness 0 are "infinitely thin" so will draw at different thicknesses on different output devices. setting the value to 1 should give a more consistent result. Not sure if you are doing that already or not.
I have to put a square near each word, but renderer shifts each character. how can this be fixed?
Please attach your report definition .xml file.
cryan and I can think of several possible explanations for what you see. Your report definition would help us give you a more precise answer.
I just looked at the attached report. I see that you are trying to use a single label with spaces and fitting the boxes into those spaces. Because of this minor differences in the font spacing is causing significant variation as the string gets longer. The best way to deal with this is to have a separate label for each box, with enough padding allow for some deviation in font rendering. Does that make sense?
Thanks for help. If you will have any updates about my issue please let me know. We also think that we can use box symbol from UTF8 table of symbols, but unfortunatelly this box is small instead of my custom rectangle(box).
□. Also we think that we can create own symbol and place it, for example into liberation serif initial symbols and letters table.
Thanks for Help,
Marking closed as won't fix since there are other ways to deal with the problem. I am leaving the comments open though for any future additions someone may have that could help address this problem.