Quantcast LoTROInterface - View Single Post - Rig's assorted offerings thread
View Single Post
  #3  
Unread 02-09-2018, 07:32 AM
Rigantona Rigantona is offline
The Undefeated
Interface Author - Click to view interfaces
 
Join Date: Jan 2018
Location: Arkenstone
Posts: 6
Font Metrics

Next! In typical fashion, I started working on font metrics before checking to see whether anyone else had already. This is what happens when you just love the hunt. Lo and behold, a very nice Font Metrics upload by moebius92. The number of downloads shows how valuable this has been. According to the download page:

"Currently only handles characters between 0x30 and 0x7F (basic ASCII) - higher unicode characters will use the default width."

I can provide font metrics for all the fonts in the Turbine.UI.Lotro.Font enum including all Unicode characters that I have found in these fonts. Two and three byte UTF-8 strings are handled correctly - results with French, German, and Russian (well, and some others) should be as good as with English. The metrics also include heights.

Hunting Unicode characters depends on the fact that the game displays "?" if a character we request is not available. We can create a huge Label and fill it with a sequence of UTF-8 encodings, then quickly pick out anything that isn't a question mark.

Is the upload by moebius92 sufficient for people's needs, or can anyone use this extra data?
Reply With Quote