[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to display an email subject with Apple emojis?


On 12/27/24 11:19, Charlie Ogier wrote:
Try this: -

Public Sub Form_Open()

   TextBox1.Font = Font["Ubuntu,150"]
   TextBox1.text = UnBase64("8J+OhPCfjrg=")

End

Charlie

I tried it without changing the TextBox font, and it worked no problem with Qt5/6. Interestingly though, trying it with a Label did not work fully. I got a tree but no guitar.

This code:
[code]
  Print "TextBox font: "; TextBox1.Font.ToString()
  TextBox1.Text = UnBase64("8J+OhPCfjrg=")
  Print "Label font: "; Label1.Font.ToString()
  Label1.Text = UnBase64("8J+OhPCfjrg=")
[/code]

Produced:
[output]
TextBox font: Noto Sans,10
Label font: Noto Sans,10
load glyph failed err=24 face=0x55e183c28e30, glyph=375
load glyph failed err=24 face=0x55e183c28e30, glyph=422
load glyph failed err=24 face=0x55e183c28e30, glyph=375
load glyph failed err=24 face=0x55e183c28e30, glyph=422
load glyph failed err=24 face=0x55e183c28e30, glyph=422
[/output]


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


Follow-Ups:
Re: How to display an email subject with Apple emojis?Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
References:
How to display an email subject with Apple emojis?Claus Dietrich <claus.dietrich@xxxxxxxxxx>
Re: How to display an email subject with Apple emojis?Charlie Ogier <charlie@xxxxxxxxxx>