Re: Texts are displayed different size on different computers

Hello ruggedvid.
I try with my win10 work laptop and I've got the bug.
At this time I haven't got any solution, but I probably have enough stuff to find it.
I will work on it and twist my fingers for a solution that work with existing files and not only with news.

Développeur QElectroTech

Re: Texts are displayed different size on different computers

After a few test, I think the problem come from the difference between a font size set by point or pixel (there is a lot of information on internet about this) but in a few words:
point size -> font size look same for human no matter if screen a low resolution or a 1000K resolution.

Pixel size -> the font use always the same pixel width and height no matter the screen resolution : example if screen is low resolution and font look good the same font on 4k will look very very small.

In qet we use pointSize and I think the problem come from that. Use pixelSize for diagram font is not difficult but there is some other part of qet that will be cause issue nomicons/sad.

For the texts of elements I think I can fix it without a lot of effort, but for the independent text item this is an other pair of sleeves...
The text are automatically saved in html in the .qet file even if you don't use html formating. The html only write the pointSize of font and not the pixelSize, not impossible to do this, but probably not easy.

For fix it I need to :
-use pixelSize instead of pointSize.
-Independent text by default be a simple text and not formatted to html and when are saved, save it as simple text or html formatted according to what he was.
With these two points I think I can fix the problem of font size between hd and 4k screen.

Développeur QElectroTech

Re: Texts are displayed different size on different computers

Maybe specific to Windows?
https://docs.microsoft.com/en-us/window … ent-pixels
https://qelectrotech.org/bugtracker/view.php?id=150

Maybe include manifest to windows platform?

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Texts are displayed different size on different computers

Please try new Debian and Windows packages based on branch pixel_size_font.

https://git.tuxfamily.org/qet/qet.git/c … _size_font


Edit : for Debian package is here :
https://download.qelectrotech.org/qet/s … size_font/

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Texts are displayed different size on different computers

About this commit :
Only the editable texts of elements are changed.
To test it, open the project who have font size problem on the good screen, save it in an other name, re-open the new file and test it.
If everything work well we can add these changes to other texts of qet.

Développeur QElectroTech

Re: Texts are displayed different size on different computers

Thanks much, finally will be able to check it this week!  Will let you know what we find.

Re: Texts are displayed different size on different computers

We've not been successful trying to build the software with a Windows PC.  Can you compile the installer for a Windows x64 machine?

Re: Texts are displayed different size on different computers

Hello,

Any chance we can get a Windows installer?
Thanks!

Re: Texts are displayed different size on different computers

https://download.qelectrotech.org/qet/s … t/Windows/

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

35 (edited by ruggedvid 2022-01-26 17:48:26)

Re: Texts are displayed different size on different computers

Thank you!  We tried it out and so far I can't see a difference in performance. 

I took screen shots of a module in a drawing, as opened with v0.7 and with the new pixel_size_font build.

Post's attachments

QET Dev Modules Text TEST 21Jan2022.png, 100.85 kb, 878 x 438
QET Dev Modules Text TEST 21Jan2022.png 100.85 kb, 133 downloads since 2022-01-26 

36 (edited by Joshua 2022-01-26 23:43:11)

Re: Texts are displayed different size on different computers

Hello, it's normal you can't see a difference because the test is wrong.

To test, you need to do these few steps :
-Install the qelectrotech pixel_size_font build on both computers (HD laptop and 4K laptop) and only use this qelectrotech version for the test.
-Create a new project in computer 1, save it and open it in computer 2.
-See the difference
-Create a new project in computer 2, save it and open it in computer 1.
-See the difference.
-Tell us if they work or not.

The test must be done ONLY in this way. If the text size is good, we can go further.

Best regard
Joshua.

Développeur QElectroTech

37 (edited by mirzatera180 2022-03-15 14:05:51)

Re: Texts are displayed different size on different computers

I'm also using QET on two computers, both running Windows7.

hellodear.in