Jump to content

GUI - Embedded Fonts


royibernthal
 Share

Recommended Posts

There are 2 issues, the second issue I actually found when trying to reproduce the first one.

 

1) When resizing a TextBlock with a custom font that was embedded via css it is cropped and/or rendered badly. (Size is dependent on idealWidth so resize the window to test)

2) Embedded font doesn't render in bjs even though it is clearly loaded. In my local project it is rendered properly but for some reason in the repro it uses the default font instead.

I tried to set a long timeout to make sure the font was loaded (although DOMContentLoaded should suffice), still no luck.

Once this second issue is solved you'll be able to test the first one.

 

Repro:

http://mindcombustion.com/misc/bjs_test/

Link to comment
Share on other sites

I hate typos, so hard to find. Do you know if DOMContentLoaded takes font loading into account?

 

It seems the first issue doesn't happen only with text blocks, small parts of controls are not being rendered when I'm resizing things that depend on idealWidth.

The calculated width and height apparently are smaller than what they should be in order to render everything, or alternatively they are calculated well and the problem is with the actual rendering, or I'm missing something again :)

I'll try to create a PG soon.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...