0

我不熟悉在嵌入式网络字体中使用连字。我已经构建了一个带有特定连字的自定义字体,当键入一系列字符时,它将嵌入一个徽标(字形)。它在任何地方都能完美运行,但当它嵌入我的网站时。我尝试了各种字体变体连字的排列,但无济于事,转换不会出现。我尝试过 WOFF、WOFF2、OTF 和 SVG 格式,我做错了什么?

    @font-face {
        font-family: '4ORE';
        src: url('.../files/4ORE-Regular.woff2?v=1607563116') format('woff2'), /* Modern Browsers */
        url('.../files/4ORE-Regular.otf?v=1607563219') format('opentype'); /* Safari, Android, iOS */
        font-style: normal;
        font-weight: normal;
        text-rendering: optimizeLegibility;
    }

    body, html {
        padding: 0;
        margin: 0;
        font-family: '4ORE' !important;
        font-variant-ligatures: normal;
        font-feature-settings: "liga", "clig";
    }

字体特征码如下:

    feature liga {
        # GSUB feature: Standard Ligatures
        # Lookups: 2

        script latn; # Latin

        lookup liga_latn_2 {
        # GSUB lookup 9, type 14 (Ligature)
           sub f f i by f_f_i;
           sub f i by fi;
        } liga_latn_2;

        lookup liga_latn {
        # GSUB lookup 10, type 14 (Ligature)
            sub f f l by f_f_l;
            sub f l by fl;
        } liga_latn;

        lookup liga_latn_4 {
        # GSUB lookup 11, type 14 (Ligature)
            sub four o r e by four_o_r_e;
        } liga_latn_4;

        language FRA ; # French
        lookup liga_latn_2;
        lookup liga_latn;

        language AZE  exclude_dflt; # Azerbaijani
        lookup liga_latn;

        language TRK  exclude_dflt; # Turkish
        lookup liga_latn;

        language MOL ; # Moldavian
        lookup liga_latn_2;
        lookup liga_latn;

        language ROM ; # Romanian
        lookup liga_latn_2;
        lookup liga_latn;

        language CRT  exclude_dflt; # Crimean Tatar
        lookup liga_latn;

        language NAV ; # Navajo
        lookup liga_latn_2;
        lookup liga_latn;
    } liga;
4

0 回答 0