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

Fail to render Japanese fonts #873

Open
hamano opened this issue Dec 13, 2023 · 2 comments
Open

Fail to render Japanese fonts #873

hamano opened this issue Dec 13, 2023 · 2 comments

Comments

@hamano
Copy link

hamano commented Dec 13, 2023

Japanese pdf is not rendered nextcloud 28 clean installation. A blank page is displayed.
The cause is that some static files, including the bcmap file, have not been retrieved.

The following files can be successfully retrieved without authentication. (apache responds 200)

The following file is not found.(apache responds 404)

I seem to have a problem with static file routing.
Any advice on how to correct this would be appreciated.

sample pdf:
https://hikaku.cman.jp/pdf/sample/pdf_font_none.pdf

Server configuration

Deployed dockerhub image 28-apache

List of activated apps:

default apps

Nextcloud configuration:

default

Client configuration

Browser:
chrome, firefox
It's not a browser matter. I confirmed 404 response with the curl command.

@qibao07
Copy link

qibao07 commented Jan 11, 2024

Chinese is not displayed either.

@qibao07
Copy link

qibao07 commented Mar 5, 2024

    location /apps/files_pdfviewer/js/pdfjs/web/cmaps {
        proxy_pass http://host.docker.internal:57208/github-mirror/files_pdfviewer/raw/branch/master/js/pdfjs/web/cmaps/;
        proxy_set_header Host $http_host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
    location / {
        proxy_pass http://host.docker.internal:57202/; # nextcloud server
        proxy_set_header Host $http_host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }

"/apps/files_pdfviewer/js/pdfjs/web/cmaps/UniGB-UCS2-H.bcmap"

When the requested address can be accessed successfully, the problem is solved.

But this is only a temporary solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants