Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load variants with fonts #379

Open
4 tasks done
pie75 opened this issue Jul 7, 2023 · 0 comments
Open
4 tasks done

Unable to load variants with fonts #379

pie75 opened this issue Jul 7, 2023 · 0 comments
Labels

Comments

@pie75
Copy link

pie75 commented Jul 7, 2023

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

@pie75 pie75 added the bug label Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant