Exported SVG pt differs from px in Xara

MarMc wrote on 10/4/2023, 6:01 AM

I have the page setting in my document set to 48x48px but if I look at the SVG in notepad after exporting it, it states 36 pt in height and width. This seems to be causing problems in some programs, since the exported SVG don't read out correct.
Why isn't the setting in Xara sticking/reading into to the exported SVG?

Comments

johnebaker wrote on 10/4/2023, 1:26 PM

@MarMc

Hi

. . . . page setting in my document set to 48x48px but if I look at the SVG in notepad after exporting it, it states 36 pt in height and width . . . This seems to be causing problems in some programs, since the exported SVG don't read out correct. . . .

Points and pixels when specifying print resolutions is an issue as you are experiencing.:

1 px is usually taken as  being 1/96th of an inch, ie a resolution of 96 pixels/inch

1 point (pt) is usually taken as  being 1/72nd of an inch, ie 72 points/per inch

Assuming the reading program is using the above resolutions then 48px = 36pt = 1/2 inch

The 'misreading' comes about when the program giving the 'wrong font size' is using a different pixel/inch or points/inch setting.

HTH

John EB
Forum Moderator

Last changed by johnebaker on 10/4/2023, 1:27 PM, changed a total of 1 times.

VPX 15, Movie Studio 2024, 2023, and earlier versions 2015 and 2016, Music Maker Premium 2024.

PC - running Windows 11 23H2 Professional 64bit on Intel i7-8700K 3.2 GHz, 16GB RAM, RTX 2060 6GB 192-bit GDDR6, 1 x 1Tb Sabrent NVME SSD (OS and programs), 2 x 4TB HDD (Data) internal HDD + 1TB internal SSD (Work disc), + 6 ext backup HDDs.

Laptop - Lenovo Legion 5i Phantom - running Windows 11 23H2 on Intel Core i7-10750H, 16GB DDR4-SDRAM, 512GB SSD, 43.9 cm screen Full HD 1920 x 1080, Intel UHD 630 iGPU and NVIDIA GeForce RTX 2060 (6GB GDDR6)

Sony FDR-AX53e Video camera, DJI Osmo Action 3 and Sony HDR-AS30V Sports cams.