squib icon indicating copy to clipboard operation
squib copied to clipboard

Unable to load variants with fonts

Open pie75 opened this issue 1 year ago • 0 comments

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

  • [x] I have updated Squib to the latest version.

  • [x] I have checked the Squib issues backlog for something similar

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

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

pie75 avatar Jul 07 '23 17:07 pie75