Wikipedia:Graphics Lab/Resources/SVG FAQ

This FAQ was designed to help graphists deal with SVG problems. See also: Wikipedia:Graphic Lab/Resources/Image FAQ.

This FAQ was designed to help graphists deal with SVG problems. See also: Wikipedia:Graphic Lab/Resources/Image FAQ.

This FAQ is currently under construction. Anyone with SVG skills may help.

Note that the procedures in this FAQ refer to Inkscape. You can download it at here

Progress

Text

Why is the text in my SVG replaced with black boxes?

If you’ve made diagrams or SVGs with text, you’ve probably encountered issues with the text turning into black rectangles when uploading to Wikimedia. These aren’t problems with the SVGs. They are rendering issues that Wikimedia is unable to fix, thus the text elements turn black. Black boxes are caused by the modification of text after it has been stretched or skewed. To prevent this, use the font tool as an alternative way of enlarging the text. To fix text that has already been stretched or skewed, select Convert to text under the Text menu. Alternatively, you can convert the text element to path by selecting Object to path under the Path menu.

Why does the text in my SVG render at a different font than what I want it?

You will probably want to get fancy with your SVG, but Wikimedia will only render specific fonts. These fonts are called web-safe fonts, which include Times and Arial. If you choose a desired font that is not web-safe, the text will render in the default font—Arial. To allow Wikimedia to run a non-safe font, you will need to convert the text element to a path by selecting Object to path under the Path menu. Please note that converting text to path is an unwise decision, as it boosts the file size and it makes it difficult for graphists to modify the text. Consider using a web-safe font listed in this article.

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.