【Fonts】Font Properties
この記事の続き
https://force4u.cocolog-nifty.com/skywalker/2019/07/post-911598.html
fc-scan を使う方法もあります。
例文
fc-scan --format "%{family}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{familylang}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{style}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{stylelang}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{fullname}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{fullnamelang}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{slant}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{weight}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{size}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{width}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{aspect}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{pixelsize}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{spacing}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{foundry}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{antialias}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{hinting}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{hintstyle}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{verticallayout}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{autohint}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{globaladvance}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{file}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{index}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{ftface}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{rasterizer}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{outline}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{scalable}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{color}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{scale}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{dpi}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{rgba}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{lcdfilter}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{minspace}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{charset}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{lang}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{fontversion}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{capability}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{fontformat}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{embolden}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{embeddedbitmap}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{decorative}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{fontfeatures}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{namelang}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{prgname}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
fc-scan --format "%{postscriptname}\n" "/System/Library/Fonts/ヒラギノ角ゴ ProN W3.otf"
Property | Type | Description |
---|---|---|
family | String | Font family names |
familylang | String | Languages corresponding to each family |
style | String | Font style. Overrides weight and slant |
stylelang | String | Languages corresponding to each style |
fullname | String | Font full names (often includes style) |
fullnamelang | String | Languages corresponding to each fullname |
slant | Int | Italic, oblique or roman |
weight | Int | Light, medium, demibold, bold or black |
size | Double | Point size |
width | Int | Condensed, normal or expanded |
aspect | Double | Stretches glyphs horizontally before hinting |
pixelsize | Double | Pixel size |
spacing | Int | Proportional, dual-width, monospace or charcell |
foundry | String | Font foundry name |
antialias | Bool | Whether glyphs can be antialiased |
hinting | Bool | Whether the rasterizer should use hinting |
hintstyle | Int | Automatic hinting style |
verticallayout | Bool | Use vertical layout |
autohint | Bool | Use autohinter instead of normal hinter |
globaladvance | Bool | Use font global advance data (deprecated) |
file | String | The filename holding the font |
index | Int | The index of the font within the file |
ftface | FT_Face | Use the specified FreeType face object |
rasterizer | String | Which rasterizer is in use (deprecated) |
outline | Bool | Whether the glyphs are outlines |
scalable | Bool | Whether glyphs can be scaled |
color | Bool | Whether any glyphs have color |
scale | Double | Scale factor for point->pixel conversions (deprecated) |
dpi | Double | Target dots per inch |
rgba | Int | unknown, rgb, bgr, vrgb, vbgr,none - subpixel geometry |
lcdfilter | Int | Type of LCD filter |
minspace | Bool | Eliminate leading from line spacing |
charset | CharSet | Unicode chars encoded by the font |
lang | String | List of RFC-3066-style languages thisfont supports |
fontversion | Int | Version number of the font |
capability | String | List of layout capabilities in the font |
fontformat | String | String name of the font format |
embolden | Bool | Rasterizer should synthetically embolden the font |
embeddedbitmap | Bool | Use the embedded bitmap instead of the outline |
decorative | Bool | Whether the style is a decorative variant |
fontfeatures | String | List of the feature tags in OpenType to be enabled |
namelang | String | Language name to be used for the default value offamilylang, stylelang, and fullnamelang |
prgname | String | StringName of the running program |
postscriptname | String | Font family name in PostScript |
| 固定リンク
「Fonts」カテゴリの記事
- [Fontbook]fontbookに実装されているVermilionBird朱雀(2023.10.23)
- [macOS14]Asset_Font6にしか無いフォント(2023.10.15)
- [PDF]文字サイズの標準化の歴史をたどる(2023.06.30)
- 書体選び(2021.12.24)
- どう違う? 「字体」「字形」「書体」「フォント」(2021.12.01)