Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

경로를 못찾는 에러가 있습니다. #14

Open
ghost opened this issue May 22, 2023 · 7 comments
Open

경로를 못찾는 에러가 있습니다. #14

ghost opened this issue May 22, 2023 · 7 comments

Comments

@ghost
Copy link

ghost commented May 22, 2023

image
전체적으로 확인해보았는데, 경로를 못찾는 에러가 있습니다.

@black7375
Copy link
Owner

혹시 main.js 내용을 보여주실 수 있으실까요?
어떠한 상황에서 에러가 일어나는지 체크해봐야 할 것 같아요.

버그가 맞아도 복잡한 버그면 6월 중반까지는 조금 바빠서 대응이 느릴수는 있어요.
간단한거면 주말에 처리해보겠습니다.

@ghost
Copy link
Author

ghost commented May 22, 2023 via email

@black7375
Copy link
Owner

제가 받는 메일에는 첨부파일까지는 전달이 안되나봐요
불편하셔도 깃허브 접속하셔서 첨부 가능하실까요?

@ghost
Copy link
Author

ghost commented May 23, 2023

main.js.zip
파일 업로드 했습니다~

import { fontRange } from 'font-range';

fontRange(
  '/Users/go21/Downloads/GmarketSansOTF/Gmarket Sans.otf',
  {
    savePath: './GmarketSans/',
    format: 'woff2',
  },
);

@black7375
Copy link
Owner

코드를 돌려보지는 않았는데, 파라미터를 잘못 넣으신것 같아요.

fontRange 함수는 다음과 같습니다.

fontRange(font_path, css_url_or_path, { ...options }); // Option2`

아마 이런식으로 서브셋을 시도하시면 될 것 같네요.

import { fontRange, targets } from 'font-range';

fontRange(
  '/Users/go21/Downloads/GmarketSansOTF/Gmarket Sans.otf',
  targets.korean, // 또는 unicode-range가 있는 CSS 파일
  {
    saveDir: './GmarketSans/',
    format: 'woff2',
  },
);

@ghost
Copy link
Author

ghost commented Jun 2, 2023

혹시 스타일파일에 대한 경로도 변경 할 수 있을까요?

@black7375
Copy link
Owner

CSS 파일이 다운로드 받아지는 경로 말씀하시는거죠?
아직은 saveDir로만 가능합니다.

당장은 시간이 없어 커밋은 못할듯 하고, 만약 기여하실거라면 다음 함수를 주로 참고하시면 됩니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant