Adjusting 'Text' Object Line Height?

Get help using Construct 2

Post » Thu Jul 05, 2012 11:39 am

Hi,

We're using a couple of web fonts in our project and I'm currently having trouble adjusting one of the font's line height(vertical spacing between each line).

My .css file currently looks like this:

@font-face {
    font-family: '8bit';
    src: url('8bitoperator_jve-webfont.eot');
    src: url('8bitoperator_jve-webfont.eot?#iefix') format('embedded-opentype'),
        url('8bitoperator_jve-webfont.woff') format('woff'),
        url('8bitoperator_jve-webfont.ttf') format('truetype'),
        url('8bitoperator_jve-webfont.svg#8bitoperatorJVERegular') format('svg');
    font-style: normal;
    font-weight: 400;

}

@font-face {
    font-family: 'uni05';
    src: url('uni05_53-webfont.eot');
    src: url('uni05_53-webfont.eot?#iefix') format('embedded-opentype'),
        url('uni05_53-webfont.woff') format('woff'),
        url('uni05_53-webfont.ttf') format('truetype'),
        url('uni05_53-webfont.svg#uni05_53Regular') format('svg');
    font-style: normal;
    font-weight: 400;

}


I've tried adding "line-height: 50%;" to the font face's, however, that doesn't seem to make any difference. Does anyone have any ideas/advice?

Thank you,
Tom
B
3
Posts: 9
Reputation: 318

Post » Thu Jul 05, 2012 12:48 pm

This isn't currently supported in the Text object (since it draws to a canvas it does not use CSS rules about line height, only the typeface). I'll see if I can add something for the next build.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,610

Post » Thu Jul 05, 2012 12:55 pm

ahh no problem. Thanks for getting back to me Ashley.

Cheers,
Tom
B
3
Posts: 9
Reputation: 318


Return to How do I....?

Who is online

Users browsing this forum: Vegamon007, Yahoo [Bot] and 23 guests