Home
Analytics
Font Weight, can't use a light font
thoren
<p><span>Hey everybody,<br><br>
I want to use a light font in my report.<br><br>
For standard text i have a style with the font but if i change the weight (see screenshot), nothing happens. Only bold and bolder works, but not lighter.<br>
The light font is installed and recognised by other applications.<br>
I tried multiple fonts with the same result.<br><br>
I work on Mac OS X and usually with Birt 4.3.2 but also tested on 4.6.<br><br>
I created a hacky workaround with changing the light font into a own new font family, but the server which should later generate the pdfs do not recognize it.</span></p>
Find more posts tagged with
Comments
icirillo
<p>Hi thoren,</p>
<p> </p>
<p>this behavior could be normal, I think it depends on how the font name is defined. For example, in my case I'm testing on Windows platform. I'm testing with font Segoe UI.</p>
<p> </p>
<p>I can notice that Segoe UI font and Segoe UI Bold font have the same name (Segoe UI), look at the attached images, so in the Birt dialog, in order to switch between them, I need to select Font: Segoe UI Bold and Weight: Bold or Nomal. However the Segoe UI light font has a different name (Segoe UI Light) and it appears in the Birt dialog as a completely different font so I need to select it in the "Font:" textbox and not in the "Weight" textbox. This is what I have been able to figure out from my test. If your use case is different please provide me with your fonts so I can be able to perform the same test.</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
thoren
<p>Hey, thanks for the fast answer.</p>
<p> </p>
<p>Can you test with this Font ?</p>
<p><a data-ipb='nomediaparse' href='
https://fonts.google.com/specimen/Lato?query=lat'>https://fonts.google.com/specimen/Lato?query=lat</a></p>
;
<p> </p>
<p>On Mac, i don't have any light Fonts to select and unfortunately Windows is not an option.</p>
icirillo
<p>You are welcome.</p>
<p> </p>
<p>I get exactly the same result with Lato fonts. See screenshot.</p>
<p> </p>
<p>Is there any chance you can perform the same test on windows platform (to check if any difference) or to provide me with your fonts?</p>
<p> </p>
<p> </p>
icirillo
<p>Forgot to mention that you can get the same behavior with pure javascript:</p>
<p> </p>
<p><a data-ipb='nomediaparse' href='
http://www.w3schools.com/cssref/pr_font_weight.asp'>http://www.w3schools.com/cssref/pr_font_weight.asp</a></p>
;
thoren
<p>On windows, i also see the light font as a seperate font. Strange.</p>
<p> </p>
<p>The Javascript way also don't work on Mac.</p>
<p>The Light Fonts are not even loaded in Birt, only Regular and Bold.</p>
icirillo
<p>If I understand correctly, you don't see the light fonts in Birt when you are on Mac. If the fonts are correctly installed in Mac OS and the same fonts are correctly loaded in Birt on Windows OS then there could be a bug for the Birt Mac version. Sorry but I don't have a mac environment available to perform further tests. Please consider filing a new bug on <a data-ipb='nomediaparse' href='
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=BIRT'>bugzilla</a>
; if you are using the open source version. Sorry for not being able to help more.</p>
<p>Just out of curiosity what do you mean with: "The Javascript way also don't work on Mac." ?</p>