Repository navigation
feat(form_fit): lay glyphs out at the advances of Hancom Office 2024 - #466
Merged
Merged
Conversation
FormFit and the page estimate fell back to class averages for every glyph that is not Hangul in HCI Poppy, HCI Hollyhock, 한양중고딕, 한양신명조, 한양견고딕, 휴먼옛체, HY견명조 and HY동녘M. They now take each glyph's advance: - The faces Hancom ships in its own font format take the advances Hancom lays them out at, read from Hancom's line breaks of synthetic documents at several sizes, in the units per em that reproduce every size. - HY견명조 and HY동녘M take their fonts' design advances, as the other HY faces do; a glyph they lack and the grave accent take 함초롬바탕's. A Hancom-saved fixture holds each face's glyphs at the two widths where the line count changes, at 10 pt and 30 pt; FormFit now matches every cell. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
airmang
commented
Oct 15, 2026
airmang
left a comment
Owner
Author
There was a problem hiding this comment.
0aaa4a2 검토 완료. 신규 8글꼴의 _DESIGN 및 units-per-em 대응, 두 HY 글꼴의 fallback/vertical metrics, 기존 glyph lookup 경로와 224칸 Hancom 고정본을 확인했습니다. 기존 글꼴 행을 바꾸지 않으며 미등록 glyph의 기존 fallback 규약을 유지합니다. 원래 head에서 FormFit/배치 관련 검사 1,505개가 통과했고, #462/#463이 병합된 최신 main dd67a530bf656a1deb38c1192937a755a49346d0을 합친 검증 트리에서도 FormFit/배치/표 네임스페이스/HWP 읽기·쓰기 검사 1,787개가 통과했습니다. 최신 head의 GitHub 검사 13개 모두 성공했고 미해결 리뷰 스레드는 없습니다. 병합을 막는 결함을 찾지 못했습니다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
요약
FormFit과 쪽 수 추정의 글자 폭을 한컴오피스 2024의 한/글에 맞춘다. 두 커밋으로 나뉜다.
1. 한컴 글꼴 8종 추가 (0aaa4a2)
전에는 이 글꼴들의 한글 아닌 글자에 글자 종류 평균 폭을 썼다.
_GLYPHS밖 글자는 평균 폭.2. 한컴오피스 2024 배치에 맞춤 (17d9441)
!는 어느 글꼴에서든 반 em이다. 장평·자간은 다른 글자처럼 받는다.`는 0.584 em이다. HY울릉도M에 없는 글자는 함초롬바탕의 폭이다.시험
formfit_glyph_widths·formfit_script_symbols·formfit_hy_headline_cells를 한컴오피스 2024로 다시 저장했다.formfit_hft_faces_cells(224칸): 고치기 전 123칸이 맞았다.formfit_dodum_punctuation_cells(144칸, 함초롬돋움·한컴산뜻돋움·한컴 고딕의 문장 부호와!): 고치기 전 100칸이 맞았다.more_faces고정본은 이 PC의 한/글에 없는 글꼴(HY중고딕 등)이 섞여 있어 그대로 두었다. 대신 함초롬돋움 쪽 —·‐·‑ 칸은 그 시험에서 빼고, 새 고정본이 검사한다.알려진 한계
!·…등의 폭이 이번 기준과 다를 수 있다(그런 문서는 줄 배치 정보를 따르는 쪽이 맞다).🤖 Generated with Claude Code