We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Last letter of text cropped when using bold italic google font Poppins
Steps to reproduce the behaviour:
fyne bundle Poppins-BoldItalic.ttf >> bundled.go
import ( "image/color" "fyne.io/fyne/v2" "fyne.io/fyne/v2/app" "fyne.io/fyne/v2/canvas" "fyne.io/fyne/v2/container" "fyne.io/fyne/v2/theme" ) type myTheme struct{} func (m myTheme) Color(name fyne.ThemeColorName, variant fyne.ThemeVariant) color.Color { return theme.DefaultTheme().Color(name, variant) } func (m myTheme) Font(style fyne.TextStyle) fyne.Resource { return resourceStaticFontsPoppinsBoldItalicTtf } func (m myTheme) Icon(name fyne.ThemeIconName) fyne.Resource { return theme.DefaultTheme().Icon(name) } func (m myTheme) Size(name fyne.ThemeSizeName) float32 { return theme.DefaultTheme().Size(name) } func main() { myApp := app.New() w := myApp.NewWindow("Text") text := canvas.NewText("DDDDdd", color.White) text.TextSize = 42 var _ fyne.Theme = (*myTheme)(nil) myApp.Settings().SetTheme(&myTheme{}) vBox := container.NewVBox( container.NewCenter(text), ) w.SetContent(vBox) w.Resize(fyne.NewSize(240, 360)) w.ShowAndRun() }
The text was updated successfully, but these errors were encountered:
It seems to be possible to cause this to happen without the custom font...
package main import ( "image/color" "fyne.io/fyne/v2" "fyne.io/fyne/v2/app" "fyne.io/fyne/v2/canvas" "fyne.io/fyne/v2/container" ) func main() { myApp := app.New() w := myApp.NewWindow("Text") text := canvas.NewText("DDDDdd", color.White) text.TextStyle.Bold = true text.TextStyle.Italic = true text.TextSize = 42 vBox := container.NewVBox( container.NewCenter(text), ) w.SetContent(vBox) w.Resize(fyne.NewSize(240, 360)) w.ShowAndRun() }
Sorry, something went wrong.
So it can, same behaviour on Windows
Fix issue where italic bold fonts could cut off on the end of string
04cb482
Fixes fyne-io#3001
This is now on develop branch for testing prior to v2.2.0 release
develop
v2.2.0
andydotxyz
No branches or pull requests
Describe the bug:
Last letter of text cropped when using bold italic google font Poppins
To Reproduce:
Steps to reproduce the behaviour:
fyne bundle Poppins-BoldItalic.ttf >> bundled.go
Screenshots:
Example code:
Device (please complete the following information):
The text was updated successfully, but these errors were encountered: