Page 1 of 1

Open Sans not used in Harmony

Posted: 21 Mar 2020, 22:16
by jobor
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; 
}

Re: Open Sans not used in Harmony

Posted: 23 Mar 2020, 13:42
by mert.sincan
Hi,

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

Best Regards,

Re: Open Sans not used in Harmony

Posted: 23 Mar 2020, 21:39
by jobor
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

Re: Open Sans not used in Harmony

Posted: 03 Apr 2020, 12:32
by mert.sincan
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,