Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问下这个任务栏显示网速的彩色emoji图标是怎么实现的 #1782

Open
codexss opened this issue Mar 1, 2024 · 3 comments
Open

Comments

@codexss
Copy link

codexss commented Mar 1, 2024

image

这个是我的效果,试过了修改字体还是只能显示白色的
image

@ysc3839
Copy link

ysc3839 commented Mar 1, 2024

实测给 DrawTextLayout 加上 D2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT 就可以了。
ysc3839@717d3af

自动编译的文件可以在这里下载

@BombaxCeiba

@codexss
Copy link
Author

codexss commented Mar 1, 2024

备份一下文件,避免时间长了到期。
x86_20240301_162619_TrafficMonitor.zip
x64_20240301_162625_TrafficMonitor.zip

@codexss
Copy link
Author

codexss commented Mar 7, 2024

启用Direct2D之后 GPU占用比较高……目前用的MacType这个配置文件搭配服务模式可以针对单进程启用

在mactype程序ini目录下新建colorfont.ini写入以下内容然后使用macwiz服务模式加载这个配置文件即可

[General]
Name=ColorFont
UseInclude=1

[IncludeModule]
TrafficMonitor.exe

[Include]
Segoe UI Emoji

[Experimental]
ColorFont=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants