Wednesday, 30 April 2014

Google fonts not displaying on HTML5 canvas

I have been developing a web page and needed to use google fonts on canvas with elements added dynamically via js (jquery and kineticjs).

But they weren't logging as the browser gets the .woff files last no matter what you do.

There are a lot of suggestions how to organize your css files, when to include them and so on, none of these tackled the problem for me.
Working solution was actually simple.

Make sure that you execute all canvas related js code after the page has stopped loading, so either enclose it in:
window.onload=function(){
YOUR CODE HERE
};
or for jquery:
$(window).load(function() {
YOUR CODE HERE
});

Monday, 7 April 2014

World of Warcraft under SUSE 13.1

Do not even try VirtualBox. Not worth the hassle.

Install wine.
Download and install the executable from battle.net.
If you have 64bit system you will most likely see the game crash with Error #132 (0x85100084) Fatal exception!

If that is the case, before any weird changes in config files try simply making sure that you run the 32it executable.

And no, for some reason flag -noautolaunch64 isn't enough.

open console and type:

cd ~
cd ".wine/drive_c/Program Files (x86)/World of Warcraft/"
mv Wow-64.exe Wow-64.exe.bak
wine Wow.exe

If you can play, then you may want to change the link on your screen if you have it
Right click on the icon.
open with Kate or any other editor and change Exec line to:

Exec=/usr/bin/wine "/home/[your user]/.wine/drive_c/Program Files (x86)/World of Warcraft/Wow.exe"

Happy farming :)

Of course this may not work for you because error #132 means memory problems of any type... But there are a lot of other helpers in the internet if it doesn't help you.
Real Time Web Analytics