private unsafe static MipGeneratorFn PickMipGenerator(FreeTypeFont font) { // TODO: Add a property that controls whether srgb is used. Or is freetype always srgb? return(font.sRGB // FIXME: Use a sRGB gamma ramp for this? ? MipGenerator.Get(MipFormat.pGray4 | MipFormat.sRGB) : font.MipGen?.Get(MipFormat.pGray4) ?? MipGenerator.Get(MipFormat.pGray4)); }
public FontSize(FreeTypeFont font, float sizePoints) { Font = font; SizePoints = sizePoints; Font.Sizes.Add(this); }
private unsafe static MipGenerator <Color> PickMipGenerator(FreeTypeFont font) { // TODO: Add a property that controls whether srgb is used. Or is freetype always srgb? return(MipGenerator.sRGBPAGray); }