Skip to content

Commit

Permalink
Merge pull request #43 from evyd13/comicsansfont
Browse files Browse the repository at this point in the history
add comic sans font
  • Loading branch information
whosmatt authored Jun 26, 2024
2 parents dd74d95 + 606451b commit e7b90e7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mods.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ modClasses = [

this.selectVCR = addRadioButton(this.modSpecificDiv, "VCR Font, replaces big digits", "selectVCR", "selectFont");
this.selectFuturistic = addRadioButton(this.modSpecificDiv, "Futuristic Font (by DO7OO), replaces big and small digits", "selectFuturistic", "selectFont");
this.selectComicSans = addRadioButton(this.modSpecificDiv, "Comic Sans Font (by evyd13), replaces alphabet, big and small digits", "selectComicSans", "selectFont");
this.selectVCR.checked = true;

}
Expand All @@ -282,6 +283,14 @@ modClasses = [
firmwareData = replaceSection(firmwareData, bigDigits, 0xd502);
firmwareData = replaceSection(firmwareData, smallDigits, 0xd620);
}
else if (this.selectComicSans.checked) {
const alphabet = hexString("0000000000000000000000000000000000000000F80000000000000013000000000000F000F0000000000000000000004040E0504040E050140E0504041E050400E030F8101000000010117F111B0E00F090F000C030000000100C03001E121E000000E0D0700000000E1110130E0F100000F000000000000000000000000000000000E0180400000000000F304000000000000418E0000000000040300F00000020A070E0A00000000000000000000000000000C0000000000001010701010000000000000000000000100800000000000000000000000000000001010100000000000000000000000000080000000000000000C030080000100C03000000000000F0080808F000000007080808070000000010F8000000000000080F0800000000100888C8700000000E090908080000001088C8C8300000000408080807000000806010F8000000010101010F01000000F8C84848880000000508080807000000C07058408000000007080808070000000808886818000000000C030000000000708888887000000007080808070000F0080808F0000000080905050300000000C0000000000000000600000000000000C0000000000000100800000000000000008040000000000001020400000000404040400000000002020202000000000040800000000000000402010000000000080888F000000000000B00000000F008E43494C404F803040D0908090D00000000C03038C000000C03010101070C00F0988888D03000000F08080805070000C0301008081800000708080804040000F80810102020C0000708080808040300F8888888888800000F08080808080000F8888888880800000F000000000000E030888888908000070808080403000000F80080808080F8000F01000000000F00080808F8080800000008080F0808000000080888780808000608080F00000000F8804020100800000F01030604080000F8000000000000000F08080808000000F80000C038F0000F00010E0100030CF8306080000000F80F0000000102040FC0201008080810F003040808080806030000F80808D0600000000F0101000000E0100808080810E003040808080C0C170000F8080810E00000000F0103030408000000F088888808000004080808080700080808F8080808000000000F00000000F80000000000F800030408080804030038C00000C030080000030E0601000018E000C0F800C03800010E01010E030000183060C0403018000C06030103060C000830E00080E018000000080F0300000008088848281808000C0B090808080800000000FE020200000000003F202000000418E00000000000000000030C0000000000000202FE000000000020203F00000008040204080000000000000000000000000000000000101010101010101000000000003C000000000000000000000080402020E0000000030604040304000000FE2020E0800000000704040301000000C020200000000000030404060000000080602020FC0000000106040407000000C020A0E000000001070504040200002020FC222200000000000700000000000080402020A0000000232624241F000000FE4020E0000000000700000700000000E80000000000000007000000000000000008E8000000002040403F0000000000FE80C06010000000070000030600000000FE000000000000000700000000E040E04020C0000007000007000306000000E04020E000000000070000030400000080402020E00000000106040403000000E02020E0000000003F04040700000000C02020E0000000010604043F00000000E04020E00000000007000000000000000000C02060000000040404050700002078A02000000000000007000000000000E00000E0000000000704040700000020C000C02000000000000700000000E000C060C000E00003060100070201000000204080C0402000040603010306000020C00000C06000000020190701000000002020A0E020000000040605040400000080FC020200000000011F202000000000FE000000000000001F00000000000000000202FC800000000020201F010000C02060808060000000000000000000");
const bigDigits = hexString("00C0F0780C0606060E1CF8E00000071F3C7060606070381F070000000000181CFEFE00000000000000000060607F7F606000000000000018180C0C86C6EC7C3800000000787C6E63636160606000000000000C0C8686C6CC7C3000000000103070606161633F1E0000000000C0E0701CFEFE00000000000607070706067F7F060600000000FEFEFE66666666E6C600000000317160606060703F1F07000000C0F0F8DCCEC68000000000000E3F7F716060617F3F0E0000000406060606C6E67E3E0E0400000000607C3F07010000000000000078FC868686CCFC30000000001C3F73616161637F3E0000000060F89C0C06060C9CF8F00000000041636363333F1F0701000000000000000000000000000000000006060606060606000000");
const smallDigits = hexString("00003E41413E00000042427F40000000725949460000002249493E0000101814127F1000006F45453D0000003C4A4930000001611D0300000000764949760000004E51311E000000101010100000000000000000");
firmwareData = replaceSection(firmwareData, alphabet, 0xd66d);
firmwareData = replaceSection(firmwareData, bigDigits, 0xd502);
firmwareData = replaceSection(firmwareData, smallDigits, 0xd620);
}

log(`Success: ${this.name} applied.`);
return firmwareData;
Expand Down

0 comments on commit e7b90e7

Please sign in to comment.