Webfonts and Browser Detection

Get help using Construct 2

Post » Fri Jun 19, 2015 6:30 am

Firefox displays webfonts at a slightly different vertical alignment compared to Chrome (a couple of pixels higher).

I can realign them if I could reliably detect the browser, but all Browser expressions can't really be used. Here's a summary below.

Browser
Browser.Vendor
Browser.Name
Browser.Product

Firefox
Empty
Netscape
Gecko

Chrome
Google Inc.
Netscape
Gecko

Internet Explorer
Empty
Netscape
Gecko

I also tried Browser.UserAgent, but a description comes out that features multiple different browsers. How do you detect browsers reliably?
B
7
S
2
G
1
Posts: 37
Reputation: 1,278

Post » Fri Jun 19, 2015 7:14 am

Detecting the browser name by Construct 2's expressions isn't effective yet. For now you can ask for help for using custom Javascript, instead. Good luck.
Liked something I say?
Tip. My Bitcoin address: 1PLaeKmXQ8vEdGGJqXMq3KyB8hxeddxeSv
B
26
S
8
G
4
Posts: 336
Reputation: 4,050

Post » Fri Jun 19, 2015 10:39 am

Thanks, will give it a go.
B
7
S
2
G
1
Posts: 37
Reputation: 1,278


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 8 guests