Adjusting 'Text' Object Line Height?

0 favourites
  • 3 posts
From the Asset Store
solution for games like "fruit ninja" and drawing applications
  • 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-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-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

  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • ahh no problem. Thanks for getting back to me Ashley.

    Cheers,

    Tom

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)