Skip to content

Support the size-adjust font descriptor #1484

@MurakamiShinyu

Description

@MurakamiShinyu

The size-adjust descriptor specified in @font-face rule should not be ignored.

Sample HTML: size-adjust.html

<style>
@font-face {
  font-family: 'Custom Avenir';
  src: local('Avenir Roman');
  size-adjust: 106%;
}
.A {
  font-family: 'Avenir', 'Hiragino Sans', sans-serif;
}
.B {
  font-family: 'Custom Avenir', 'Hiragino Sans', sans-serif;
}
</style>
<p class="A">愛Loveのあるユニークuniqueで豊かrichな書体font。日本語とEnglishの文字のsizeを調整(してない)</p>
<p class="B">愛Loveのあるユニークuniqueで豊かrichな書体font。日本語とEnglishの文字のsizeを調整(している)</p>

Test with Vivliostyle Viewer (v2.31.2):
https://vivliostyle.github.io/viewer/v2.31.2/#src=https://gist.githack.com/MurakamiShinyu/3553fc782ca07217a9eb2c822cdd9de9/raw/size-adjust.html

Result screenshot:

Image

Expected result (Google Chrome):

Image

参考記事:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions