Glow text exploration #1075

Closed
opened 2026-01-30 22:15:51 +00:00 by claunia · 5 comments
Owner

Originally created by @miniksa on GitHub (May 14, 2019).

OK. The glow text example I gave that's currently inside the code (but unused) isn't great.

I've received feedback from @MilesMSCohen that it has a fundamental flaw:

  • It loses all font hinting which makes it hard to read, especially at small sizes.

Ouch. I want hinting. The recommended alternative is to render the text to a command list and use the command list as input to an effect that can cause a glow.

@DHowett-MSFT already had a sample lump of code to do something like this that he was playing around with a few weeks ago because glow text is cool. It's around here somewhere.

Also, I got the warning from @MilesMSCohen that this might have worse performance, but we'd have to decide if that's worth it.

Originally created by @miniksa on GitHub (May 14, 2019). OK. The glow text example I gave that's currently inside the code (but unused) isn't great. I've received feedback from @MilesMSCohen that it has a fundamental flaw: - It loses all font hinting which makes it hard to read, especially at small sizes. Ouch. I want hinting. The recommended alternative is to render the text to a command list and use the command list as input to an effect that can cause a glow. @DHowett-MSFT already had a sample lump of code to do something like this that he was playing around with a few weeks ago because glow text is cool. It's around here somewhere. Also, I got the warning from @MilesMSCohen that this might have worse performance, but we'd have to decide if that's worth it.
Author
Owner

@miniksa commented on GitHub (May 14, 2019):

This may be a duplicate of #621. I'm just putting all my internal notes/bugs into GitHub.

@miniksa commented on GitHub (May 14, 2019): This may be a duplicate of #621. I'm just putting all my internal notes/bugs into GitHub.
Author
Owner

@MilesMSCohen commented on GitHub (May 14, 2019):

Cool, let me know how it turns out.

-Miles

From: Michael Niksa notifications@github.com
Sent: Tuesday, May 14, 2019 9:56 AM
To: microsoft/Terminal Terminal@noreply.github.com
Cc: Miles Cohen Miles.Cohen@microsoft.com; Mention mention@noreply.github.com
Subject: [microsoft/Terminal] Glow text exploration (#781)

OK. The glow text example I gave that's currently inside the code (but unused) isn't great.

I've received feedback from @MilesMSCohenhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMilesMSCohen&data=01%7C01%7CMiles.Cohen%40microsoft.com%7Cf642b9b679dd4bd3058308d6d88d143d%7C72f988bf86f141af91ab2d7cd011db47%7C1&sdata=8FvjCLBuTT2gxKWS%2BwNO11iGPYEGTfXFNWa4se6hRx4%3D&reserved=0 that it has a fundamental flaw:

  • It loses all font hinting which makes it hard to read, especially at small sizes.

Ouch. I want hinting. The recommended alternative is to render the text to a command list and use the command list as input to an effect that can cause a glow.

@DHowett-MSFThttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FDHowett-MSFT&data=01%7C01%7CMiles.Cohen%40microsoft.com%7Cf642b9b679dd4bd3058308d6d88d143d%7C72f988bf86f141af91ab2d7cd011db47%7C1&sdata=%2FJm5h%2BzWXhbkQRbfTb2uccLWB9wifBoW3dyWPLruUhw%3D&reserved=0 already had a sample lump of code to do something like this that he was playing around with a few weeks ago because glow text is cool. It's around here somewhere.

Also, I got the warning from @MilesMSCohenhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMilesMSCohen&data=01%7C01%7CMiles.Cohen%40microsoft.com%7Cf642b9b679dd4bd3058308d6d88d143d%7C72f988bf86f141af91ab2d7cd011db47%7C1&sdata=8FvjCLBuTT2gxKWS%2BwNO11iGPYEGTfXFNWa4se6hRx4%3D&reserved=0 that this might have worse performance, but we'd have to decide if that's worth it.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTerminal%2Fissues%2F781%3Femail_source%3Dnotifications%26email_token%3DAJGBLHDF3NFUCPWUV3QUC5DPVLVK7A5CNFSM4HM33EZKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GTXIDFA&data=01%7C01%7CMiles.Cohen%40microsoft.com%7Cf642b9b679dd4bd3058308d6d88d143d%7C72f988bf86f141af91ab2d7cd011db47%7C1&sdata=pfxZ2d6qay%2BT38SJctZ4JuMiVZWp9fjh7osbeWNpxXI%3D&reserved=0, or mute the threadhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJGBLHB52Q3X7L25KP3DQATPVLVK7ANCNFSM4HM33EZA&data=01%7C01%7CMiles.Cohen%40microsoft.com%7Cf642b9b679dd4bd3058308d6d88d143d%7C72f988bf86f141af91ab2d7cd011db47%7C1&sdata=XjHMX%2FpgH3dGtLkH1j%2BSH48TJEWHai847CpV5hBIvl4%3D&reserved=0.

@MilesMSCohen commented on GitHub (May 14, 2019): Cool, let me know how it turns out. -Miles From: Michael Niksa <notifications@github.com> Sent: Tuesday, May 14, 2019 9:56 AM To: microsoft/Terminal <Terminal@noreply.github.com> Cc: Miles Cohen <Miles.Cohen@microsoft.com>; Mention <mention@noreply.github.com> Subject: [microsoft/Terminal] Glow text exploration (#781) OK. The glow text example I gave that's currently inside the code (but unused) isn't great. I've received feedback from @MilesMSCohen<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMilesMSCohen&data=01%7C01%7CMiles.Cohen%40microsoft.com%7Cf642b9b679dd4bd3058308d6d88d143d%7C72f988bf86f141af91ab2d7cd011db47%7C1&sdata=8FvjCLBuTT2gxKWS%2BwNO11iGPYEGTfXFNWa4se6hRx4%3D&reserved=0> that it has a fundamental flaw: * It loses all font hinting which makes it hard to read, especially at small sizes. Ouch. I want hinting. The recommended alternative is to render the text to a command list and use the command list as input to an effect that can cause a glow. @DHowett-MSFT<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FDHowett-MSFT&data=01%7C01%7CMiles.Cohen%40microsoft.com%7Cf642b9b679dd4bd3058308d6d88d143d%7C72f988bf86f141af91ab2d7cd011db47%7C1&sdata=%2FJm5h%2BzWXhbkQRbfTb2uccLWB9wifBoW3dyWPLruUhw%3D&reserved=0> already had a sample lump of code to do something like this that he was playing around with a few weeks ago because glow text is cool. It's around here somewhere. Also, I got the warning from @MilesMSCohen<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMilesMSCohen&data=01%7C01%7CMiles.Cohen%40microsoft.com%7Cf642b9b679dd4bd3058308d6d88d143d%7C72f988bf86f141af91ab2d7cd011db47%7C1&sdata=8FvjCLBuTT2gxKWS%2BwNO11iGPYEGTfXFNWa4se6hRx4%3D&reserved=0> that this might have worse performance, but we'd have to decide if that's worth it. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTerminal%2Fissues%2F781%3Femail_source%3Dnotifications%26email_token%3DAJGBLHDF3NFUCPWUV3QUC5DPVLVK7A5CNFSM4HM33EZKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GTXIDFA&data=01%7C01%7CMiles.Cohen%40microsoft.com%7Cf642b9b679dd4bd3058308d6d88d143d%7C72f988bf86f141af91ab2d7cd011db47%7C1&sdata=pfxZ2d6qay%2BT38SJctZ4JuMiVZWp9fjh7osbeWNpxXI%3D&reserved=0>, or mute the thread<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJGBLHB52Q3X7L25KP3DQATPVLVK7ANCNFSM4HM33EZA&data=01%7C01%7CMiles.Cohen%40microsoft.com%7Cf642b9b679dd4bd3058308d6d88d143d%7C72f988bf86f141af91ab2d7cd011db47%7C1&sdata=XjHMX%2FpgH3dGtLkH1j%2BSH48TJEWHai847CpV5hBIvl4%3D&reserved=0>.
Author
Owner

@weswigham commented on GitHub (Oct 24, 2019):

I'd love for the ability to declare glow parameters for text of specific colors (rather than for all text or none), mostly just to complete a synthwave terminal theme.

@weswigham commented on GitHub (Oct 24, 2019): I'd love for the ability to declare glow parameters for text of specific colors (rather than for all text or none), mostly just to complete a synthwave terminal theme.
Author
Owner

@WSLUser commented on GitHub (Feb 11, 2020):

https://github.com/microsoft/terminal/pull/3468 added glow effects. Not sure if your original code was replaced in the process (but most likely). But this issue may be fixed already.

@WSLUser commented on GitHub (Feb 11, 2020): https://github.com/microsoft/terminal/pull/3468 added glow effects. Not sure if your original code was replaced in the process (but most likely). But this issue may be fixed already.
Author
Owner

@zadjii-msft commented on GitHub (Nov 22, 2021):

You know, with custom shaders (#7013), I don't think we really need to re-explore this. Let's just let folks do their own shader thing, that's been pretty dang flexible so far.

@zadjii-msft commented on GitHub (Nov 22, 2021): You know, with custom shaders (#7013), I don't think we really need to re-explore this. Let's just let folks do their own shader thing, that's been pretty dang flexible so far.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1075