2017-03-16 4 views
0

사용자 정의 글꼴을 Visualforce 페이지에 적용하려고 시도 중이고 벽돌 벽을 실행 중입니다. 글꼴의 압축 파일을 만들어 Salesforce의 외부 리소스에로드했지만 보유하지 않는 것 같습니다. 여기 내가 그들을 참조해야 할 코드가있다. 할 수 있으면 도와주세요 ...Visualforce 페이지의 사용자 정의 글꼴

@font-face { 
    font-family: 'Helvetica Neue Regular'; 
    src: url({!URLFOR($Resource.sncFonts, '/HelveticaNeue-Regular.ttf')}); 
} 

.callout.std-callout{ 
    font-size: 12px; 
    font-family: "Helvetica Neue Regular"; 
    color: #414141; 
} 
+0

어떻게 작동합니까? 같은 상황에있다 – Khaleel

+0

안녕 Khaleel, 나는 답이 표시 한 것을 따라 갔지만 자원은 지역적이어야했다. 다음은 스 니펫입니다. @ font-face { font-family : 'Helvetica Neue Regular'; src : url ("{! URLFOR ($ Resource.sncFonts, '/sncFonts/HelveticaNeue-Regular.ttf')}"); } – user2569499

답변

0

zip 파일의 글꼴 파일 경로를 다시 확인할 수 있습니까? 다른 글꼴 형식을 사용해 보셨습니까?

<style> 
@font-face{ 
font-family: 'samplefont'; 
src: url("{!URLFOR($Resource.staticResourceName, '/Path/filename.eot')}"); /* IE9*/ 
src: url("{!URLFOR($Resource.staticResourceName, '/Path/filename.eot?#iefix')}") format('embedded-opentype'), /* IE6-IE8 */ 
url("{!URLFOR($Resource.staticResourceName, '/Path/filename.woff')}") format('woff'); /* Modern browsers*/ 
font-weight: 400; 
font-style: normal; 
} 
#content { font-family: samplefont; !important } 
</style> 
+0

누구든지이 대답을 받아들입니다. 작동합니까? – Khaleel