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

Commit

Permalink
Add new serif fonts to font selection
Browse files Browse the repository at this point in the history
  • Loading branch information
LyubomirT committed Nov 15, 2023
1 parent 2687926 commit d8b3291
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,15 @@ If you don't like the default font, you can change it by enabling the "Enable Di
- Ubuntu
- Noto Sans
- Source Sans Pro
- Times New Roman
- Georgia
- Palatino Linotype
- Bookman Old Style
- Book Antiqua
- Lucida Bright
- Cambria
- Garamond
- Big Caslon

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).

Expand Down
12 changes: 11 additions & 1 deletion content.js
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,7 @@ fontSelect.style.width = "80%";
fontSelect.style.marginBottom = "10px";
fontSelect.style.display = "block";

// Create an array of pre-set Google Fonts
// Create an array of pre-set Google Fonts (now with serif as well)
var googleFonts = [
"Arial",
"Roboto",
Expand All @@ -1360,6 +1360,16 @@ var googleFonts = [
"Ubuntu",
"Poppins",
"Source Sans Pro",
// Serif
"Times New Roman",
"Georgia",
"Palatino Linotype",
"Bookman Old Style",
"Book Antiqua",
"Lucida Bright",
"Cambria",
"Garamond",
"Big Caslon",
];

// Populate the select element with pre-set fonts
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "C.AI Addons",
"version": "0.4.6",
"version": "0.5.0",
"description": "A browser extension that adds some features to character.ai",
"icons": {
"16": "icon16.png",
Expand Down
Binary file modified resources/markdown/selectfonts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d8b3291

Please sign in to comment.