Code Monkey home page Code Monkey logo

Comments (3)

UNICKCHENG avatar UNICKCHENG commented on August 15, 2024

Hi @AlucPro, the error in the screenshot is caused by the failure to download the font. Multiple redundant addresses have been configured in the code to ensure that the font is more likely to be downloaded, but there may still be cases where some address requests fail. Please refer to scss/_fonts.scss for details.

Has the font in the logseq application changed (as shown in the screenshot below)? If the font has changed, this error can be ignored. It is recommended to download themes from the plugin marketplace instead of using @import to ensure normal use in offline mode

image

from logseq-developer-theme.

UNICKCHENG avatar UNICKCHENG commented on August 15, 2024

@AlucPro Just discovered that the font cache was invalid today, and the latest version has been fixed. You can now download it directly from the plugin marketplace. If the font still doesn't change, please try checking if there is a .ttf file in the ~/.logseq/plugins/logseq-developer-theme/fonts directory.

image

from logseq-developer-theme.

AllanChain avatar AllanChain commented on August 15, 2024

@UNICKCHENG I found that the latest release v1.2.14 has an empty fonts/ directory. Is this intentional or a regression?

Also, the font LxgwWenKai-Lite is loaded first from the remote then local, which is not optimal. Can you switch the order?

// https://github.com/lxgw/LxgwWenKai-Lite
@font-face {
font-family: common-font;
@if not $IS_WEB {
// GitHub do not affect local use, but there are CORS(crossover restrictions) if used on the web.
src: url("https://github.com/lxgw/LxgwWenKai-Lite/releases/download/v1.245.1/LXGWWenKaiLite-Regular.ttf") format("TrueType"),
url("../fonts/Fonts_LXGWWenKaiLite_Regular.ttf") format("TrueType"),
url("fonts/Fonts_LXGWWenKaiLite_Regular.ttf") format("TrueType"),
url("https://docs.unickcheng.cc/static/fonts/Fonts_LXGWWenKaiLite_Regular.ttf") format("TrueType");
} @else {
src: url("https://docs.unickcheng.cc/static/fonts/Fonts_LXGWWenKaiLite_Regular.ttf") format("TrueType");
}
}

from logseq-developer-theme.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.