whoami

Lucas Jenß

cat /etc/motd

The Coding Journal ツ — Notes taken on an epic coding journey. Technical solutions, debugging notes, and practical guides from the trenches of software development.

Close-up of white dominoes with black dots standing on green felt surface, shallow depth of field, focused mood

ls -la ~/languages/

total 8
drwxr-xr-x
▶ PHP
▶ Ruby
▶ Scala
▶ C#
▶ JavaScript
▶ Objective-C
▶ Shell Scripting

ls -la ~/toolchain/

total 7
drwxr-xr-x
▶ Typo3
▶ Akka
▶ Capistrano
▶ Git
▶ MAMP
▶ Adobe Illustrator
▶ NSTrackingArea (Cocoa)

uname -a

platforms
drwxr-xr-x
▶ Mac OS X
▶ Unix

Optimising SVG Text Rendering In Illustrator For Web Accessibility

SVG artwork often begins in Illustrator, where typography can be positioned precisely and styled consistently with brand guidelines. Once that artwork reaches a website, however, the browser interprets it as markup rather than as a static design. Font loading, text selection, zoom behaviour, assistive technology, and responsive layouts all become part of the result.

Optimising SVG text rendering in Illustrator for web accessibility means treating the file as both a visual asset and a small document. The objective is not simply sharper lettering. It is readable, searchable, scalable text with a meaningful structure and a reliable fallback when the intended typeface is unavailable.

This matters for Australian organisations working under the Disability Discrimination Act 1992 and aiming to meet WCAG expectations. A council website in Melbourne, a retail campaign serving Sydney customers, or a public information page used on mobile connections in regional Queensland all needs more than attractive vector artwork.

SVG text approach Visual control Accessibility potential Best use
Live SVG text High, with editable characters Strong when labelled and structured Headings, labels and short interface content
Outlined text Exact appearance Poor unless an accessible text alternative is supplied Logos and decorative display lettering
HTML text over SVG Flexible and responsive Excellent with semantic markup Core content and interactive interfaces
Rasterised text Fixed appearance Very limited Avoid for meaningful words

Why SVG Text Needs Care

Illustrator can preserve text as live SVG elements, but its export settings may produce complex groups, presentation attributes, clipping paths, and positioning values. A browser can display the result correctly while a screen reader encounters an unhelpful sequence of shapes or no usable text at all.

Outlined lettering creates a different problem. Converting a heading to paths prevents font substitution and protects the exact design, but each character becomes geometry. Users cannot select or search the words, browser zoom may expose uneven edges, and assistive technologies have no meaningful characters to announce.

The practical distinction is content versus decoration. A wordmark, decorative flourish, or illustrated label can be converted to outlines when an equivalent accessible name exists elsewhere. Instructions, prices, navigation labels, chart annotations, and calls to action should remain text or be reproduced in semantic HTML.

Choose The Right Text Strategy

Keep short, meaningful SVG strings as live <text> elements whenever the words carry information. Assign a clear font-family, a usable font-size, and sufficient contrast. Avoid relying on a visually similar substitute that changes the width enough to cause clipping or overlap.

For major headings and paragraphs, HTML is usually the stronger option. Place the SVG behind or beside semantic content, then use CSS for layout and responsive sizing. This approach gives keyboard users, screen readers, translation tools, and search engines a normal document to process while preserving Illustrator artwork as a supporting visual layer.

A useful workflow separates brand precision from readable content. Keep a logo as an outlined asset with an accessible label, but place the organisation name in nearby HTML when it functions as a heading or link. Teams that document these decisions alongside code, such as through accessibility engineering notes, can reduce uncertainty when designs move between Illustrator, a CMS, and production templates.

Control Illustrator Export Settings

Before exporting, remove hidden objects, duplicate text layers, unused swatches, and clipping masks that do not contribute to the final artwork. Give important layers descriptive names, although layer names alone do not make an SVG accessible. They are useful for developers inspecting the source and for designers maintaining a clean handover.

Select live text rather than converting everything to outlines. In Illustrator’s SVG export options, test whether the chosen styling method produces readable CSS and predictable markup. Inline styles can be convenient for a single asset, while presentation attributes may be easier to override. The best choice depends on the site’s build system, but unnecessary generated complexity should be reduced.

Set a viewBox that matches the intended artwork and avoid hard-coded dimensions that force a small canvas on narrow screens. A responsive SVG usually needs width: 100%, a sensible maximum width, and preserved aspect ratio. Check that text does not depend on a transform that becomes confusing when the parent element scales.

Build An Accessible SVG Structure

An inline SVG can include a <title> and <desc> element, connected with aria-labelledby. The title should identify the image briefly, while the description can explain a meaningful diagram or data visualisation. If the SVG is purely decorative and equivalent information is already present in HTML, use aria-hidden="true" and prevent duplicate announcements.

For an external SVG loaded through an <img> element, provide useful alternative text through the image’s alt attribute. Do not repeat a long description in both the SVG and the surrounding page. For an icon inside a button, the button needs an accessible name; the icon itself should generally be hidden from the accessibility tree.

Text inside SVG must also have enough contrast and a readable size. WCAG contrast requirements apply to meaningful text in vector artwork just as they apply to HTML. A pale grey label that looks acceptable on a calibrated monitor in Adelaide may become difficult to read on a bright phone screen in Brisbane.

Handle Fonts And Responsive Rendering

Web fonts introduce a risk known as layout shift. The SVG may initially render with a fallback font, then change width when the intended font arrives. This can move labels, crop words, or cause text to collide with nearby shapes. Use a reliable fallback stack and test the asset while the web font is blocked or delayed.

Embedding fonts inside an SVG can increase file size and introduce licensing concerns. Referencing a site-hosted font may be more maintainable, but the SVG must be tested when opened independently and when inserted inline. A font that works in the design application may not be available to a browser, particularly on older Android devices or restricted corporate networks.

Australian users often browse on mobile during commutes, at outdoor events, or on inconsistent regional connections. Design for pinch zoom, text enlargement, and landscape orientation rather than assuming a desktop viewport. A label should remain legible at 200% zoom, and important information should not disappear when the SVG is displayed in a compact card.

Keep Meaning Separate From Geometry

An SVG chart can use text labels for axes and categories, yet visual positioning alone does not explain relationships to assistive technology. Include a concise summary in HTML or provide a data table for complex charts. This gives users a way to understand the information without interpreting every coordinate in the vector file.

Do not use text as a substitute for interface semantics. An SVG word that looks like “Download” is not automatically a link, and an outlined arrow is not automatically a button. Put interaction in HTML controls, give those controls visible focus styles, and use the SVG for the icon or illustration.

The same principle helps content teams in Australia’s local government and health sectors, where public information may need to support screen readers, translation, printing, and high-contrast settings. A visually impressive campaign asset can still fail its audience if its key message exists only as paths.

Test Across Browsers And Assistive Technology

Inspect the exported source in a browser’s developer tools. Confirm that live text is present, that the viewBox scales correctly, and that no clipping path hides characters at a different width. Test Chromium, Firefox, and Safari because font metrics and SVG accessibility support can vary.

Use keyboard navigation, browser zoom, a screen reader, and a contrast analyser. VoiceOver on macOS and iOS is particularly relevant for Apple-heavy audiences in Sydney and Melbourne, while TalkBack provides a useful Android check. Test with JavaScript and web fonts temporarily disabled to reveal whether the essential message survives a partial failure.

Automated checks are valuable for repeated exports. A CI pipeline can flag missing alternative text, invalid SVG markup, oversized files, or accidental outline conversion. Teams already automating code quality can apply the same discipline to design assets; for example, a Ruby formatting pipeline demonstrates how repeatable checks can prevent small errors from reaching production.

Practical Checks For A Clean Export

A short pre-release review catches many problems before an SVG enters a CMS or design system. Record the intended role of each asset so a developer knows whether it is informative, interactive, or decorative.

  • Keep meaningful words as live text where possible.
  • Provide a concise accessible name for informative artwork.
  • Check contrast, zoom, focus, and responsive scaling.
  • Confirm that fallback fonts do not clip or overlap labels.

A second review should happen in the actual page rather than only in Illustrator. An asset may behave differently when it inherits CSS, sits inside a flex container, or is rendered beside translated content.

  • Inspect the SVG at narrow and wide breakpoints.
  • Test Safari, Firefox, Chromium, VoiceOver, and TalkBack.
  • Compare the web font and fallback-font versions.
  • Remove duplicate announcements from nearby HTML.

A strong production workflow preserves the designer’s intent without making the browser guess what the image means. Keep the source file tidy, export a controlled SVG, add semantic context in the page, and test the final experience under realistic Australian network, device, and accessibility conditions. Apply these checks to the next Illustrator asset before publishing it, and the result will be clearer for every visitor, regardless of how they access the page.


cat ~/interests.json

KeyValue
editorTerminal-first workflow
osMac OS X / Unix
vcsGit, distributed version control
deployCapistrano, cron automation
graphicsSVG, Adobe Illustrator troubleshooting
networkingIP validation, SSH, VPN

git log --oneline --reverse

2013-10-30

Solving SVG import issues in Adobe Illustrator CS6 and CC

When importing an SVG into Illustrator, the operation fails with an unknown error [CANT]. A workaround for this Adobe-side bug.

2013

Solving NDK build issues on OS X

Troubleshooting native development kit compilation problems on Mac OS X.

2013

Programmatically adding PHP generated TypoScript to the backend configuration

Integrating dynamically generated TypoScript into Typo3 backend setups using PHP.

2013

ArgumentError: Could not parse PKey: no start line

Debugging an SSH key parsing error encountered during deployment.

2011-08-04

Validating IP-Addresses in PHP

Using PHP filter functions with flags like FILTER_FLAG_IPV4 and FILTER_FLAG_IPV6, and understanding how filter_var handles reserved IP addresses.

2011-07-09

Cocoa: Using NSTrackingArea

A short tutorial on using Cocoa's NSTrackingArea to capture mouseEntered and mouseExited events.


cat ~/contact.txt

github: github.com/x3ro
stackoverflow: x3ro
coderwall: coderwall.com/x3ro
twitter: @x3rames