fontTools
위에 친숙한 글꼴 작업이 가능합니다. ?
pip 설치 python-fontbro
글꼴 클래스를 가져오세요.
fromfontbro import Fontfont = Font("fonts/MyFont.ttf")# 또는 파일과 같은 객체를 사용할 수 있습니다: with open("fonts/MyFont.ttf") as fh:font = Font(fh)
clone
close
from_collection
get_characters
get_characters_count
get_family_classification
get_family_name
get_features
get_features_tags
get_filename
get_fingerprint
get_fingerprint_match
get_format
get_glyphs
get_glyphs_count
get_image
get_italic_angle
get_name
get_names
get_style_flag
get_style_flags
get_style_name
get_svg
get_ttfont
get_unicode_block_by_name
get_unicode_blocks
get_unicode_script_by_name
get_unicode_scripts
get_variable_axes
get_variable_axes_tags
get_variable_axis_by_tag
get_variable_instances
get_variable_instance_by_style_name
get_variable_instance_closest_to_coordinates
get_version
get_vertical_metrics
get_weight
get_width
is_color
is_monospace
is_static
is_variable
rename
sanitize
save
save_as_woff
save_as_woff2
save_to_file_object
save_variable_instances
set_family_classification
set_family_name
set_name
set_names
set_style_flag
set_style_flags
set_style_flags_by_subfamily_name
set_style_name
set_vertical_metrics
subset
to_sliced_variable
to_static
clone
"""동일한 바이너리 파일을 읽는 새 글꼴 인스턴스를 만듭니다."""font_clone =font.clone()
close
"""래핑된 TTFont 인스턴스를 닫습니다."""font.close()
from_collection
"""글꼴 컬렉션 파일(.ttc / .otc)에서 글꼴 개체 목록을 가져옵니다. param filepath: 파일 경로:유형 파일 경로: str 또는 pathlib.Path:returns: 글꼴 개체 목록.:rtype: 목록" ""글꼴 = Font.from_collection(filepath="my-font-collection.ttc")
get_characters
"""글꼴 문자를 가져옵니다.:paramignore_blank: True인 경우 윤곽선이 없는 문자는 반환되지 않습니다.:typeignore_blank: bool:returns: 문자.:rtype: dicts:raises 생성기 TypeError: 찾을 수 없는 경우 글꼴의 '최고' 유니코드 cmap dict입니다."""chars =font.get_characters(ignore_blank=False)
get_characters_count
"""글꼴 문자 수를 가져옵니다.:paramignore_blank: True인 경우 윤곽선이 없는 문자는 계산되지 않습니다.:typeignore_blank: bool:returns: 문자 수.:rtype: int"""chars_count =font.get_characters_count(ignore_blank =거짓)
get_family_classification
"""OS/2 테이블에서 sFamilyClass 필드를 읽어 글꼴 모음 분류 정보를 가져옵니다. OS/2 테이블을 사용할 수 없는 경우 없음이 반환됩니다.:반환: 글꼴 모음 분류 정보가 포함된 사전(예: { "full_name":) "산세리프/네오그로테스크 고딕", "class_id": 8, "class_name": "산세리프", "subclass_id": 5, "subclass_name": "신그로테스크 고딕", }:rtype: dict"""family_classification =font.get_family_classification()
get_family_name
"""우선순위(16, 21, 1)로 이름 레코드를 읽어 패밀리 이름을 가져옵니다.:returns: 글꼴 패밀리 이름.:rtype: str"""family_name =font.get_family_name()
get_features
"""글꼴 오픈타입 기능을 가져옵니다.:returns: 기능.:rtype: dict 목록"""features =font.get_features()
get_features_tags
"""글꼴 오픈타입 기능 태그를 가져옵니다.:returns: 기능 태그 목록.:rtype: str 목록"""features_tags =font.get_features_tags()
get_filename
"""글꼴을 파일 시스템에 저장하는 데 사용할 파일 이름을 가져옵니다.:param Variable_suffix: 변수 접미사, 기본값 "Variable":type Variable_suffix: str:param Variable_axes_tags: 변수 축 태그 플래그, True인 경우 축 태그 예를 들어 '[wght,wdth]':type Variable_axes_tags: bool:param Variable_axes_values: 변수 축이 추가됩니다. 값 플래그 True인 경우 각 축 값이 추가됩니다. 예: '[wght(100,100,900),wdth(75,100,125)]':typevariable_axes_values: bool:returns: The filename.:rtype: str"""filename =font.get_filename( variable_suffix="변수",variable_axes_tags=True, Variable_axes_values=거짓)
get_fingerprint
"""글꼴 지문을 가져옵니다: 글꼴의 이미지 표현에서 계산된 해시입니다. 텍스트 옵션을 변경하면 반환된 지문에 영향을 줍니다.:param text: 지문 생성에 사용되는 텍스트, 기본값: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".:type text : str:returns: 지문 해시.:rtype: imagehash.ImageHash"""해시 =font.get_fingerprint()
get_fingerprint_match
"""이 글꼴과 다른 글꼴 사이의 지문 일치를 가져옵니다. 지문이 동일한지 확인하여(차이 <= 허용 오차).:param other: 다른 글꼴은 파일 경로 또는 글꼴 인스턴스일 수 있습니다.:other 유형: str 또는 Font:param 허용 오차: diff 허용 오차, 기본값 3.:type 허용 오차: int:param text: 지문 생성에 사용되는 텍스트, 기본값: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".:type 텍스트: str:returns: 일치 정보(match, diff, hash, other_hash)가 포함된 튜플.:rtype: tuple"""match, diff, hash, other_hash = 글꼴.get_fingerprint_match(other="other_font.ttf", 허용 오차=10)
get_format
"""글꼴 형식을 가져옵니다: otf, ttf, woff, woff2.:paramignore_flavor: True인 경우 압축하지 않은 원래 형식이 반환됩니다.:typeignore_flavor: bool:returns: 형식.:rtype: str 또는 None" ""형식 = 글꼴.get_format(ignore_flavor=False)
get_glyphs
"""글꼴 글리프와 자체 구성을 가져옵니다.:returns: 글리프.:rtype: dicts 생성기"""glyphs =font.get_glyphs()
get_glyphs_count
"""글꼴 글리프 개수를 가져옵니다.:returns: 글리프 개수.:rtype: int"""glyphs_count =font.get_glyphs_count()
get_image
"""주어진 옵션을 사용하여 일부 텍스트를 렌더링하는 글꼴의 이미지 표현을 가져옵니다.:param text: 이미지에 렌더링된 텍스트:type text: str:param size: 글꼴 크기:type size: int:param color: 텍스트 색상:유형 색상: tuple:param background_color: 배경 색상: 유형 background_color: tuple"""img =font.get_image(text="Hello!", size=48, color=(0, 0, 0, 255), 배경_색상=(255, 255, 255, 255))
get_italic_angle
"""글꼴 기울임꼴 각도를 가져옵니다.:returns: backslant, italic 및 roman 플래그를 포함한 각도 값.:rtype: dict 또는 None"""italic_angle =font.get_italic_angle()
get_name
"""글꼴 이름 테이블에서 식별자로 이름을 가져옵니다.:param key: 이름 ID 또는 키(예: "family_name"):type key: int 또는 str:returns: 이름.:rtype: str 또는 None :KeyError 발생: 키가 유효한 이름 키/id가 아닌 경우"""family_name =font.get_name(key=Font.NAME_FAMILY_NAME)
get_names
"""속성 이름으로 매핑된 이름 레코드를 가져옵니다.:returns: 이름.:rtype: dict"""names =font.get_names()
get_style_flag
"""OS/2 및 macStyle 테이블을 읽는 스타일 플래그를 가져옵니다.:param key: 키:유형 key: string:returns: 스타일 플래그.:rtype: bool"""flag =font.get_style_flag(Font.STYLE_FLAG_BOLD)
get_style_flags
"""OS/2 및 macStyle 테이블을 읽는 스타일 플래그를 가져옵니다.:returns: 스타일 플래그를 나타내는 dict.:rtype: dict"""flags =font.get_style_flags()
get_style_name
"""우선순위(17, 22, 2)로 이름 레코드를 읽어 스타일 이름을 가져옵니다.:returns: 글꼴 스타일 이름.:rtype: str"""style_name =font.get_style_name()
get_svg
"""주어진 옵션을 사용하여 일부 텍스트를 렌더링하는 글꼴의 SVG 표현을 가져옵니다.:param text: SVG 경로로 렌더링할 텍스트.:type text: str:param size: 렌더링에 사용할 글꼴의 크기 텍스트(포인트):유형 크기: int:returns: 렌더링된 텍스트를 나타내는 SVG 문자열.:rtype: str"""svg_str =font.get_svg(text="Hello!", size=48)
get_ttfont
"""래핑된 TTFont 인스턴스를 가져옵니다.:returns: TTFont 인스턴스.:rtype: TTFont"""ttfont =font.get_ttfont()
get_unicode_block_by_name
"""이름으로 유니코드 블록을 가져옵니다(이름은 대소문자를 구분하고 "-"를 무시합니다).:param name: 이름:유형 이름: str:returns: 이름이 유효한 경우 유니코드 블록 dict, 그렇지 않으면 없음.: rtype: dict 또는 None"""block =font.get_unicode_block_by_name(name="기본 라틴어")
get_unicode_blocks
"""유니코드 블록 및 해당 적용 범위를 가져옵니다. 적용 범위 >= 적용 범위_임계값(0.0 <= 적용 범위_임계값 <= 1.0)인 블록만 반환됩니다.:param Coverage_threshold: 반환될 블록에 필요한 최소 적용 범위입니다.:type Coverage_threshold: float:returns: 유니코드 블록 목록.:rtype: dicts 목록"""blocks = 글꼴.get_unicode_blocks(coverage_threshold=0.00001)
get_unicode_script_by_name
"""이름/태그로 유니코드 스크립트를 가져옵니다(이름/태그는 대소문자를 구분하고 "-"를 무시합니다).:param name: 이름:유형 이름: str:returns: 이름/태그가 다음과 같은 경우 유니코드 스크립트 dict 유효함, 그렇지 않으면 없음.:rtype: dict 또는 None"""script =font.get_unicode_script_by_name(name="Latn")
get_unicode_scripts
"""유니코드 스크립트 및 해당 적용 범위를 가져옵니다. 적용 범위 >= Coverage_threshold(0.0 <= Coverage_threshold <= 1.0)인 스크립트만 반환됩니다.:param Coverage_threshold: 반환될 스크립트에 필요한 최소 적용 범위.:type Coverage_threshold: float:returns: 유니코드 스크립트 목록.:rtype: dicts 목록"""scripts = 글꼴.get_unicode_scripts(coverage_threshold=0.00001)
get_variable_axes
"""글꼴 변수 축을 가져옵니다.:returns: 글꼴이 가변 글꼴인 경우 축 목록, 그렇지 않으면 None.:rtype: dict 또는 None 목록"""axes = 글꼴.get_variable_axes()
get_variable_axes_tags
"""변수 축 태그를 가져옵니다.:returns: 변수 축 태그.:rtype: 목록 또는 없음"""axes_tags =font.get_variable_axes_tags()
get_variable_axis_by_tag
"""태그로 변수 축을 가져옵니다.:param 태그: 태그:유형 태그: 문자열:반환: 태그로 변수 축.:rtype: dict 또는 None"""axis =font.get_variable_axis_by_tag(tag="wght" )
get_variable_instances
"""변수 인스턴스를 가져옵니다.:returns: 글꼴이 가변 글꼴인 경우 인스턴스 목록, 그렇지 않으면 None.:rtype: dict 또는 None 목록"""instances =font.get_variable_instances()
get_variable_instance_by_style_name
"""스타일 이름으로 변수 인스턴스를 가져옵니다. 예: style_name = 'Bold':param style_name: 스타일 이름:type style_name: str:returns: 주어진 스타일 이름과 일치하는 변수 인스턴스.:rtype: dict 또는 None"" "인스턴스 = 글꼴.get_variable_instance_by_style_name(style_name="Bold")
get_variable_instance_closest_to_coordinates
"""좌표에 가장 가까운 변수 인스턴스를 가져옵니다. 예: 좌표 = {"wght": 1000, "slnt": 815, "wdth": 775}좌표가 일부 축을 지정하지 않으면 축 기본값이 조회에 사용됩니다. :param 좌표: 좌표:유형 좌표: dict:returns: 좌표에 가장 가까운 변수 인스턴스.:rtype: dict 또는 None"""instance = font.get_variable_instance_closest_to_coordinates(coordinates={"wght": 1000, "slnt": 815, "wdth": 775})
get_version
"""글꼴 버전을 가져옵니다.:returns: 글꼴 버전 값.:rtype: float"""version =font.get_version()
get_vertical_metrics
"""글꼴 수직 메트릭을 가져옵니다.:returns: "units_per_em", "y_max", "y_min", "ascent", "descent", "line_gap", "typo_ascender", "typo_descender"와 같은 수직 메트릭을 포함하는 사전 ", "typo_line_gap", "cap_height", "x_height", "win_ascent", "win_descent":rtype: dict"""metrics = 글꼴.get_vertical_metrics()
get_weight
"""글꼴 가중치 값과 이름을 가져옵니다.:returns: 가중치 이름과 값.:rtype: dict 또는 None"""weight =font.get_weight()
get_width
"""글꼴 너비 값과 이름을 가져옵니다.:returns: 너비 이름과 값.:rtype: dict 또는 None"""width =font.get_width()
is_color
"""글꼴이 컬러 글꼴인지 확인합니다.:returns: 컬러 글꼴이면 True, 그렇지 않으면 False.:rtype: bool"""color =font.is_color()
is_monospace
"""글꼴이 고정 폭 글꼴인지 결정합니다.:param 임계값: 글꼴을 고정 폭 글꼴로 간주하기 위한 동일한 너비의 글리프의 임계값(0.0 <= n <= 1.0).:유형 임계값: float:returns: True인 경우 고정폭 글꼴, 그렇지 않으면 False.:rtype: bool"""mono =font.is_monospace(threshold=0.85)
is_static
"""글꼴이 정적 글꼴인지 확인합니다.:returns: 정적 글꼴이면 True, 그렇지 않으면 False.:rtype: bool"""static =font.is_static()
is_variable
"""글꼴이 가변 글꼴인지 확인합니다.:returns: 가변 글꼴이면 True, 그렇지 않으면 False.:rtype: bool"""variable =font.is_variable()
rename
"""주어진 family_name 및 style_name(subfamily_name)에 따라 글꼴 이름 레코드(1, 2, 4, 6, 16, 17)의 이름을 바꿉니다. family_name이 정의되지 않은 경우 자동으로 감지됩니다. style_name이 정의되지 않은 경우 자동 감지됩니다.:param family_name: 제품군 이름:type family_name: str:param style_name: 스타일 이름:type style_name: str:param update_style_flags: True인 경우 스타일 플래그는 하위 제품군 이름으로 업데이트됩니다: 유형 update_style_flags: bool:raises ValueError: 계산된 PostScript 이름이 63자보다 긴 경우."""font.rename(family_name="My Font New", style_name ="굵은 기울임꼴", update_style_flags=True)
sanitize
"""OpenType Sanitizer를 사용하여 글꼴 파일을 삭제합니다.https://github.com/googlefonts/ots-python:param strict: True(기본값)인 경우 살균제 경고 시에도 예외가 발생합니다. False인 경우 다음에서만 예외가 발생합니다. sanitizer 실패(0이 아닌 종료 코드).:type strict: bool:raises 예외: OpenType Sanitizer가 살균 프로세스 중에 오류를 보고하는 경우:return: 없음:note: 다음을 사용합니다. OpenType Sanitizer(ots)는 글꼴을 임시 디렉터리에 저장하고 저장된 파일에서 Sanitizer를 호출합니다. `strict`가 True(기본값)인 경우 `strict`가 False인 경우에는 Sanitizer 경고를 오류로 처리합니다. 살균제 오류만 확인합니다."""font.sanitize(strict=True)
save
"""파일 경로에 글꼴을 저장합니다.:param filepath: 파일 경로, None인 경우 소스 파일 경로가 사용됩니다:type filepath: str 또는 None:param overwrite: 덮어쓰기, True인 경우 소스 글꼴 파일을 덮어쓸 수 있습니다:type overwrite : bool:returns: 글꼴이 저장된 파일 경로.:rtype: str:raises ValueError: 파일 경로가 소스 글꼴과 동일하고 덮어쓰기가 아닌 경우 허용됩니다."""saved_font_path =font.save(filepath=없음, 덮어쓰기=False)
save_as_woff
"""글꼴을 woff로 저장합니다.:param filepath: 파일 경로:type filepath: str:param overwrite: 덮어쓰기, True인 경우 소스 글꼴 파일을 덮어쓸 수 있습니다:type overwrite: bool:returns: 글꼴이 있는 파일 경로 저장 위치:rtype: str"""saved_font_path =font.save_as_woff(filepath=None, overwrite=True)
save_as_woff2
"""글꼴을 woff2로 저장합니다.:param filepath: 파일 경로:type filepath: str:param overwrite: 덮어쓰기, True인 경우 소스 글꼴 파일을 덮어쓸 수 있습니다:type overwrite: bool:returns: 글꼴이 있는 파일 경로 저장 위치:rtype: str"""saved_font_path =font.save_as_woff2(filepath=None, overwrite=True)
save_to_fileobject
"""파일류 객체에 글꼴을 씁니다. 파일 객체가 전달되지 않으면 사용자를 위해 `BytesIO` 인스턴스가 생성됩니다.:param fileobject: 쓸 파일류 객체.:returns: 파일 원래 전달된 객체 또는 새로운 BytesIOinstance.:rtype: Typing.io.IO"""fileobject =font.save_to_fileobject(fileobject=None)
save_variable_instances
"""변수 글꼴의 모든 인스턴스를 하나 이상의 형식으로 지정된 디렉터리에 저장합니다.:param dirpath: dirpath:type dirpath: 인스턴스가 저장될 디렉터리 경로.:param woff2: 인스턴스를 저장할지 여부 기본값은 True입니다.:type woff2: bool:param woff: 인스턴스를 WOFF 형식으로 저장할지 여부입니다. 기본값은 True입니다.:type woff: bool:param overwrite: 덮어쓸지 여부입니다. 기본값은 True입니다.:type overwrite: bool:param 옵션: 정적 인스턴스를 생성할 때 인스턴스에 전달될 추가 옵션.:type 옵션: Dictionary:returns: 저장된 각 인스턴스에 대한 사전을 포함하는 목록입니다. 사전에는 '인스턴스'(인스턴스 메타데이터 포함) 및 '파일'(파일 형식이 키로, 파일 경로가 값으로 포함된 사전)이 포함됩니다.:유형 오류 발생: 글꼴이 가변 글꼴이 아닌 경우."""saved_fonts = font.save_variable_instances(dirpath, woff2=True, woff=True, overwrite=True, **옵션)
set_family_classification
"""제공된 class_id 및 subclass_id를 기반으로 글꼴 계열 분류(OS/2 테이블의 sFamilyClass)를 설정합니다.:param class_id: 글꼴 계열 클래스의 숫자 식별자.:param subclass_id: 글꼴 계열 하위 클래스의 선택적 숫자 식별자(기본값은 0).:raises OperationError: OS/2 테이블을 글꼴에서 사용할 수 없는 경우.:raises ArgumentError: class_id가 유효하지 않거나 subclass_id가 지정되었지만 유효하지 않습니다."""font.set_family_classification(**font.FAMILY_CLASSIFICATION_SCRIPTS_CALLIGRAPHIC)# 또는:font.set_family_classification(class_id=10, subclass_id=5)
set_family_name
"""관련 글꼴 이름 기록을 업데이트하는 패밀리 이름을 설정합니다.:param name: 이름:유형 이름: 새 패밀리 이름."""font.set_family_name(name="My Font New")
set_name
"""글꼴 이름 테이블의 식별자로 이름을 설정합니다.:param 키: 이름 ID 또는 키(예: "family_name"):유형 키: int 또는 str:param 값: 값:유형 값: str" ""font.set_name(Font.NAME_FAMILY_NAME, "성 이름이 변경됨")
set_names
"""이름 테이블의 식별자로 이름을 설정합니다.:param names: 이름:유형 이름: dict"""font.set_names(names={Font.NAME_FAMILY_NAME: "Family Name Renamed",Font.NAME_SUBFAMILY_NAME: " 일반 이름이 변경됨", })
set_style_flag
"""스타일 플래그를 설정합니다.:param 키: 플래그 키:유형 키: str:param 값: 값:유형 값: bool"""font.set_style_flag(Font.STYLE_FLAG_BOLD, True)
set_style_flags
"""스타일 플래그를 설정합니다. None으로 설정된 플래그는 무시됩니다.:param 굵은: 굵은 플래그 값.:typebold: bool 또는 None:param italic: 기울임꼴 플래그 값.:type italic: bool 또는 None:param 밑줄: 밑줄 플래그 값.:유형 밑줄: bool 또는 None:param 개요: 윤곽선 플래그 값.:유형 개요: bool 또는 없음"""font.set_style_flags(regular=없음, 굵게=없음, 기울임꼴=없음, 개요=없음, 밑줄=없음)
set_style_flags_by_subfamily_name
"""하위 패밀리 이름 값으로 스타일 플래그를 설정합니다. 이 메소드가 제대로 작동하려면 하위 패밀리 값이 "regular", "italic", "bold" 또는 "bold italic"이어야 합니다."""font.set_style_flags_by_subfamily_name()
set_style_name
"""관련 글꼴 이름 기록을 업데이트하는 스타일 이름을 설정합니다.:param name: 이름:type name: 새 스타일 이름."""font.set_style_name(name="Bold Italic")
set_vertical_metrics
"""수직 측정항목을 설정합니다.:param 측정항목: 설정할 수 있는 수직 측정항목을 나타내는 키워드 인수: "units_per_em", "y_max", "y_min", "ascent", "descent", "line_gap", "typo_ascender" , "typo_descender", "typo_line_gap", "cap_height", "x_height", "win_ascent", "win_descent""""font.set_vertical_metrics(units_per_em=2000, y_max=2102, y_min=-533, ascent=1800, descent=-400, line_gap=0, typo_ascender=1800, typo_descender=-400, typo_line_gap=0, cap_height=1400, x_height=1080, win_ascent=2160, win_descent=540)
subset
"""주어진 옵션(유니코드, 글리프 또는 텍스트)을 사용하여 글꼴을 하위 집합으로 설정합니다. 하위 집합 옵션도 전달할 수 있습니다. 자세한 내용은 여기를 참조하세요:https://github.com/fonttools/fonttools/blob/main/Lib/fontTools /subset/__init__.py:param unicodes: unicodes:type unicodes: str 또는 list:param glyphs: glyphs:type glyphs: 목록:param 텍스트: 텍스트:유형 텍스트: str:param 옵션: 하위 집합 옵션:유형 옵션: dict"""font.subset(unicodes="", glyphs=[], text="", ** 옵션)
to_sliced_variable
"""변수 글꼴을 주어진 좌표에서 가변 축을 분할하여 부분 글꼴로 변환합니다. 축 값을 지정하지 않으면 축은 그대로 유지됩니다. 축 최소값과 최대 값이 같으면 축이 고정됩니다. .:param 좌표: 좌표 사전, 각 항목 값은 슬라이싱의 경우 tuple/list/dict('min', 'default' 및 'max' 키 포함)이거나 고정의 경우 float/int여야 합니다. {'wdth':100, 'wght':(100,600), 'ital':(30,65,70)} 또는 {'wdth':100, 'wght':[100,600], 'ital':[30, 65,70]} 또는 {'너비':100, 'wght':{'min':100,'max':600}, 'ital':{'min':30,'default':65,'max':70}}:유형 좌표: dict:param 옵션 : FontTools.varLib.instancer:type 옵션에 대한 옵션: Dictionary:raises TypeError: 글꼴이 변수가 아닌 경우 Font:raises ValueError: 좌표가 정의되지 않은 경우(비어 있음):raises ValueError: 좌표축이 모두 고정된 경우"""font.to_sliced_variable(coordinates, **options)
to_static
"""변수 글꼴을 지정된 좌표에 변수 축을 고정하는 정적 글꼴로 변환합니다. 축 값이 지정되지 않으면 축이 기본값으로 고정됩니다. 좌표가 지정되지 않으면 각 축이 기본값으로 고정됩니다. value.:param 좌표: 좌표, 예: {'wght':500, 'ital':50}:type 좌표: dict 또는 None:param style_name: 기존 인스턴스 스타일 이름, 예: 'Black':type style_name: str 또는 None:param update_names: true인 경우 이름 레코드는 가장 가까운 인스턴스를 기반으로 업데이트됩니다:type update_names: bool:param update_style_flags: true인 경우 스타일 플래그는 가장 가까운 인스턴스를 기반으로 업데이트됩니다:type update_style_flags : bool:param options: FontTools.varLib.instancer:type 옵션: Dictionary:raises TypeError: 글꼴이 변수가 아닌 경우font:raises ValueError: 좌표축이 모두 고정되지 않은 경우"""font.to_static(coordinates=None, style_name=None, update_names=True, update_style_flags=True, **options)
# 저장소 복제git clone https://github.com/fabiocaccamo/python-fontbro.git && cd python-fontbro# virtualenv를 만들고 itpython -m venv venv && 활성화합니다. venv/bin/activate# 업그레이드 pippython -m pip install --upgrade pip# 설치 요구 사항python -m pip install -r 요구 사항.txt -r 요구 사항-test.txt# 설치 사전 커밋을 실행하여 포맷터 및 linterpre-commit 설치 -- install-hooks# toxtox#를 사용하여 테스트를 실행하거나 unittestpython -m unittest를 사용하여 테스트를 실행합니다.
MIT 라이센스에 따라 출시되었습니다.
Jérémie Hornus와 Just Van Rossum에게 특별히 감사드립니다.
GitHub에서 이 프로젝트에 별표를 표시하세요.
GitHub에서 나를 팔로우하세요
? 트위터에서 나를 팔로우하세요
? Github에서 저를 후원해주세요
python-benedict
- 키 목록/키 경로 지원, I/O 단축키(base64, csv, json, pickle, plist, query-string, toml, xml, yaml) 및 다양한 유틸리티가 포함된 dict 하위 클래스입니다.
python-fsutil
- 게으른 개발자를 위한 파일 시스템 유틸리티입니다. ?♂️