Captions: allow manually loading a custom font for Font Family

未關閉
#3,598 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
48/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
json, macos, rust
領域
desktop, frontend

研究方向

Start by locating the captions Font Family picker and reading how it currently gets and saves its options; inspect the caption settings in project-config.json to understand the existing fontFamily behavior. The issue offers two possible approaches—importing a font file or entering a family name—so clarify which to implement before starting. Done means a custom font can be selected in the UI and used for caption rendering.

由索引模型根據 Issue 內容生成。

描述

The Font Family selector for captions only offers a handful of hardcoded options (System Sans-Serif, System Serif, Inter, Georgia, Times New Roman). There's no way to use a custom typeface from the UI.

I understand that listing every installed system font could bloat the picker and add rendering/lookup overhead — that makes sense. A lighter alternative would be enough:

  • A "Load font…" / custom font option in the Font Family picker, where I can manually import a font file (ttf/otf) or type a font family name that Cap then resolves via NSFont/CoreText.

That way the default list stays small, but manual font loading becomes possible for people who want a consistent brand typeface on their captions.

Editing project-config.json and setting fontFamily in the caption settings does work today (the renderer resolves it fine), but it's undocumented and has to be repeated for every project — a built-in option would be much appreciated.

主要語言
Rust
星號
24.2k
分支
2.2k
平均合併
1 天 2 分鐘
30 天內合併 PR
677

環境準備

  • 提供 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

CapSoftware/Cap 的其他 Issue

查看 CapSoftware/Cap 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。