nopzixcross
Posts: 14
Joined: Mon Feb 20, 2017 11:38 am

How to add letter spacing

I need to add letter spacing

้What should I do?

Thanks
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: How to add letter spacing

Hello,

Can you give us a more detailed scenario of what you want to achieve? Thank you!

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
nopzixcross
Posts: 14
Joined: Mon Feb 20, 2017 11:38 am

Re: How to add letter spacing

Sorin wrote:Hello,

Can you give us a more detailed scenario of what you want to achieve? Thank you!

Best regards,
Sorin
I need letter spacing in text-style like the css letter-spacing

this I need
2.png
2.png (634 Bytes) Viewed 6907 times
but now i have this
1.png
1.png (1.13 KiB) Viewed 6907 times
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: How to add letter spacing

Hello,

This can be done by editing one of our Themes. For example, if you would like to use "Spring" theme, you need to go to Advanced Installer installation folder and edit the theme's "style.css". This css file is located in a path similar to "C:\Program Files (x86)\Caphyon\Advanced Installer 1x.x.x\themes\spring\resources\html". You need to copy the css file on another location on your disk and edit it, then overwrite it in Advanced Installer Install folder, as this file is write-protected.

The following css code will enable a 5 pixel letter spacing:

Code: Select all

{
letter-spacing: 5px;
}
Regarding the actual "style.css" edit, you need to find the elements for which you want to change the letter-spacing and then enter the above code in all of these elements. For example if you append "letter-spacing: 5px;" in .description element the letter spacing of the dialogs text will appear like the one in the screenshot attached.

Hope this helps!

Best regards,
Sorin
Attachments
screenshot.jpg
screenshot.jpg (53.17 KiB) Viewed 6894 times
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
nopzixcross
Posts: 14
Joined: Mon Feb 20, 2017 11:38 am

Re: How to add letter spacing

Sorin wrote:Hello,

This can be done by editing one of our Themes. For example, if you would like to use "Spring" theme, you need to go to Advanced Installer installation folder and edit the theme's "style.css". This css file is located in a path similar to "C:\Program Files (x86)\Caphyon\Advanced Installer 1x.x.x\themes\spring\resources\html". You need to copy the css file on another location on your disk and edit it, then overwrite it in Advanced Installer Install folder, as this file is write-protected.

The following css code will enable a 5 pixel letter spacing:

Code: Select all

{
letter-spacing: 5px;
}
Regarding the actual "style.css" edit, you need to find the elements for which you want to change the letter-spacing and then enter the above code in all of these elements. For example if you append "letter-spacing: 5px;" in .description element the letter spacing of the dialogs text will appear like the one in the screenshot attached.

Hope this helps!

Best regards,
Sorin
How to use in Surface Theme?

Thanks.
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: How to add letter spacing

Hello,

The solution I gave you can be used for a HTML Based theme. Unfortunately Surface theme is not HTML based. The only predefined HTML based Advanced Installer theme is Spring, containing 7 variations.

As a workaround you could try to change the font used by Surface Theme. To achieve this go to "Themes" page, "Text styles" and edit font settings to your like.
If this doesn't work for you, you could try to edit the "Default Strings" from "Translations", by entering spaces between letters for the string/strings you need.
The letter spacing for non HTML themes could also be modified by editing the dictionary file used, which is an .AIL file. This file contains the text string from the installation UI in form of XML code. If you need to modify the entire's user interface letter spacing, you could write a script that parses the XML code, inserting spaces between each character of the strings values, creating a new dictionary file.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”