mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-17 00:15:15 -06:00
23 lines
897 B
Java
23 lines
897 B
Java
package rt4;
|
|
|
|
import org.openrs2.deob.annotation.OriginalArg;
|
|
import org.openrs2.deob.annotation.OriginalMember;
|
|
import org.openrs2.deob.annotation.Pc;
|
|
|
|
public class FontMetricsList {
|
|
@OriginalMember(owner = "client!l", name = "f", descriptor = "Lclient!n;")
|
|
public static final SoftLruHashTable fontMetrics = new SoftLruHashTable(4);
|
|
|
|
@OriginalMember(owner = "client!li", name = "a", descriptor = "(II)Lclient!dd;")
|
|
public static SoftwareFont get(@OriginalArg(1) int arg0) {
|
|
@Pc(16) SoftwareFont local16 = (SoftwareFont) fontMetrics.get((long) arg0);
|
|
if (local16 != null) {
|
|
return local16;
|
|
}
|
|
@Pc(26) byte[] local26 = client.js5Archive13.fetchFile(arg0, 0);
|
|
local16 = new SoftwareFont(local26);
|
|
local16.setNameIcons(Sprites.nameIcons, null);
|
|
fontMetrics.put(local16, (long) arg0);
|
|
return local16;
|
|
}
|
|
}
|