Sha256: 5c0b3917b472f1ce4754409f83f5c0b33722fb71b2b8c85c9204f05c5b51a573

Contents?: true

Size: 589 Bytes

Versions: 3

Compression:

Stored size: 589 Bytes

Contents

# require 'squib'
require_relative '../../lib/squib'

# Per issue #334, sometimes Pango doesn't find the font file you want
# Pango requires fonts to be installed on the system, but sometimes the
# font name is not obvious. e.g. "Foo Regular" might be actually named "Foo"
# Use these methods to debug this problem

# Usually you would just run this method to see what fonts are installed
# This is commented out to make our test cases
# Squib.print_system_fonts

Squib.system_fonts.include? 'Open Sans' # checks if we have Open Sans installed
# Note: does nothing since it's just a check

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
squib-0.19.0 samples/system_font_debug/_list_fonts.rb
squib-0.19.0b samples/system_font_debug/_list_fonts.rb
squib-0.19.0a samples/system_font_debug/_list_fonts.rb