Recent

Author Topic: BGRABitmap - Paragraph with various colors  (Read 948 times)

mosquito

  • Full Member
  • ***
  • Posts: 141
BGRABitmap - Paragraph with various colors
« on: February 24, 2021, 06:35:47 pm »
How can I create text in BGRABitmap that contains words in different colors?

circular

  • Hero Member
  • *****
  • Posts: 4217
    • Personal webpage
Re: BGRABitmap - Paragraph with various colors
« Reply #1 on: February 24, 2021, 06:55:20 pm »
That’s not implemented yet as such. Though you can use TBGRATextEffect to specify an array of colors for each glyph (of a text without word break).

I thought of adding it to TBidiTextLayout but did not have much request on it. The idea would be to subdivide parts according to their style/color and render them separately.
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018