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

Wrong font file name: DSEG*-(Regular)Italic #14

Closed
fetus-hina opened this issue Nov 19, 2018 · 2 comments
Closed

Wrong font file name: DSEG*-(Regular)Italic #14

fetus-hina opened this issue Nov 19, 2018 · 2 comments

Comments

@fetus-hina
Copy link

日本語で失礼します。

v0.45.0 時点で、例えば DSEG7 Classic Regular Italic を使用しようとする場合、

DSEG/css/dseg.css

Lines 41 to 48 in 3166fd8

@font-face {
font-family: 'DSEG7-Classic';
src: url('../fonts/DSEG7-Classic/DSEG7Classic-Italic.woff2') format('woff2'),
url('../fonts/DSEG7-Classic/DSEG7Classic-Italic.woff') format('woff'),
url('../fonts/DSEG7-Classic/DSEG7Classic-Italic.ttf') format('truetype');
font-weight: normal;
font-style: italic;
}
から fonts/DSEG7-Classic/DSEG7Classic-Italic.*** が利用され(ようとす)ると思います。

しかしながら、このファイル(群)は fonts ディレクトリには存在せず、かわりに DSEG7Classic-RegularItalic.*** が存在します。("Regular" が入っている)

そのため、添付されている CSS ファイルでは web font が適用されない問題が発生します。

fetus-hina added a commit to fetus-hina/stat.ink that referenced this issue Nov 19, 2018
keshikan/DSEG#14 の問題により、
Regular Italic での表示がそのままではうまくいかないので、
とりあえず Regular Normal での表示

Signed-off-by: AIZAWA Hina <hina@bouhime.com>
@keshikan
Copy link
Owner

keshikan commented Nov 19, 2018

重要なご指摘ありがとうございます。

npmパッケージに以下の変更を加えました。
・CSS内のファイル名と、実ファイル名との不一致を解決
・dseg.cssを使用したサンプル(sample.html)を追加

ご確認頂ければ幸いです。

fetus-hina added a commit to fetus-hina/stat.ink that referenced this issue Nov 19, 2018
keshikan/DSEG#14
Signed-off-by: AIZAWA Hina <hina@bouhime.com>
@fetus-hina
Copy link
Author

regular italic が正常に表示できることを確認しました。
対応ありがとうございます。

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

2 participants