You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AFAIK, the @font-face rules are only parsed but not used for actually doing anything with the font files. A basic implementation, which uses the font-family and src parts to call GraphicsEnvironment.registerFont could be pretty useful for using custom TTFs.
The text was updated successfully, but these errors were encountered:
It seems that font face rules are more complex. Mainly, there may be multiple sources (including local fonts etc.) I have reworked your implementation to correspond to the specification and I have moved the AWT-related part to VisualContext (to make things consistent). See the last few commits in both CSSBox and jStyleParser.
AFAIK, the
@font-face
rules are only parsed but not used for actually doing anything with the font files. A basic implementation, which uses thefont-family
andsrc
parts to callGraphicsEnvironment.registerFont
could be pretty useful for using custom TTFs.The text was updated successfully, but these errors were encountered: