mirror of
https://github.com/snowie2000/mactype.git
synced 2025-01-07 03:07:01 +08:00
Page:
Programmatic controlling
Pages
ArmBreaker
BoldWeight
CLI Controlling
ClearTypeLevel
ClipBoxFix
ColorFont
Contrast
DirectWrite section
DirectWrite vs GDI
DirectWrite
Enable registry mode manually
Exclude Section
ExcludeModule
FontLoader
FreeType settings for AntiAliasMode=4 with HintingMode=3
GammaValue
Google Chrome
HintSmallFont
HintingMode
Home
HookChildProcesses
Include section
IncludeModule
InvertColor
ItalicSlant
Java apps
MacType version numbers
MaxBitmap
MaxHeight
Mozilla Firefox
Name
NormalWeight
Programmatic controlling
RenderWeight
RenderingMode
Secure Boot
Text
The @ grammar
UnloadDll
UseInclude
WPS
1
Programmatic controlling
snowie2000 edited this page 2023-05-31 15:23:05 +08:00
Table of Contents
Works with mactype 2023.5.31 and later
When mactype is running in tray mode (both user mode and admin mode), it can be controlled by posting predefined messages. And it can be easily achieved.
How it works
MacType will expose a top-level messenger window with the classname MacTypeMSGWnd
. Certain controlling messages can be sent to this window to manipulate the action of mactype.
Currently, the following messages are defined:
MacType-SIG-STOP
, stop mactype and exitMacType-SIG-RESTART
, reload the current profile without interruptionMacType-SIG-ENABLE
, enable mactypeMacType-SIG-DISABLE
, disable mactype
Example
bool StopMacType() {
ULONG SigStop = ::RegisterWindowMessage("MacType-SIG-STOP");
HWND MsgWnd = ::FindWindow("MacTypeMSGWnd", NULL);
if (SigStop && MsgWnd) {
::PostMessage(MsgWnd, SigStop, 0, 0);
return true;
}
return false;
}
MacType Wiki
Home
Known software conflicts + workarounds
FAQs
MacType options
General Section
- Name
- HookChildProcesses
- HintingMode
- BoldWeight
- DirectWrite
- HintSmallFont
- MaxBitmap
- NormalWeight
- ItalicSlant
- GammaMode
- GammaValue
- Contrast
- RenderWeight
- BolderMode
- FontLoader
- FontLink
- FontSubstitutes
- MaxHeight
- LcdFilter
- AntiAliasMode
- UseMapping
- TextTuning
- TextTuningR
- TextTuningG
- TextTuningB
- LoadOnDemand
- CacheMaxFaces
- CacheMaxSizes
- CacheMaxBytes
- EnableKerning
- Shadow
- UseInclude