
    is                        d Z ddlZddlmZ  ee      j                         j                  j                  j                  Z ee      ej                  vr"ej                  j                  d ee             ddlmZ ddlmZmZ  ej                          Z eej%                  d            Z ej(                         dz  dz  Zed	   d
   d   Zed	   d   d   Zed	   d   d   Zed	   d   d   Zed	   d   d   Zed   d   ZdefdZy)u   ai-image-gen 공통 설정 모듈.

모든 gen_*.py, rerender_*.py 파일이 이 모듈을 통해 경로 및 디자인 토큰에 접근.
Usage:
    from gen_config import WORKSPACE_ROOT, FONT_DIR, HEADLINE_MIN_PX, ...
    N)Path)ConfigManager)ABSOLUTE_MIN_PXDQ_RULESzroots.workspacez.local/share/fonts
Pretendard
font_sizescore_metricminheadlinesubheadcta
disclaimer
font_ratiomin_head_sub_ratioreturnc                  N    dt          dt          dt          dt          dt          dS )uA   Pretendard @font-face CSS 블록 반환 (f-string 내 삽입용).zC  @font-face {
    font-family: 'Pretendard';
    src: url('file://z/Pretendard-Black.otf') format('opentype');
    font-weight: 900;
  }
  @font-face {
    font-family: 'Pretendard';
    src: url('file://z/Pretendard-ExtraBold.otf') format('opentype');
    font-weight: 800;
  }
  @font-face {
    font-family: 'Pretendard';
    src: url('file://z/Pretendard-Bold.otf') format('opentype');
    font-weight: 700;
  }
  @font-face {
    font-family: 'Pretendard';
    src: url('file://z/Pretendard-Medium.otf') format('opentype');
    font-weight: 500;
  }
  @font-face {
    font-family: 'Pretendard';
    src: url('file://zG/Pretendard-Regular.otf') format('opentype');
    font-weight: 400;
  })FONT_DIR     N/home/jay/workspace/.worktrees/task-2116-dev1/tools/ai-image-gen/gen_config.pyget_font_face_cssr   %   sK    Z  
 Z  
 Z  
 Z  
 Z  - r   )__doc__syspathlibr   __file__resolveparent_WORKSPACE_ROOTstrpathinsertconfig.loaderr   tools.dq_rulesr   r   get_instance_cfgget_pathWORKSPACE_ROOThomer   CORE_METRIC_MIN_PXHEADLINE_MIN_PXSUBHEAD_MIN_PX
CTA_MIN_PXDISCLAIMER_MIN_PXHEAD_SUB_RATIOr   r   r   r   <module>r/      s*     x.((*1188??sxx'HHOOAs?+, ' 4!}!!# dmm$567499;--< l+M:5A <(4U;,'	259l#E*51
\*<8?  ,'(<=3 r   