macvim-dev / macvim-dev/macvim

Support OpenType features, like discretionary ligatures and stylistic sets

Đang mở
#1,041 1 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
Vim Script
Star
7.9k
Fork
691
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Many modern, well-made fonts include "OpenType features" that let you fine-tune typographic settings, like the appearance of 0 (slashed vs. dotted), or single/double story a/g. Like code ligatures, which MacVim already supports, these features can improve code legibility.

Is your feature request related something that is currently hard to do? Please describe.

Currently, it's not possible to enable OpenType features.

Also, not all fonts "provide" ligatures in the same way. Fira Code, for example, uses calt (contextual alternates), while Recursive uses the feature flag dlig. With Recursive, set macligatures doesn't turn on ligatures, suggesting that MacVim only supports calt. If OpenType features were supported, it would be possible to use all typography features a font provides, regardless of implementation.

Describe the solution you'd like

MacVim could provide an option, like macligatures, which takes a comma-separated list of OpenType features to enable. These features are four-letter flags, like dlig and ss01.

set macfontfeatures=dlig,ss01

Additional context

This may be a duplicate of #491, but I'm not sure of the difference between "language tags" as described there, and "OpenType features", which is how these settings are described in font documentation that I've seen.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng cách xác định tùy chọn macligatures hiện có của MacVim và điểm vào của cấu hình phông chữ. Xem xét cách biểu diễn các feature flag như dligss01; được xem là hoàn tất khi một thiết lập phân tách bằng dấu phẩy bật các tính năng OpenType được yêu cầu, bao gồm cả những tính năng được triển khai khác với calt.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
macos, vim
Lĩnh vực
desktop, tooling
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.