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

Monospace and fallback fonts tweaks #486

Merged
merged 7 commits into from
Jul 17, 2022

Commits on Jul 16, 2022

  1. Configuration menu
    Copy the full SHA
    362c7b3 View commit details
    Browse the repository at this point in the history
  2. Fonts: getFontFileNameAndFaceIndex(): return family type

    As crengine/FreeType can't distinguish sans serif
    from serif, this is only useful to detect if a font
    is monospace or not. Might be useful for frontends.
    poire-z committed Jul 16, 2022
    Configuration menu
    Copy the full SHA
    d9a37e5 View commit details
    Browse the repository at this point in the history
  3. Fonts: account for _bias in Font hash

    Should trigger a rerendering when we change the
    bias of some fonts.
    Also fix GetFontListHash() which was always
    returning 0 since ages...
    poire-z committed Jul 16, 2022
    Configuration menu
    Copy the full SHA
    c74fe34 View commit details
    Browse the repository at this point in the history
  4. epub.css, fb2.css: remove hardcoded monospace font names

    This should allow another monospace font, set with a bias,
    to be used for <pre> and <code> (as with anything having
    "font-family: monospace").
    poire-z committed Jul 16, 2022
    Configuration menu
    Copy the full SHA
    fcab75b View commit details
    Browse the repository at this point in the history
  5. Fonts: allow scaling monospace fonts

    So that when using a main font with a small x-height,
    one can avoid having tall inline <code> bits, and
    adjust them (manually) to fit the size of the main font
    or to be a bit smaller to help distinguishing them.
    poire-z committed Jul 16, 2022
    Configuration menu
    Copy the full SHA
    ccaabcf View commit details
    Browse the repository at this point in the history
  6. Fonts: allow adjusting fallback font sizes to x-height

    Having all fallback font size having the same x-height
    should make lowercase letters picked from them less
    noticable (this can be noticable with greek words,
    as latin fonts often have only a subset of greek
    letters, related to maths).
    poire-z committed Jul 16, 2022
    Configuration menu
    Copy the full SHA
    456910c View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2022

  1. HTML parser: trust xml encoding before html charset

    EPUBs can have both, and it seems that doing it
    per XHTML specs is the right thing to do.
    poire-z committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    f838b52 View commit details
    Browse the repository at this point in the history