Code: Select all
! $("<style>@font-face { font-family: 'Noto Color Emoji' ; src: url(https://raw.githack.com/googlefonts/noto-emoji/main/fonts/NotoColorEmoji.ttf) } </style>").appendTo("head");
LoadFont(0, "Arial", 30)
LoadFont(1, "Noto Color Emoji", 30)
If OpenWindow(0, 0, 0, 530, 110, "Noto Color Emoji - Example", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
TextGadget(0, 10, 10, 110, 40, "Arial:", #PB_Text_Border | #PB_Text_VerticalCenter)
TextGadget(1, 10, 60, 110, 40, "Noto Color Emoji:", #PB_Text_Border | #PB_Text_VerticalCenter)
TextGadget(2, 130, 10, 390, 40, "🛳🏞️🔮🧭🥝🦌😍", #PB_Text_Border)
TextGadget(3, 130, 60, 390, 40, "🛳🏞️🔮🧭🥝🦌😍", #PB_Text_Border)
EndIf
SetGadgetFont(2, FontID(0))
SetGadgetFont(3, FontID(1))