mame/quine-relay · error · RuntimeError

Font `#{ font }' is not available; to skip this check, set S

Error message

Font `#{ font }' is not available; to skip this check, set SKIP_FONT_CHECK=1

What it means

Error "Font `#{ font }' is not available; to skip this check, set SKIP_FONT_CHECK=1" thrown in mame/quine-relay.

Source

Thrown at src/langs.png.gen.rb:11

require_relative "code-gen"
require "cairo"
require "rsvg2"

# You need to install the two fonts: Raleway and UnifrakturCook.
# * https://www.google.com/fonts/specimen/Raleway
# * https://www.google.com/fonts/specimen/UnifrakturCook

%w(Raleway UnifrakturCook).each do |font|
  if `fc-list #{ font }`.strip.empty? && !ENV["SKIP_FONT_CHECK"]
    raise "Font `#{ font }' is not available; to skip this check, set SKIP_FONT_CHECK=1"
  end
end

W = H = 750
surface = Cairo::ImageSurface.new(W, H)
ctx = Cairo::Context.new(surface)

ctx.line_width = 1
ctx.set_source_rgb(1, 1, 1)
ctx.rectangle(0, 0, W, H)
ctx.fill
ctx.set_source_rgb(0, 0, 0)

ctx.translate(W / 2, H / 2)
ctx.select_font_face("Raleway")
ctx.antialias = Cairo::Antialias::GRAY

BaseFontSize = 13

View on GitHub (pinned to c2aa5098d3)

When it happens

Trigger: Thrown at src/langs.png.gen.rb:11 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of mame/quine-relay@c2aa5098d3 (2026-08-21). Data as JSON: /api/errors/59406ad0d0c5ce22. Report an issue: GitHub.