Text size
Moderator: Kathy_9
-
Nok
- Posts: 13
- Joined: Mon Mar 17, 2014 9:12 am
- System_Drive: C
- 32bit or 64bit: 64 Bit
- processor: Intel Core i5
- Hard_Drive_Capacity: 220G
- Monitor/Display Make & Model: Samsung 17inch
- Contact:
Text size
I have created an interactive script that lets the user select a font and enter the text size. The problem is that the created text is way smaller than the text size I entered. For example if I enter 30 as the text size, the text is created as 14px or 5 points. My image uses pixels for units and has a 200ppi resolution. I think there is some formula that PSP uses to determine the size of the text. How can I change my script such that if I enter 30, my text will have 12px as its size or 5 in points?
-
Cassel
- Posts: 1587
- Joined: Fri Oct 29, 2010 6:49 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- ram: 16Gb
- Corel programs: PSP 8 (JASC) to PSP 2023
- Location: Canada
- Contact:
Re: Text size
Depending on which version the script is used in, that is a real challenge. As soon as the pixels/points option appeared, scripts have had no way to always use the same unit all the time. You can run the script 10 times, and the size will use pixels, and then, next time, it might use points. It is a problem that didn't seem to have an explanation, so a solution is not easy.
I wrote a snippet that makes the script check itself. Can you send me your email and i can send it to you with some explanation on how it works and how you might need to edit it depending on the image resolution if that could be an issue (it is not for me, so i never changed that).
My email is cassel AT creationcassel DOT com
I wrote a snippet that makes the script check itself. Can you send me your email and i can send it to you with some explanation on how it works and how you might need to edit it depending on the image resolution if that could be an issue (it is not for me, so i never changed that).
My email is cassel AT creationcassel DOT com
Cassel
https://creationcassel.com/store
Specializing in PSP specific products: scripts and tubes
https://scrapbookcampus.com
for beginner and seasoned scrappers and designers and other PSP users
https://creationcassel.com/store
Specializing in PSP specific products: scripts and tubes
https://scrapbookcampus.com
for beginner and seasoned scrappers and designers and other PSP users
-
Radim
- Posts: 712
- Joined: Mon Nov 01, 2010 5:54 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- ram: 4GB
- Monitor/Display Make & Model: 27 inch
Re: Text size
I am curious too...Cassel wrote:I wrote a snippet that makes the script check itself. Can you send me your email and i can send it to you with some explanation on how it works and how you might need to edit it depending on the image resolution if that could be an issue (it is not for me, so i never changed that).
