콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
4110 화면

Ok, so the ones in charge got picky and want that to use a certain font to be used on the website. Despite my encouragement to opt for a google font they wanted another one and we bought a pay as you go license from fonts dot com.


Now i want to make it available in the theme.


The allowed google fonts in my theme are for now defined this way:


$o-theme-font-configs: (
'EB Garamond': (
'family': ('EB Garamond', serif),
'url': 'EB+Garamond:400,400i,500,500i,600,600i,700,700i,800,800i,900,900i',
),
'Lato': (
'family': ('Lato', sans-serif),
'url': 'Lato:200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i',
),
);


But now i want to add the other webfont to that array of fonts in the theme.


I need to add a javascript, which i added to the bundle, and i need to refer to the font as such according to the font dot com docs:


@font-face{
font-family:"FancyFont Regular";
src:url("fonts/fancyfont.woff2") format("woff2"),url("fonts/fancyfont.woff") format("woff");
}


the woff files i can put in /mytheme/static/src/fonts/ 


The 

$o-theme-font-configs

Seems to be a translation step ?



아바타
취소
관련 게시물 답글 화면 활동
1
10월 22
895
0
4월 22
3263
1
11월 23
5490
1
1월 22
3923
1
11월 21
2373