andymeneely / squib

A Ruby DSL for prototyping card games.

Home Page:http://squib.rocks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to load variants with fonts

pie75 opened this issue · comments

commented

When attempting to load fonts like Arial, using variants which they includes, such as small-caps and all-small caps, pango issues a warning that it could not load the font. Also tested with Noto, which includes small-caps variants.

To Reproduce
add font:'Arial small-caps' to a text Object's input, then run the deck.
e.g.

require 'squib'

Squib::Deck.new() do
	background color: 'white'
	text str: 'Small Caps', font:'Arial small-caps'
	save_png
end

Expected behavior
I expect squib to render the Arial font with small capitals when it is requested to.

Screenshots
image

Environment

  • OS: Windows 10

  • Ruby version 3.2.2

  • I have updated Squib to the latest version.

  • I have checked the Squib issues backlog for something similar

  • I have attempted to make a minimal script demonstrating my problem

  • I have reviewed the Squib Docs and there's still a problem