Candide.Graphics.Fonts.CandideFontSource
Type JSONpublic class in Candide.Graphics.Fonts
Type metadata
- Assembly
Romestead - Namespace
Candide.Graphics.Fonts - Base type
System.Object - Interfaces
FontStashSharp.Interfaces.IFontSource, System.IDisposable - Hash
3E4D08440DB6B66A36C246D803950269425AE91BCC82D1417D7D1E78D8D8D205
Relationships
Base type
System.Object
Interfaces
FontStashSharp.Interfaces.IFontSourceSystem.IDisposable
Fields
| Name | Visibility | Signature |
|---|---|---|
_ascent# | private | private System.Int32 _ascent |
_descent# | private | private System.Int32 _descent |
_font# | public | public StbTrueType.stbtt_fontinfo _font |
_kernings# | private | private FontStashSharp.Int32Map<System.Int32> _kernings |
_lineHeight# | private | private System.Int32 _lineHeight |
_settings# | private | private CandideFontLoader.CandideFontLoaderSettings _settings |
Methods
CalculateScale
#
private System.Single CalculateScale(System.Single size)
Method metadata
- Visibilityprivate
- Return type
System.Single - StaticFalse
- VirtualFalse
- Hash
25CD1A5CA7BF47E7FA60AD77AC5F20D1B7A7FF089EA7B1B524B72DA07A6EDF03 - Body hash
E119200D23D25239A31ACDE72BB328DD0953911F886388DFA70F95429808FA62 - IL size13
Referenced calls
StbTrueTypeSharp.StbTrueType::stbtt_ScaleForPixelHeight(StbTrueType.stbtt_fontinfo, System.Single)
Dispose
#
private System.Void Dispose(System.Boolean disposing)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
EB166768D325A7DDA344943A7C0C222ADABE05C354559249CDF8E6EE4AF3F020 - Body hash
807D4126BB7D1A0A9387CF0D4AA3E165DF1276F6186EA0F5EA3B081DECAFC0C6 - IL size30
Referenced calls
StbTrueType.stbtt_fontinfo::Dispose()
Dispose
#
public System.Void Dispose()
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
5A26209976E4AB531FA169DE10F8EC60B33ADE4FBD1768B8CA9BA884BDC4AC64 - Body hash
D786A0FFFF2AC41E35056F6A00503CD4E1C19A57670D552851972FADF136573C - IL size14
Referenced calls
Candide.Graphics.Fonts.CandideFontSource::Dispose(System.Boolean)System.GC::SuppressFinalize(System.Object)
Finalize
#
protected System.Void Finalize()
Method metadata
- Visibilityprotected
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
482279BD144DE63767361140417A91AA3A6BA369B58A00A1EEBBBF88307CB115 - Body hash
C6AE32FFCFE92A53A6B7B741266E516834DCFC89521CDDEC950E2D20BC7482CF - IL size17
Referenced calls
Candide.Graphics.Fonts.CandideFontSource::Dispose(System.Boolean)System.Object::Finalize()
GetGlyphId
#
public System.Nullable<System.Int32> GetGlyphId(System.Int32 codepoint)
Method metadata
- Visibilitypublic
- Return type
System.Nullable<System.Int32> - StaticFalse
- VirtualTrue
- Hash
2089639FB4CB3F49760E883CE31F8E254A52599EDBE37B439CFF0E92BD7EA41A - Body hash
36B6C56399F02209782361602E18FBD1DC5B6A5DD1E8C03DD947948DF99E417A - IL size33
Referenced calls
StbTrueTypeSharp.StbTrueType::stbtt_FindGlyphIndex(StbTrueType.stbtt_fontinfo, System.Int32)System.Nullable<System.Int32>::.ctor(!0)
GetGlyphKernAdvance
#
public System.Int32 GetGlyphKernAdvance(System.Int32 glyph1, System.Int32 glyph2, System.Single fontSize)
Method metadata
- Visibilitypublic
- Return type
System.Int32 - StaticFalse
- VirtualTrue
- Hash
4B4DAA9FA40CCA67B162431D3FBB6BB51A955DC807F70BF973013FBC2E29F0ED - Body hash
C8AA429FAD92A4185C18294B03098CF103DB9C9886F3EBC27E673C86702F0A47 - IL size69
Referenced calls
Candide.Graphics.Fonts.CandideFontSource::CalculateScale(System.Single)FontStashSharp.Int32Map<System.Int32>::TryGetValue(System.Int32, !0&)StbTrueTypeSharp.StbTrueType::stbtt_GetGlyphKernAdvance(StbTrueType.stbtt_fontinfo, System.Int32, System.Int32)FontStashSharp.Int32Map<System.Int32>::set_Item(System.Int32, !0)
GetGlyphMetrics
#
public System.Void GetGlyphMetrics(System.Int32 glyphId, System.Single fontSize, out System.Int32& advance, out System.Int32& x0, out System.Int32& y0, out System.Int32& x1, out System.Int32& y1)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
F9A62A068D3D40CE425C0435991132CC36B0E944D3FC4DFE3EFDCF0EC3C8C73E - Body hash
41F55AB58246DCA5BD3D9D46A97B5C12122A6A87C725C30126705707BA06DA12 - IL size157
Referenced calls
Candide.Graphics.Fonts.CandideFontSource::CalculateScale(System.Single)StbTrueTypeSharp.StbTrueType::stbtt_GetGlyphHMetrics(StbTrueType.stbtt_fontinfo, System.Int32, System.Int32*, System.Int32*)StbTrueTypeSharp.StbTrueType::stbtt_GetGlyphBitmapBox(StbTrueType.stbtt_fontinfo, System.Int32, System.Single, System.Single, System.Int32*, System.Int32*, System.Int32*, System.Int32*)
GetMetricsForSize
#
public System.Void GetMetricsForSize(System.Single fontSize, out System.Int32& ascent, out System.Int32& descent, out System.Int32& lineHeight)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
F2FD34714C56E316E0439DC1A8951A1274F57B6CE6D0F62A7CCB3A6E8F14C190 - Body hash
A5FEFAF5ED915B89CB7E2A04831F6708BBC0A82793BC5B5BFBD3F181E76DEF04 - IL size64
RasterizeGlyphBitmap
#
public System.Void RasterizeGlyphBitmap(System.Int32 glyphId, System.Single fontSize, System.Byte[] buffer, System.Int32 startIndex, System.Int32 outWidth, System.Int32 outHeight, System.Int32 outStride)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
97CE20706C7BA955D657A93CA5DED90BB28862C50558620C08B962EA7EB4EC12 - Body hash
756DA948F425C21DEF8BD330EA457429C0919C0DFD4E8C5436F4F55F998E9A73 - IL size186
Referenced calls
Candide.Graphics.Fonts.CandideFontSource::CalculateScale(System.Single)StbTrueTypeSharp.StbTrueType::stbtt_MakeGlyphBitmap(StbTrueType.stbtt_fontinfo, System.Byte*, System.Int32, System.Int32, System.Int32, System.Single, System.Single, System.Int32)StbTrueTypeSharp.StbTrueType::stbtt__v_prefilter(System.Byte*, System.Int32, System.Int32, System.Int32, System.UInt32)StbTrueTypeSharp.StbTrueType::stbtt__h_prefilter(System.Byte*, System.Int32, System.Int32, System.Int32, System.UInt32)