***SOLVED***What determines generated HTML font size?

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
grepper
 
 
Posts: 13
Joined: Sun Mar 21, 2021 10:55 pm

***SOLVED***What determines generated HTML font size?

Post by grepper »

This is related to my previous post about projects changing between computers, but it is a different issue and very specific so I made a new topic. I didn’t want to confuse the first post by starting another question in the middle of it.

Two computers. Both new with Windows 10. Both have the same version 7 Arial installed. I think the font comes with Windows. Both have the same, latest version of WWB.

On my computer when I put Arial 12 pt in a text box the Object HTML for the text box show the size is 16 px as it should be.

On my friend’s computer when he does the same, the HTML for the text box shows 15 px, not the expected 16 px.

What could cause that different text size? Shouldn’t 12 pt text always be 16 px regardless of the computer DPI setting?
User avatar
Pablo
 
Posts: 21702
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: What determines generated HTML font size?

Post by Pablo »

I am pretty sure this is related to the DPI configuration.
The DPi value determines how font sizes are calculated.
Please makes sure the DPI of your computer and your friends computer are been configured the same.

Related FAQ:
http://www.wysiwygwebbuilder.com/forum/ ... 10&t=85917
User avatar
BaconFries
 
 
Posts: 5365
Joined: Thu Aug 16, 2007 7:32 pm

Re: What determines generated HTML font size?

Post by BaconFries »

As Pablo's reply it is more than likely related to DPI settings between each machine. In your previous post you write that using 12pt shows 16px which is correct but on your friends PC it shows 15px. From the conversion table 15px indicates that 11pt is selected so this could indicate the DPI settings is incorrect even if both are using Windows 10 and version 7 of Arial.
From Microsoft docs which should help explain fonts and DPI
GDI and DPI
In other words, if you create a 72-point font, the size of the font will be 96 pixels at 96 DPI, but 144 pixels at 144 DPI. Here is a 72 point font rendered at 144 DPI using GDI. If your application is DPI-aware and you use GDI for drawing, scale all of your drawing coordinates to match the DPI
.31 May 2018

Taken from
DPI and Device-Independent Pixels
https://docs.microsoft.com/en-us/window ... 0the%20DPI.
grepper
 
 
Posts: 13
Joined: Sun Mar 21, 2021 10:55 pm

Re: What determines generated HTML font size?

Post by grepper »

Enabling high DPI support in WWB on his computer fixed it.
Sorry for being so slow to accept that was the issue!  You guys were right from the start.  Doh!
Thank you so much Pablo and BaconFries for your patience and taking the time to explain it (over and over) until I understood what was happening!

That was excellent product support and really appreciated.

Thanks for the link to the MS doc BaconFries. Very informative.
S
Post Reply