How do I set webfont for TextBox?

Get help using Construct 2

Post » Thu Jul 04, 2013 10:01 am

B
7
Posts: 3
Reputation: 412

Post » Thu Jul 04, 2013 1:03 pm

I know only one way - download and install this plugin: scirra.com/forum/plugin-call-javascript_topic45866.html, then write script like this:

(function autorun() {
$("head").append("<link rel='stylesheet' type='text/css' href='https://dl.dropboxusercontent.com/u/7329218/myStyle.css' />");
})();

CSS source:

@font-face {
font-family: 'Press Start 2P';
font-style: normal;
font-weight: 400;
src: local('Press Start 2P'), local('PressStart2P-Regular'), url(http://themes.googleusercontent.com/static/fonts/pressstart2p/v1/8Lg6LX8-ntOHUQnvQ0E7o_2ShpZkVnhIV7pxLwZ7Eps.woff) format('woff');
}

input {
    font-family: 'Press Start 2P';
}
B
7
Posts: 3
Reputation: 412

Post » Thu Jul 04, 2013 1:29 pm

I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Jul 04, 2013 1:48 pm

[QUOTE=LittleStain] https://www.scirra.com/tutorials/237/how-to-use-your-own-web-fonts[/QUOTE]

This tutorials for text objects, not for textbox or buttons!
B
7
Posts: 3
Reputation: 412


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 27 guests