Issue with font

Post Reply
mastobood
Posts: 1
Joined: 09 Mar 2022, 09:00

09 Mar 2022, 09:37

Hi, I am new in primefaces products.
I have decided to use primeblocks for my angular project and want to buy a license.
The issue is that after I copy primeblock code from the https://www.primefaces.org/primeblocks-ng/#/ and what I get in my http://localhost:4200/ - fonts are different.
Image

What I have done:
1. package.json
Image
2. angular.json
Image

Could you please give me an advice how to solve it?

mert.sincan
Posts: 5074
Joined: 29 Jun 2013, 12:38

08 Apr 2022, 12:11

Hi,

Sorry for the delayed response! Please try;

Code: Select all

body {
    font-family: var(--font-family);
}
Best Regards,

cagatay.civici
Prime
Posts: 18539
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

09 Apr 2022, 10:47

We'll add this information to the documentation so that it will look exactly the same when copied-pasted.

mangelo
Posts: 26
Joined: 17 May 2013, 17:23

09 Jun 2022, 17:14

Fonts are still off when you copy from PrimeBlock. Is there a resolution to this?
PrimeNG 13.4.0
Spring Boot 2.7.0

mert.sincan
Posts: 5074
Joined: 29 Jun 2013, 12:38

16 Jun 2022, 12:24

Hi,

Did you try the following code in your project?

Code: Select all

body {
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
Could you please check it in the browser's inspector? Also, please check 'Font Settings' section;
https://www.primefaces.org/primeblocks- ... umentation

Best Regards,

Post Reply

Return to “PrimeBlocks for PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests