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

About 3DText #61

Open
yywf77 opened this issue Oct 28, 2024 · 1 comment
Open

About 3DText #61

yywf77 opened this issue Oct 28, 2024 · 1 comment

Comments

@yywf77
Copy link

yywf77 commented Oct 28, 2024

Hi nartc! I found that local loading is normal when using 3DText today, but it takes about 3 minutes for remote loading to appear after the project is published. Is there any way to improve the speed of remote loading

      <ngts-center >
        <ngts-float>
          <ngts-text-3d [text]="title()" [font]="font()" [options]="options()">
            <ngt-mesh-normal-material />
          </ngts-text-3d>
        </ngts-float>
    </ngts-center>
@nartc
Copy link
Member

nartc commented Nov 1, 2024

Is the font dynamic or static? If statically known, you can try preloading it with injectFont.preload() outside of Angular components (or in main). Like:

injectFont.preload(() => '/path/to/font')


@Component()
export class MyCmp {}

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

No branches or pull requests

2 participants