FLTK logo

Re: [fltk.general] font property manipulation in FLTK label text

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: font property manipulation in FLTK label text Greg Ercolano Oct 10, 2020  
 
On 2020-10-10 11:41, Greg Ercolano wrote:
On 2020-10-10 10:01, Paul Hahn wrote:
Has anyone created a custom label type [supporting, for example, markdown syntax?]
	Might be overkill, but you could (ab)use Fl_Help_View for text labels
	so that you can use HTML tags to control this.

	Here I'm showing setting the attributes individually, but you could derive
	a class from HtmlLabel that does this stuff so it's easier to use.

        [example code snipped]


   Here's a screenshot for when you compile and run that example (forgot to include it):



--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/4219a789-033a-7014-b276-0f268ad196a5%40seriss.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.