-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
[bug] font issue of og image in Chinese and Japanese language #355
Comments
I asked a question in their repo for this issue. |
@m-kuhn Do you have access to Material for Mkdocs Insiders version? I saw you are setting QField-docs/.github/workflows/gh-pages.yml Lines 31 to 34 in 9db751f
See the below documentation of typography. Looks like insiders version can solve this issue by adding font family and font style for each markdown file. If QField can use insiders version of the module, this can be solved easily. I think you can insert the following YAML into each size: { width: 1200, height: 630 }
layers:
- font:
family: Noto Sans JP or Noto Sans SC
style: Bold Could you try this? |
I got response from material for mkdocs author. squidfunk/mkdocs-material#5704 (reply in thread) maybe you can try insiders version. I can’t do it since I have no access to insiders. |
@why-not-try-calmer looks like this bug is still not solved |
I now realize that:
Unfortunately this repository is structured in a way that requires this unsupported method for using metadata based on file extension. In other words, solving this issue requires that either upstream supports using metadata based on file extension, or that we change the file structure. Not really promising :( |
When we select Japanese or Chinese language, social image's font has an issue.
https://docs.qfield.org/assets/images/social/get-started/concepts.ja.png
https://docs.qfield.org/assets/images/social/get-started/concepts.zh.png
According to the documentation, there is a way to set font family in mkdocs.yml, but I am not sure how we can change font family dynamically according to the language of content.
https://squidfunk.github.io/mkdocs-material/setup/setting-up-social-cards/#choosing-a-font
The text was updated successfully, but these errors were encountered: