Skip to content

Conversation

@mZeeDevv
Copy link

Feature: Customizable Fonts

  • Added a new configuration option capture.fontFamily in package.json, allowing users to select from a list of popular programming fonts for code screenshots.
  • Updated the README to reflect that customizable fonts are now supported.

Implementation: Font Selection and Application

  • Modified extension.ts to read the fontFamily configuration and pass it to the template generation logic.
  • Updated generateTemplate in template.ts to accept a fontFamily parameter and apply it to the HTML output, including loading required font resources via Google Fonts and CDN. [1] [2]
  • Ensured the selected font is applied to all code elements in the screenshot by updating the relevant CSS rules in the template.
    "Space Mono"

mZeeDevv and others added 2 commits September 13, 2025 00:21
Added fonts:
"Cascadia Code PL", 
"Fira Code", 
"JetBrains Mono", 
"Source Code Pro", 
 "Consolas",
"Roboto Mono",
"Ubuntu Mono",
 "Inconsolata",
 "Anonymous Pro",
 "Hack",
 "IBM Plex Mono",
 "Droid Sans Mono",
 "Courier Prime",
 "PT Mono",
 "Space Mono"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant