Open Sans not used in Harmony

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
jobor
Posts: 33
Joined: 19 Dec 2011, 22:34
Location: the Netherlands

21 Mar 2020, 22:16

Hello,
The css does declare for the body that "Open Sans" is the first choice font to use. But it is not declared anywhere as downloadable font.
So actually on my Mac it is using Helvetica Neue.
Is this how it is meant to be?

Code: Select all

body {
  font-family: "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 14px;
  color: #333333;
  -webkit-font-smoothing: antialiased;
  padding: 0;
  margin: 0;
  min-height: 100%;
  background-color: #f4f4f4; 
}
With regards,
Johan Borchers

Mac OS X 10.15.7
NetBeans 12.3
OpenJDK Zulu11.37
JSF Mojarra 2.3.14
PrimeFaces 10.0.0
Tomcat 9.0.43
MySQL 5.6.x

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

23 Mar 2020, 13:42

Hi,

Do you have open sans files under src/main/webapp/resources/harmony-layout/fonts?

Best Regards,

jobor
Posts: 33
Joined: 19 Dec 2011, 22:34
Location: the Netherlands

23 Mar 2020, 21:39

I do have them in the webapp but standard in the demo there are no @font-face declarations.
If I want to use Open Sans then I have to declare @font-face statement my self.
So the question was if it is be design that there is no declaration of @font-face for Open Sans in the demo webapp?

Image
With regards,
Johan Borchers

Mac OS X 10.15.7
NetBeans 12.3
OpenJDK Zulu11.37
JSF Mojarra 2.3.14
PrimeFaces 10.0.0
Tomcat 9.0.43
MySQL 5.6.x

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

03 Apr 2020, 12:32

Goooood catch!!! Thanks a lot! Fixed now. Please try;
in _layout.scss

Code: Select all

@import './_variables';
@import './_mixins';
@import '../_fonts';    /* Please add this line */
@import './_main';
...
Best Regards,

Post Reply

Return to “Harmony - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests