It is currently Mon Sep 16, 2019 9:31 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [PB5.70] Emojis in TextGadget don't accept colours
PostPosted: Fri Mar 22, 2019 10:38 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Mar 10, 2013 3:01 pm
Posts: 636
Location: Portugal
In Ubuntu 16.04 the emoji would become red.

But, on Ubuntu 18.04 it remains black:
Code:
TextGadget(#TEXT_MISSING_CODES,x,y,100-40+10+10+10+10-20-10-6,16,"Missing FLAG_EMOJI_HERE_FORUM_GAVE_ERROR ")
SetGadgetColor(#TEXT_MISSING_CODES,#PB_Gadget_FrontColor,#Red)


EDIT: Copy the flag emoji from: https://pastebin.com/1vBeQZnc


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.70] Emojis in TextGadget don't accept colours
PostPosted: Fri Mar 22, 2019 11:38 am 
Offline
Addict
Addict

Joined: Thu Aug 30, 2007 11:54 pm
Posts: 1038
Location: right here
Quote:
<FLAG> Chequered Flag

A flag with black and white squares shown in a checkerboard pattern, used to signal the start or end of a motor car race.
Are you sure this symbol supports coloring? Just because its red in Ubuntu 16.04 doesn't mean that's right.
Here is a test code (change font and insert flag):
Code:
win = OpenWindow(#PB_Any, 50,100, 800, 600, "..")
AddKeyboardShortcut(win, #PB_Shortcut_Escape, 10)
#TEXT_MISSING_CODES = 0
TextGadget(#TEXT_MISSING_CODES,x,y,100-40+10+10+10+10-20-10-6,16,"Missing <FLAG> FLAG_EMOJI_HERE_FORUM_GAVE_ERROR ")
font = LoadFont(#PB_Any, "monospace", 12)
SetGadgetFont(#TEXT_MISSING_CODES, FontID(font))
SetGadgetColor(#TEXT_MISSING_CODES,#PB_Gadget_FrontColor,#Red)
Repeat
  WaitWindowEvent()
Until Event() = #PB_Event_CloseWindow Or Event() = #PB_Event_Menu


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.70] Emojis in TextGadget don't accept colours
PostPosted: Sat Mar 23, 2019 12:37 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Mar 10, 2013 3:01 pm
Posts: 636
Location: Portugal
#NULL wrote:
Quote:
<FLAG> Chequered Flag

A flag with black and white squares shown in a checkerboard pattern, used to signal the start or end of a motor car race.
Are you sure this symbol supports coloring? Just because its red in Ubuntu 16.04 doesn't mean that's right.
Here is a test code (change font and insert flag):
Code:
win = OpenWindow(#PB_Any, 50,100, 800, 600, "..")
AddKeyboardShortcut(win, #PB_Shortcut_Escape, 10)
#TEXT_MISSING_CODES = 0
TextGadget(#TEXT_MISSING_CODES,x,y,100-40+10+10+10+10-20-10-6,16,"Missing <FLAG> FLAG_EMOJI_HERE_FORUM_GAVE_ERROR ")
font = LoadFont(#PB_Any, "monospace", 12)
SetGadgetFont(#TEXT_MISSING_CODES, FontID(font))
SetGadgetColor(#TEXT_MISSING_CODES,#PB_Gadget_FrontColor,#Red)
Repeat
  WaitWindowEvent()
Until Event() = #PB_Event_CloseWindow Or Event() = #PB_Event_Menu


I am off for the weekend, so I will only be able to test it on Ubuntu next week (on the other computer with the VMs).

However, it is red in Windows 10.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye