User:Mrocza61980

From Terraria Wiki
Jump to navigation Jump to search

This is a duplicate account of UserProfile:Mrocza. I was unable to log in to that one.

Handling the font

The wiki will not allow uploading a file with an embedded font. Reports "Found unsafe CSS in the style element of uploaded SVG file."

The file in question is not unsafe and can be hosted on other services without any problems.

I figured maybe I could work around that problem with an SVG font but apparently, Safari is the only browser to still support the now deprecated <font-face> element. Everyone else switched to web fonts.

So the way to go is to use the font converted to individual paths in <defs> and then building text with <use> elements. That allows the font to be displayed correctly and doesn't inflate the file size as much as a straight text to path conversion would.

Rendering

The <image> element with image-rendering="optimizeSpeed" is not drawn with crisp edges in chrome. That does seem to work in Mozilla so the reference is real nice there with actual infinite resolution. You can zoom in pretty much as far as the browser will let you and there are no blurry bits to scare you.

Turns out in chromium I can still force crisp edges by adding CSS style: style="image-rendering:pixelated"

Stuff to add to the refference

Grate (closed).png
Closed Grate is not really needed but it might be a good idea to shift the grate to the active blocks section.
I'm not sure if there are any other blocks I forgot to include. Seems unlikely.

Minecraft wiki sucks

They don't allow me to play with SVGs. To be removed: File:Dirt Block 3D.svg