冥界3大法王 发表于 2021-11-26 10:45

说说关于调教x64dbg显示字体那些事


论坛上的好多道兄都说Ollydbg的OEM等宽字体已经看习惯了。
但是到了x64dbg的时候却发现压根却找不到这种字体
而且吧,你在Ollydbg资源内部并未能找到该资源的影子
(记得在WinHEX中就夹带了一种字体)
然后也有人会尝试移植系统字体,看看是否情况就变好了呢? 实际情况是真的更难看了。
(这里就不演示当时尝试时的场景再出现了。)
大家只能去找编程时专用的True Type字体来搞成最为接近OD的显示效果
有两种显示效果看起来,还算不错的字体,
一种是:Source Code Pro Medium这个是我在x64dbg相关页面中发现和测试过的一种字体
显示效果,如下图所示:

Source Code Pro Medium
Cascadia Code另外一种叫:Cascadia Code

整体显示效果偏 方、偏数字化效果些
默认字体的配置在x32dbg.ini/x64dbg.ini中

[*]第1种设置方式:通过界面字体设置 或 INI中来配置的方式

你可以直接粘入下面的小节内容:

AbstractTableViewBackgroundColor=#000000
AbstractTableViewHeaderTextColor=#000000
AbstractTableViewSelectionColor=#008080
AbstractTableViewSeparatorColor=#C0C0C0
AbstractTableViewTextColor=#FFFBF0
BreakpointSummaryKeywordColor=#8B671F
BreakpointSummaryParenColor=#FF0000
BreakpointSummaryStringColor=#008000
DisassemblyAddressBackgroundColor=#XXXXXX
DisassemblyAddressColor=#C0C0C0
DisassemblyAutoCommentBackgroundColor=#XXXXXX
DisassemblyAutoCommentColor=#C0C0C0
DisassemblyBackgroundColor=#000000
DisassemblyBookmarkBackgroundColor=#XXXXXX
DisassemblyBookmarkColor=#FF00FF
DisassemblyBreakpointBackgroundColor=#000000
DisassemblyBreakpointColor=#FFFF00
DisassemblyByte00BackgroundColor=#XXXXXX
DisassemblyByte00Color=#C0C0C0
DisassemblyByte7FBackgroundColor=#XXXXXX
DisassemblyByte7FColor=#808000
DisassemblyByteFFBackgroundColor=#XXXXXX
DisassemblyByteFFColor=#C0C0C0
DisassemblyByteIsPrintBackgroundColor=#XXXXXX
DisassemblyByteIsPrintColor=#C0C0C0
DisassemblyBytesBackgroundColor=#XXXXXX
DisassemblyBytesColor=#C0C0C0
DisassemblyCipBackgroundColor=#C0C0C0
DisassemblyCipColor=#000000
DisassemblyCommentBackgroundColor=#XXXXXX
DisassemblyCommentColor=#FFFBF0
DisassemblyConditionalJumpLineFalseColor=#808080
DisassemblyConditionalJumpLineTrueColor=#FF0000
DisassemblyFunctionColor=#FFFBF0
DisassemblyHardwareBreakpointBackgroundColor=#FFFF00
DisassemblyHardwareBreakpointColor=#008000
DisassemblyLabelBackgroundColor=#XXXXXX
DisassemblyLabelColor=#FF0000
DisassemblyLoopColor=#FFFBF0
DisassemblyMnemonicBriefBackgroundColor=#XXXXXX
DisassemblyMnemonicBriefColor=#FFFBF0
DisassemblyModifiedBytesBackgroundColor=#XXXXXX
DisassemblyModifiedBytesColor=#FF0000
DisassemblyRelocationUnderlineColor=#00FF00
DisassemblyRestoredBytesBackgroundColor=#XXXXXX
DisassemblyRestoredBytesColor=#808080
DisassemblySelectedAddressBackgroundColor=#XXXXXX
DisassemblySelectedAddressColor=#C0C0C0
DisassemblySelectionColor=#800080
DisassemblyTracedBackgroundColor=#C0FFC0
DisassemblyUnconditionalJumpLineColor=#FF0000
GraphBackgroundColor=#000000
GraphBreakpointColor=#FF0000
GraphBrfalseColor=#00FFFF
GraphBrtrueColor=#FFFF00
GraphCipColor=#FFFBF0
GraphCurrentShadowColor=#473A3A
GraphDisabledBreakpointColor=#00AA00
GraphIndirectcallShadowColor=#FFFBF0
GraphJmpColor=#FF00FF
GraphNodeBackgroundColor=#XXXXXX
GraphNodeColor=#FFFBF0
GraphRetShadowColor=#FFFBF0
HexDumpAddressBackgroundColor=#XXXXXX
HexDumpAddressColor=#C0C0C0
HexDumpBackgroundColor=#000000
HexDumpByte00BackgroundColor=#XXXXXX
HexDumpByte00Color=#C0C0C0
HexDumpByte7FBackgroundColor=#XXXXXX
HexDumpByte7FColor=#C0C0C0
HexDumpByteFFBackgroundColor=#XXXXXX
HexDumpByteFFColor=#C0C0C0
HexDumpByteIsPrintBackgroundColor=#XXXXXX
HexDumpByteIsPrintColor=#C0C0C0
HexDumpLabelBackgroundColor=#XXXXXX
HexDumpLabelColor=#FF0000
HexDumpModifiedBytesBackgroundColor=#XXXXXX
HexDumpModifiedBytesColor=#FF0000
HexDumpRestoredBytesBackgroundColor=#XXXXXX
HexDumpRestoredBytesColor=#808080
HexDumpSelectionColor=#800080
HexDumpSystemModuleCodePointerHighlightColor=#008000
HexDumpSystemModuleDataPointerHighlightColor=#008080
HexDumpTextColor=#C0C0C0
HexDumpUnknownCodePointerHighlightColor=#00FF00
HexDumpUnknownDataPointerHighlightColor=#00FF00
HexDumpUserModuleCodePointerHighlightColor=#FF0000
HexDumpUserModuleDataPointerHighlightColor=#800080
HexEditBackgroundColor=#000000
HexEditSelectionColor=#C0C0C0
HexEditTextColor=#FFFBF0
HexEditWildcardColor=#FF0000
InstructionAddressBackgroundColor=#XXXXXX
InstructionAddressColor=#FFFBF0
InstructionCallBackgroundColor=#FF0000
InstructionCallColor=#FFFF00
InstructionCommaBackgroundColor=#XXXXXX
InstructionCommaColor=#C0C0C0
InstructionConditionalJumpBackgroundColor=#FFFF00
InstructionConditionalJumpColor=#FF0000
InstructionFarBackgroundColor=#XXXXXX
InstructionFarColor=#FF00FF
InstructionFpuRegisterBackgroundColor=#XXXXXX
InstructionFpuRegisterColor=#000080
InstructionGeneralRegisterBackgroundColor=#XXXXXX
InstructionGeneralRegisterColor=#00FF00
InstructionHighlightColor=#FFFBF0
InstructionInt3BackgroundColor=#XXXXXX
InstructionInt3Color=#808080
InstructionMemoryBaseRegisterBackgroundColor=#XXXXXX
InstructionMemoryBaseRegisterColor=#FF0000
InstructionMemoryBracketsBackgroundColor=#XXXXXX
InstructionMemoryBracketsColor=#FF0000
InstructionMemoryIndexRegisterBackgroundColor=#XXXXXX
InstructionMemoryIndexRegisterColor=#FF00FF
InstructionMemoryOperatorBackgroundColor=#XXXXXX
InstructionMemoryOperatorColor=#FF0000
InstructionMemoryScaleBackgroundColor=#XXXXXX
InstructionMemoryScaleColor=#FF0000
InstructionMemorySegmentBackgroundColor=#XXXXXX
InstructionMemorySegmentColor=#00FFFF
InstructionMemorySizeBackgroundColor=#XXXXXX
InstructionMemorySizeColor=#00FFFF
InstructionMemoryStackBracketsBackgroundColor=#XXXXXX
InstructionMemoryStackBracketsColor=#00FFFF
InstructionMmxRegisterBackgroundColor=#XXXXXX
InstructionMmxRegisterColor=#FF00FF
InstructionMnemonicBackgroundColor=#XXXXXX
InstructionMnemonicColor=#FFFF00
InstructionNopBackgroundColor=#XXXXXX
InstructionNopColor=#C0C0C0
InstructionPrefixBackgroundColor=#XXXXXX
InstructionPrefixColor=#00FF00
InstructionPushPopBackgroundColor=#XXXXXX
InstructionPushPopColor=#0000FF
InstructionRetBackgroundColor=#00FFFF
InstructionRetColor=#000000
InstructionSseRegisterBackgroundColor=#XXXXXX
InstructionSseRegisterColor=#000080
InstructionUncategorizedBackgroundColor=#XXXXXX
InstructionUncategorizedColor=#FFFBF0
InstructionUnconditionalJumpBackgroundColor=#FFFF00
InstructionUnconditionalJumpColor=#000000
InstructionUnusualBackgroundColor=#C00000
InstructionUnusualColor=#000000
InstructionValueBackgroundColor=#XXXXXX
InstructionValueColor=#808000
InstructionXmmRegisterBackgroundColor=#XXXXXX
InstructionXmmRegisterColor=#FF00FF
InstructionYmmRegisterBackgroundColor=#XXXXXX
InstructionYmmRegisterColor=#FF00FF
InstructionZmmRegisterBackgroundColor=#XXXXXX
InstructionZmmRegisterColor=#FF00FF
LogLinkBackgroundColor=#XXXXXX
LogLinkColor=#00CC00
MemoryMapBreakpointBackgroundColor=#FFFBF0
MemoryMapBreakpointColor=#FF00FF
MemoryMapCipBackgroundColor=#XXXXXX
MemoryMapCipColor=#00FF00
MemoryMapSectionTextColor=#FFFBF0
PatchRelocatedByteHighlightColor=#0000DD
RegistersArgumentLabelColor=#FF00FF
RegistersBackgroundColor=#000000
RegistersColor=#FFFBF0
RegistersExtraInfoColor=#C0C0C0
RegistersHighlightReadColor=#FFFBF0
RegistersHighlightReadWriteColor=#808000
RegistersHighlightWriteColor=#FF0000
RegistersLabelColor=#C0C0C0
RegistersModifiedColor=#FF0000
RegistersSelectionColor=#800080
SearchListViewHighlightColor=#FF0000
SideBarBackgroundColor=#000000
SideBarBulletBookmarkColor=#FEE970
SideBarBulletBreakpointColor=#FF0000
SideBarBulletColor=#C0C0C0
SideBarBulletDisabledBreakpointColor=#00AA00
SideBarCheckBoxBackColor=#XXXXXX
SideBarCheckBoxForeColor=#FF0000
SideBarCipLabelBackgroundColor=#XXXXXX
SideBarCipLabelColor=#FFFFFF
SideBarConditionalJumpLineFalseBackwardsColor=#FFA500
SideBarConditionalJumpLineFalseColor=#808080
SideBarConditionalJumpLineTrueBackwardsColor=#FF0000
SideBarConditionalJumpLineTrueColor=#FF0000
SideBarUnconditionalJumpLineFalseBackwardsColor=#FFA500
SideBarUnconditionalJumpLineFalseColor=#FFFBF0
SideBarUnconditionalJumpLineTrueBackwardsColor=#FF0000
SideBarUnconditionalJumpLineTrueColor=#FF0000
StackAddressBackgroundColor=#XXXXXX
StackAddressColor=#C0C0C0
StackBackgroundColor=#000000
StackCspBackgroundColor=#000000
StackCspColor=#FF0000
StackFrameColor=#FFFF00
StackFrameSystemColor=#FFFBF0
StackInactiveTextColor=#FFFBF0
StackLabelBackgroundColor=#XXXXXX
StackLabelColor=#FF0000
StackReturnToColor=#FF0000
StackSEHChainColor=#AE81FF
StackSelectedAddressBackgroundColor=#XXXXXX
StackSelectedAddressColor=#0000FF
StackSelectionColor=#800080
StackTextColor=#FFFBF0
StructAlternateBackgroundColor=#DCD9CF
StructBackgroundColor=#FFF8F0
SymbolLoadedTextColor=#008000
SymbolLoadingTextColor=#8B671F
SymbolUnloadedTextColor=#000000
ThreadCurrentBackgroundColor=#000000
ThreadCurrentColor=#FFFFFF
WatchTriggeredBackgroundColor=#FFF8F0
WatchTriggeredColor=#FF0000


AbstractTableView=楷体,14,-1,5,50,0,0,0,0,0
Application=微软雅黑,10,-1,5,50,0,0,0,0,0
Disassembly=Source Code Pro Medium,9,-1,5,75,0,0,0,0,0
HexDump=Source Code Pro Medium,12,-1,5,50,0,0,0,0,0
HexEdit=Source Code Pro Medium,8,-1,5,50,0,0,0,0,0
Log=Source Code Pro Medium,10,-1,5,50,0,0,0,0,0
Registers=Source Code Pro Medium,8,-1,5,50,0,0,0,0,0
Stack=Source Code Pro Medium,8,-1,5,50,0,0,0,0,0


上边就是界面关于字体显示的部分

[*]第2种方式

还有一种搞法就是通过 \themes\Dark\style.css 来实现的,
但是感觉在我的显示器上都变得粗大,很占显示器空间,老版的某些x64dbg,竟然控件无法被点击了。原版已经解决此bug
另外这东西的显示还跟你的显示器屏幕分辨率、屏幕缩放比有关

[*]还有第3种方式: 通过x64dbg的插件Highlightfish来显示设置


(非人类汉化效果,凑合看吧。)
如图所示,这里边有5种配色方案,方便切换 ;最后是重置。
最后最后,再说一个局部调节的技巧:

譬如如图所示的区域,你感觉字体有些小,是不是看不清? 你可以按 热键来调节
这个功能仅限于比较新的x64dbg版本中才有效果哟~~
不仅限于CPU窗口,其他窗口都是支持的,这是我无意在x64dbg的源码中发现的哟~~
希望有此困扰的道友可以少走些弯路,就到这里吧。{:301_998:}

chaojiak47 发表于 2021-11-29 09:38

用的哪个版本的od>>>??

冥界3大法王 发表于 2021-12-8 20:27

本帖最后由 冥界3大法王 于 2021-12-8 20:30 编辑

chaojiak47 发表于 2021-11-29 09:38
用的哪个版本的od>>>??@chaojiak47
回道友,眼神不好。
300度近视,OD那种Ctrl+N键入找API实在是受够了,放着支持过滤和正则的不用
放着内置无数命令表达式和函数的不用,放着内置无数开发者参数的不用,岂不浪费乎?
OD已然从硬盘里删除了。好多年没用了
用的自己源码修改版的x64dbg、支持热键街霸发声。
全程热键或命令行快速操作,另外又杂交组合了无数的内置命令。
用起来很舒爽。另外学着C++ 和QT开发,没事就拿它操刀,不断修改它。
越玩源码越熟练。对这个调试器内部发生事就更明白和透彻。
我把修改心得都记到了本子上和笔记软件中。有几十页了吧。

longcy 发表于 2022-7-29 21:53

请问一下这个字能放大吗?

lbg2222000 发表于 2022-11-28 20:20

谢谢分享
页: [1]
查看完整版本: 说说关于调教x64dbg显示字体那些事