Add information about changing the font.

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

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

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
48/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
html
Lĩnh vực
content, documentation

Hướng nghiên cứu

This is the Lem project website (lem-project.github.io). Find the existing documentation or usage pages in the site source and add a short section on changing the font, using the Lisp snippet from the issue (lem-sdl2/display:change-font and make-font-config). Confirm the page renders and that the snippet is attributed as community/Discord guidance. Done when the site documents how to set latin/cjk regular and bold TTF files.

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

Mô tả

Was looking for this because the right arrow isn't displaying for me.

image

I'll mention that in Discord and see if it's worth tracking as a bug or if it's something unique to my system.

Regardless, this seems like something that would be good to have in documentation somewhere.

Found this in Discord.

(let ((font-regular #P"/home/andy/.guix-profile/share/fonts/truetype/MononokiNerdFont-Regular.ttf")
      (font-bold #P"/home/andy/.guix-profile/share/fonts/truetype/MononokiNerdFont-Bold.ttf"))
  (when (and (uiop:file-exists-p font-regular)
             (uiop:file-exists-p font-bold))
    (lem-sdl2/display:change-font (lem-sdl2/display:current-display)
                                  (lem-sdl2/font:make-font-config
                                   :latin-normal-file font-regular
                                   :latin-bold-file font-bold
                                   :cjk-normal-file font-regular
                                   :cjk-bold-file font-bold))))
Ngôn ngữ chính
HTML
Star
6
Fork
22
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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.

Issue khác của lem-project/lem-project.github.io

Tất cả issue của lem-project/lem-project.github.io

Issue tương tự

Thêm issue về Content

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.