Skip to content
This repository was archived by the owner on Apr 27, 2024. It is now read-only.

Commit d8b3291

Browse files
committed
Add new serif fonts to font selection
1 parent 2687926 commit d8b3291

File tree

4 files changed

+21
-2
lines changed

4 files changed

+21
-2
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,15 @@ If you don't like the default font, you can change it by enabling the "Enable Di
106106
- Ubuntu
107107
- Noto Sans
108108
- Source Sans Pro
109+
- Times New Roman
110+
- Georgia
111+
- Palatino Linotype
112+
- Bookman Old Style
113+
- Book Antiqua
114+
- Lucida Bright
115+
- Cambria
116+
- Garamond
117+
- Big Caslon
109118

110119
You will need to refresh the page after changing the font. Also, please notice that the font might have a different width, and might slightly break the UI (but it's not that bad).
111120

content.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1348,7 +1348,7 @@ fontSelect.style.width = "80%";
13481348
fontSelect.style.marginBottom = "10px";
13491349
fontSelect.style.display = "block";
13501350

1351-
// Create an array of pre-set Google Fonts
1351+
// Create an array of pre-set Google Fonts (now with serif as well)
13521352
var googleFonts = [
13531353
"Arial",
13541354
"Roboto",
@@ -1360,6 +1360,16 @@ var googleFonts = [
13601360
"Ubuntu",
13611361
"Poppins",
13621362
"Source Sans Pro",
1363+
// Serif
1364+
"Times New Roman",
1365+
"Georgia",
1366+
"Palatino Linotype",
1367+
"Bookman Old Style",
1368+
"Book Antiqua",
1369+
"Lucida Bright",
1370+
"Cambria",
1371+
"Garamond",
1372+
"Big Caslon",
13631373
];
13641374

13651375
// Populate the select element with pre-set fonts

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "C.AI Addons",
4-
"version": "0.4.6",
4+
"version": "0.5.0",
55
"description": "A browser extension that adds some features to character.ai",
66
"icons": {
77
"16": "icon16.png",

resources/markdown/selectfonts.png

4.24 KB
Loading

0 commit comments

Comments
 (0)