[prev in list] [next in list] [prev in thread] [next in thread]
List: openjdk-openjfx-dev
Subject: Re: @font-face question
From: Thiago_Milczarek_SayĆ£o <thiago.sayao () gmail ! com>
Date: 2022-05-23 12:32:40
Message-ID: CAAP_wunidZtpCPBgXtYfOHMGXzEcZGUL3+K5UAkfR6cXNqoAyQ () mail ! gmail ! com
[Download RAW message or body]
Hi,
After further investigation, I think there's a bug that font-family is not
working (defining a font family name).
Because regardless of the font-family I use, the font name within the font
is used.
It's openjfx 17.0.2
-- Thiago.
Em sex., 20 de mai. de 2022 =C3=A0s 18:06, Thiago Milczarek Say=C3=A3o <
thiago.sayao@gmail.com> escreveu:
> Hi,
>
> I want to have one font that is "regular" and a variation of the same fon=
t
> as "bold", used when specified "-fx-font-weight: bold".
>
> @font-face {
> font-family: 'Gotham Condensed';
> src: url('../fonts/GothamCondensed-Book.otf');
> }
>
> @font-face {
> font-family: 'Gotham Condensed Bold';
> src: url('../fonts/GothamCondensed-Bold.otf');
> }
>
>
> .text {
> -fx-font-family: 'Gotham Condensed';
> }
>
> I have searched online and there are many variations such as:
>
> - @font-face "font-family" is ignored and you have to use the real font
> name;
> - If you use 'Bold' as a suffix, javafx will use it as bold;
> - you have to specify "font-weight: bold" on the @font-face
>
> The last one is what seems that the CSS specs says, but does not seem to
> work.
>
> Is it possible?
>
> Thanks.
>
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic