add default font for arimo font
This commit is contained in:
parent
22bc7bb644
commit
8de4ad9979
@ -6,7 +6,7 @@
|
||||
"name": "app",
|
||||
"installMode": "prefetch",
|
||||
"resources": {
|
||||
"files": ["/favicon.ico", "/manifest.webmanifest", "/*.css", "/*.js", "!/assets/wv-resources/**"]
|
||||
"files": ["/favicon.ico", "/manifest.webmanifest", "/*.css", "/*.js"]
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -14,7 +14,7 @@
|
||||
"installMode": "lazy",
|
||||
"updateMode": "prefetch",
|
||||
"resources": {
|
||||
"files": ["/assets/**", "!/assets/wv-resources/**", "/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)"]
|
||||
"files": ["/assets/**", "/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)"]
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@ -13,6 +13,7 @@ import { asList } from '../utils/functions';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
import { LicenseService } from '@services/license.service';
|
||||
import { UserPreferenceService } from '@users/user-preference.service';
|
||||
import { environment } from '@environments/environment';
|
||||
import TextTool = Core.Tools.TextTool;
|
||||
import Annotation = Core.Annotations.Annotation;
|
||||
import TextHighlightAnnotation = Core.Annotations.TextHighlightAnnotation;
|
||||
@ -149,9 +150,9 @@ export class PdfViewer {
|
||||
async init(htmlElement: HTMLElement) {
|
||||
this.#instance = await this.#getInstance(htmlElement);
|
||||
|
||||
// if (environment.production) {
|
||||
// this.#instance.Core.setCustomFontURL('http://' + window.location.host + this._convertPath('/assets/pdftron'));
|
||||
// }
|
||||
if (environment.production) {
|
||||
this.#instance.Core.setCustomFontURL('https://' + window.location.host + this._convertPath('/assets/pdftron'));
|
||||
}
|
||||
|
||||
try {
|
||||
await this.PDFNet.initialize(this._licenseService.activeLicenseKey);
|
||||
|
||||
@ -22,6 +22,11 @@
|
||||
"target": "m+1p1",
|
||||
"type": "Wildcard"
|
||||
},
|
||||
{
|
||||
"match": "Arimo*",
|
||||
"target": "m+1p1",
|
||||
"type": "Wildcard"
|
||||
},
|
||||
{
|
||||
"target": "m+1p1",
|
||||
"type": "All"
|
||||
|
||||
@ -10,14 +10,12 @@ RUN jq '{ dependencies, devDependencies, peerDependencies, scripts: (.scripts |
|
||||
|
||||
# We label our stage as ‘builder’
|
||||
FROM node:18.16-buster as builder
|
||||
#RUN apt-get update && apt-get install -y jq
|
||||
RUN apt-get update && apt-get install -y jq
|
||||
|
||||
COPY --from=prep /tmp/deps.json ./package.json
|
||||
COPY yarn.lock ./
|
||||
|
||||
## Storing node modules on a separate layer will prevent unnecessary npm installs at each build
|
||||
RUN yarn cache clean
|
||||
RUN rm -rf ./node_modules
|
||||
RUN yarn install && mkdir /ng-app && mv ./node_modules ./ng-app
|
||||
ARG bamboo_sonarqube_api_token_secret
|
||||
ENV bamboo_sonarqube_api_token_secret=$bamboo_sonarqube_api_token_secret
|
||||
@ -28,13 +26,13 @@ COPY apps apps
|
||||
COPY libs libs
|
||||
COPY tools tools
|
||||
COPY package.json package.json
|
||||
#COPY version.json version.json
|
||||
#RUN cat version.json
|
||||
#RUN version=$(jq .FRONTEND_APP_VERSION version.json -r | cat) && \
|
||||
# jq --arg version "$version" '.version = $version' package.json > tmp.json && \
|
||||
# mv tmp.json package.json
|
||||
#
|
||||
#RUN cat package.json
|
||||
COPY version.json version.json
|
||||
RUN cat version.json
|
||||
RUN version=$(jq .FRONTEND_APP_VERSION version.json -r | cat) && \
|
||||
jq --arg version "$version" '.version = $version' package.json > tmp.json && \
|
||||
mv tmp.json package.json
|
||||
|
||||
RUN cat package.json
|
||||
COPY yarn.lock yarn.lock
|
||||
COPY angular.json angular.json
|
||||
COPY nx.json nx.json
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user