kobo吧 关注:9,878贴子:89,524
  • 12回复贴,共1

谁能发一个最新版的字体补丁文件。

只看楼主收藏回复

kobo aura one 4.26.16704升级后,多字体书籍无法显示正确的字体(改成出版商默认都不行)。之前有人说是因为新版本屏蔽了,需要打补丁才行,自己操作了半天都无法做出来补丁,谁有多字体补丁,麻烦分享一下,谢谢。


IP属地:四川1楼2021-04-06 17:36回复
    补丁按以下部分修改:
    Un-Force user font-family in KePubs:
    - Enabled: yes
    - Description: |
    The KePub reader uses a very heavy-handed method of setting the font selected
    by the user, overriding all fonts set by the publisher in the book unless
    "Publisher Default" is selected.
    This patch lets the font-family set by the publisher in the KePub stylesheet
    override the font-family selected by the reader from the device in some
    cases, which allows a mix of user-selected and publisher-selected fonts.
    Alternatives 1-3 give increasing preference to the publisher-selected fonts.
    - FindBaseAddressString: "* { font-family: %1 !important; }\n"
    #
    # Alternative 1:
    # * { font-family: %1 !important; }\n
    # --> div,p{font-family:%1!important; }\n
    # - ReplaceString:
    # Find: "* { font-family: %1 !important; }\n"
    # Replace: "div,p{font-family:%1!important; }\n"
    # MustMatchLength: yes
    #
    # Alternative 2: (Similar to ePub default)
    # * { font-family: %1 !important; }\n
    # --> body,p{font-family:%1!important;}\n
    # - ReplaceString:
    # Offset: 0
    # Find: "* { font-family: %1 !important; }\n"
    # Replace: "body,p{font-family:%1!important;}\n"
    # MustMatchLength: yes
    #
    # Alternative 3: (similar to ePub with `Un-force font-family override p tags`)
    # * { font-family: %1 !important; }\n
    # --> body{font-family:%1 !important; }\n
    - ReplaceString:
    Offset: 0
    Find: "* { font-family: %1 !important; }\n"
    Replace: "body{font-family:%1 !important; }\n"
    MustMatchLength: yes
    务必注意缩进,因为#占两个半角的位置。而空格只占一个,跑跑看能出补丁不。还是不能出我再网盘发源文件。


    IP属地:上海3楼2021-04-07 17:59
    收起回复