Recent

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

mosquito

  • New Member
  • *
  • Posts: 26
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: 3687
    • 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