├── .gitignore
├── .gitmodules
├── Ext
├── SharpFontFork
│ ├── Build
│ │ └── NuGet
│ │ │ ├── SharpFont.nuspec
│ │ │ └── SharpFont.props
│ ├── LICENSE
│ ├── Makefile
│ ├── README.md
│ └── Source
│ │ ├── .editorconfig
│ │ ├── Settings.StyleCop
│ │ ├── SharpFont.HarfBuzz.Example
│ │ ├── App.config
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── SharpFont.HarfBuzz.Example.csproj
│ │ ├── SharpFont.HarfBuzz
│ │ ├── Buffer.cs
│ │ ├── Direction.cs
│ │ ├── Font.cs
│ │ ├── GlyphInfo.cs
│ │ ├── GlyphPosition.cs
│ │ ├── HB.Internal.cs
│ │ ├── HB.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── Script.cs
│ │ ├── SharpFont.HarfBuzz.csproj
│ │ └── SharpFont.HarfBuzz.dll.config
│ │ ├── SharpFont.dll.config
│ │ ├── SharpFont.sln
│ │ ├── SharpFont.snk
│ │ └── SharpFont
│ │ ├── AutoHinterScript.cs
│ │ ├── BBox.cs
│ │ ├── Bdf
│ │ ├── Internal
│ │ │ └── PropertyRec.cs
│ │ ├── Property.cs
│ │ └── PropertyType.cs
│ │ ├── BitmapGlyph.cs
│ │ ├── BitmapSize.cs
│ │ ├── Cache
│ │ ├── CMapCache.cs
│ │ ├── FaceRequester.cs
│ │ ├── ImageCache.cs
│ │ ├── ImageType.cs
│ │ ├── Internal
│ │ │ ├── CMapCacheRec.cs
│ │ │ ├── ImageCacheRec.cs
│ │ │ ├── ImageTypeRec.cs
│ │ │ ├── ManagerRec.cs
│ │ │ ├── NodeRec.cs
│ │ │ ├── SBitCacheRec.cs
│ │ │ ├── SBitRec.cs
│ │ │ └── ScalerRec.cs
│ │ ├── Manager.cs
│ │ ├── Node.cs
│ │ ├── SBit.cs
│ │ ├── SBitCache.cs
│ │ └── Scaler.cs
│ │ ├── Cff
│ │ └── HintingEngine.cs
│ │ ├── CharMap.cs
│ │ ├── ClassicKernValidationFlags.cs
│ │ ├── Data.cs
│ │ ├── EmbeddingTypes.cs
│ │ ├── Encoding.cs
│ │ ├── Error.cs
│ │ ├── FT.Internal.cs
│ │ ├── FT.Public.cs
│ │ ├── FTBitmap.cs
│ │ ├── FTList.cs
│ │ ├── FTMatrix.cs
│ │ ├── FTSize.cs
│ │ ├── FTStream.cs
│ │ ├── FTUnitVector.cs
│ │ ├── FTVector.cs
│ │ ├── FTVector26Dot6.cs
│ │ ├── Face.cs
│ │ ├── FaceFlags.cs
│ │ ├── Fixed16Dot16.cs
│ │ ├── Fixed26Dot6.cs
│ │ ├── Fixed2Dot14.cs
│ │ ├── Fnt
│ │ ├── Header.cs
│ │ ├── Internal
│ │ │ └── HeaderRec.cs
│ │ └── WinFntID.cs
│ │ ├── FreeTypeException.cs
│ │ ├── Gasp.cs
│ │ ├── Generic.cs
│ │ ├── Glyph.cs
│ │ ├── GlyphBBoxMode.cs
│ │ ├── GlyphFormat.cs
│ │ ├── GlyphMetrics.cs
│ │ ├── GlyphSlot.cs
│ │ ├── GlyphToScriptMapProperty.cs
│ │ ├── IncreaseXHeightProperty.cs
│ │ ├── Internal
│ │ ├── BitmapGlyphRec.cs
│ │ ├── BitmapRec.cs
│ │ ├── BitmapSizeRec.cs
│ │ ├── CharMapRec.cs
│ │ ├── FaceRec.cs
│ │ ├── GenericRec.cs
│ │ ├── GlyphMetricsRec.cs
│ │ ├── GlyphRec.cs
│ │ ├── GlyphSlotRec.cs
│ │ ├── GlyphToScriptMapPropertyRec.cs
│ │ ├── IncreaseXHeightPropertyRec.cs
│ │ ├── ListNodeRec.cs
│ │ ├── ListRec.cs
│ │ ├── MemoryRec.cs
│ │ ├── ModuleClassRec.cs
│ │ ├── NativeObject.cs
│ │ ├── NativeReference.cs
│ │ ├── OpenArgsRec.cs
│ │ ├── OutlineFuncsRec.cs
│ │ ├── OutlineGlyphRec.cs
│ │ ├── OutlineRec.cs
│ │ ├── ParameterRec.cs
│ │ ├── RasterFuncsRec.cs
│ │ ├── RasterParamsRec.cs
│ │ ├── RendererClassRec.cs
│ │ ├── SizeMetricsRec.cs
│ │ ├── SizeRec.cs
│ │ ├── SizeRequestRec.cs
│ │ ├── SpanRec.cs
│ │ ├── StreamDescRec.cs
│ │ └── StreamRec.cs
│ │ ├── KerningMode.cs
│ │ ├── LcdFilter.cs
│ │ ├── Library.cs
│ │ ├── ListNode.cs
│ │ ├── LoadFlags.cs
│ │ ├── LoadTarget.cs
│ │ ├── Memory.cs
│ │ ├── Module.cs
│ │ ├── ModuleClass.cs
│ │ ├── MultipleMasters
│ │ ├── Internal
│ │ │ ├── MMAxisRec.cs
│ │ │ ├── MMVarRec.cs
│ │ │ ├── MultiMasterRec.cs
│ │ │ ├── VarAxisRec.cs
│ │ │ └── VarNamedStyleRec.cs
│ │ ├── MMAxis.cs
│ │ ├── MMVar.cs
│ │ ├── MultiMaster.cs
│ │ ├── VarAxis.cs
│ │ └── VarNamedStyle.cs
│ │ ├── OpenArgs.cs
│ │ ├── OpenFlags.cs
│ │ ├── OpenTypeValidationFlags.cs
│ │ ├── Orientation.cs
│ │ ├── Outline.cs
│ │ ├── OutlineFlags.cs
│ │ ├── OutlineFuncs.cs
│ │ ├── OutlineGlyph.cs
│ │ ├── PInvokeHelper.cs
│ │ ├── ParamTag.cs
│ │ ├── Parameter.cs
│ │ ├── PixelMode.cs
│ │ ├── PostScript
│ │ ├── BlendFlags.cs
│ │ ├── DictionaryKeys.cs
│ │ ├── EncodingType.cs
│ │ ├── FaceDict.cs
│ │ ├── FaceInfo.cs
│ │ ├── FontInfo.cs
│ │ ├── Internal
│ │ │ ├── FaceDictRec.cs
│ │ │ ├── FaceInfoRec.cs
│ │ │ ├── FontInfoRec.cs
│ │ │ └── PrivateRec.cs
│ │ └── Private.cs
│ │ ├── Properties
│ │ └── AssemblyInfo.cs
│ │ ├── Raster.cs
│ │ ├── RasterFlags.cs
│ │ ├── RasterFuncs.cs
│ │ ├── RasterParams.cs
│ │ ├── RenderMode.cs
│ │ ├── Renderer.cs
│ │ ├── RendererClass.cs
│ │ ├── SharpFont.csproj
│ │ ├── SizeMetrics.cs
│ │ ├── SizeRequest.cs
│ │ ├── SizeRequestType.cs
│ │ ├── Span.cs
│ │ ├── StreamDesc.cs
│ │ ├── Stroker.cs
│ │ ├── StrokerBorder.cs
│ │ ├── StrokerLineCap.cs
│ │ ├── StrokerLineJoin.cs
│ │ ├── StyleFlags.cs
│ │ ├── SubGlyph.cs
│ │ ├── SubGlyphFlags.cs
│ │ ├── TrueType
│ │ ├── EncodingId.cs
│ │ ├── EngineType.cs
│ │ ├── Header.cs
│ │ ├── HoriHeader.cs
│ │ ├── Internal
│ │ │ ├── HeaderRec.cs
│ │ │ ├── HoriHeaderRec.cs
│ │ │ ├── MaxProfileRec.cs
│ │ │ ├── OS2Rec.cs
│ │ │ ├── PCLTRec.cs
│ │ │ ├── PostscriptRec.cs
│ │ │ ├── SfntNameRec.cs
│ │ │ └── VertHeaderRec.cs
│ │ ├── MaxProfile.cs
│ │ ├── OS2.cs
│ │ ├── Pclt.cs
│ │ ├── PlatformId.cs
│ │ ├── Postscript.cs
│ │ ├── SfntName.cs
│ │ ├── SfntTag.cs
│ │ └── VertHeader.cs
│ │ └── TrueTypeValidationFlags.cs
├── System.Data.SQLite.DLL
├── basis
│ ├── basisu.h
│ ├── basisu_containers.h
│ ├── basisu_containers_impl.h
│ ├── basisu_file_headers.h
│ ├── basisu_transcoder.cpp
│ ├── basisu_transcoder.h
│ ├── basisu_transcoder_internal.h
│ ├── basisu_transcoder_tables_astc.inc
│ ├── basisu_transcoder_tables_astc_0_255.inc
│ ├── basisu_transcoder_tables_atc_55.inc
│ ├── basisu_transcoder_tables_atc_56.inc
│ ├── basisu_transcoder_tables_bc7_m5_alpha.inc
│ ├── basisu_transcoder_tables_bc7_m5_color.inc
│ ├── basisu_transcoder_tables_dxt1_5.inc
│ ├── basisu_transcoder_tables_dxt1_6.inc
│ ├── basisu_transcoder_tables_pvrtc2_45.inc
│ ├── basisu_transcoder_tables_pvrtc2_alpha_33.inc
│ └── basisu_transcoder_uastc.h
├── span
│ ├── System.Memory.dll
│ ├── System.Memory.xml
│ ├── System.Runtime.CompilerServices.Unsafe.dll
│ └── System.Runtime.CompilerServices.Unsafe.xml
└── zstd
│ ├── CHANGELOG
│ ├── COPYING
│ ├── LICENSE
│ ├── common
│ ├── bitstream.h
│ ├── compiler.h
│ ├── cpu.h
│ ├── debug.c
│ ├── debug.h
│ ├── entropy_common.c
│ ├── error_private.c
│ ├── error_private.h
│ ├── fse.h
│ ├── fse_decompress.c
│ ├── huf.h
│ ├── mem.h
│ ├── pool.c
│ ├── pool.h
│ ├── threading.c
│ ├── threading.h
│ ├── xxhash.c
│ ├── xxhash.h
│ ├── zstd_common.c
│ ├── zstd_deps.h
│ ├── zstd_internal.h
│ └── zstd_trace.h
│ ├── decompress
│ ├── huf_decompress.c
│ ├── zstd_ddict.c
│ ├── zstd_ddict.h
│ ├── zstd_decompress.c
│ ├── zstd_decompress_block.c
│ ├── zstd_decompress_block.h
│ └── zstd_decompress_internal.h
│ ├── libzstd.pc.in
│ ├── zdict.h
│ ├── zstd.c
│ ├── zstd.h
│ ├── zstd_errors.h
│ └── zstddeclib.c
├── README.md
├── ShaderCompiler
├── Program.cs
├── ShaderCompiler.csproj
├── ShaderCompiler.sln
├── app.config
└── bin
│ ├── ShaderCompiler.exe
│ └── ShaderCompiler.exe.config
└── Squared
├── BasisNative
├── BasisNative.vcxproj
└── main.cpp
├── Examples
├── CurveTester
│ ├── CurveTester.csproj
│ ├── MainWindow.Designer.cs
│ ├── MainWindow.cs
│ ├── MainWindow.resx
│ ├── Program.cs
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ └── app.config
├── MUDServer
│ ├── AlphaTrie.cs
│ ├── Entity.cs
│ ├── Events.cs
│ ├── MUDServer.csproj
│ ├── MUDServerTests
│ │ ├── MUDServerTests.csproj
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── Tests
│ │ │ └── AlphaTrieTests.cs
│ ├── Player.cs
│ ├── Program.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── TelnetServer.cs
│ ├── World.cs
│ ├── WorldDef.cs
│ └── app.config
├── Pong
│ ├── Content
│ │ ├── PongContent.contentproj
│ │ └── Tahoma.spritefont
│ ├── Game.ico
│ ├── GameThumbnail.png
│ ├── PIX.PIXExp
│ ├── Pong.csproj
│ ├── PongExample.cs
│ ├── Program.cs
│ └── Properties
│ │ ├── AssemblyInfo.cs
│ │ └── app.manifest
├── RenderStressTest
│ ├── Game.cs
│ ├── ParallelInvoker.cs
│ ├── ParallelThreadPool.cs
│ ├── Program.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── RenderStressTest.csproj
│ └── app.config
├── StartChatBots.bat
├── StartChatServer.bat
├── TelnetChatBot
│ ├── Program.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── TelnetChatBot.csproj
│ └── app.config
├── TelnetChatServer
│ ├── Program.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── TelnetChatServer.csproj
│ └── app.config
└── ThreadedPlatformer
│ ├── Animation.cs
│ ├── AnimationPlayer.cs
│ ├── Circle.cs
│ ├── Enemy.cs
│ ├── Game.ico
│ ├── GameThumbnail.png
│ ├── Gem.cs
│ ├── HighResolutionContent
│ ├── Backgrounds
│ │ ├── Layer0_0.png
│ │ ├── Layer0_1.png
│ │ ├── Layer0_2.png
│ │ ├── Layer1_0.png
│ │ ├── Layer1_1.png
│ │ ├── Layer1_2.png
│ │ ├── Layer2_0.png
│ │ ├── Layer2_1.png
│ │ └── Layer2_2.png
│ ├── Fonts
│ │ └── Hud.spritefont
│ ├── Levels
│ │ ├── 0.txt
│ │ ├── 1.txt
│ │ └── 2.txt
│ ├── Overlays
│ │ ├── you_died.png
│ │ ├── you_lose.png
│ │ └── you_win.png
│ ├── Sprites
│ │ ├── Gem.png
│ │ ├── MonsterA
│ │ │ ├── Die.png
│ │ │ ├── Idle.png
│ │ │ └── Run.png
│ │ ├── MonsterB
│ │ │ ├── Die.png
│ │ │ ├── Idle.png
│ │ │ └── Run.png
│ │ ├── MonsterC
│ │ │ ├── Die.png
│ │ │ ├── Idle.png
│ │ │ └── Run.png
│ │ ├── MonsterD
│ │ │ ├── Die.png
│ │ │ ├── Idle.png
│ │ │ └── Run.png
│ │ └── Player
│ │ │ ├── Celebrate.png
│ │ │ ├── Die.png
│ │ │ ├── Idle.png
│ │ │ ├── Jump.png
│ │ │ └── Run.png
│ ├── ThreadedPlatformerHighResolutionContent.contentproj
│ └── Tiles
│ │ ├── BlockA0.png
│ │ ├── BlockA1.png
│ │ ├── BlockA2.png
│ │ ├── BlockA3.png
│ │ ├── BlockA4.png
│ │ ├── BlockA5.png
│ │ ├── BlockA6.png
│ │ ├── BlockB0.png
│ │ ├── BlockB1.png
│ │ ├── Exit.png
│ │ └── Platform.png
│ ├── LICENSE.txt
│ ├── Level.cs
│ ├── PlatformerGame.cs
│ ├── Player.cs
│ ├── Program.cs
│ ├── Properties
│ ├── AssemblyInfo.cs
│ └── app.manifest
│ ├── RectangleExtensions.cs
│ ├── SharedContent
│ ├── Sounds
│ │ ├── ExitReached.wma
│ │ ├── GemCollected.wma
│ │ ├── MonsterKilled.wma
│ │ ├── Music.wma
│ │ ├── PlayerFall.wma
│ │ ├── PlayerJump.wma
│ │ ├── PlayerKilled.wma
│ │ └── PowerUp.wma
│ └── ThreadedPlatformerSharedContent.contentproj
│ ├── ThreadedPlatformer.csproj
│ ├── ThreadedPlatformer.sln
│ └── Tile.cs
├── FontTest
├── FontTest
│ ├── FontTest.csproj
│ ├── FontTestGame.cs
│ ├── Program.cs
│ ├── Properties
│ │ └── app.manifest
│ └── app.config
└── FontTestContent
│ ├── DutchAndHarley.xnb
│ ├── Font.spritefont
│ └── FontTestContent.contentproj
├── GameLib
├── Animation.cs
├── GameExtensionMethods.cs
├── GameTests
│ ├── AnimationTests.cs
│ ├── GameTests.csproj
│ ├── GeometryTests.cs
│ ├── GraphTests.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── SerializationTests.cs
│ └── packages.config
├── Geometry.cs
├── Geometry3.cs
├── Input.cs
├── KeyboardInputProvider.cs
├── Properties
│ └── AssemblyInfo.cs
├── SpatialCollection.cs
└── Squared.Game.csproj
├── HttpServerTest
├── HttpServerTest.csproj
├── Program.cs
├── Properties
│ └── AssemblyInfo.cs
└── app.config
├── LargeBufferTest
├── LargeBufferTest
│ ├── LargeBufferTest.csproj
│ ├── LargeBufferTestGame.cs
│ ├── PerformanceStats.cs
│ ├── Program.cs
│ └── Properties
│ │ └── app.manifest
└── PIX.PIXExp
├── MiscTests
├── MiscTests.csproj
└── Program.cs
├── PRGUI.Demo
├── Fonts
│ └── kenney-icon-font.ttf
├── Game.cs
├── PRGUI.Demo.csproj
├── PerformanceStats.cs
├── Program.cs
├── Properties
│ ├── AssemblyInfo.cs
│ └── app.manifest
├── app.config
└── packages.config
├── PRGUI
├── ControlAlignmentHelper.cs
├── Controls
│ ├── Canvas.cs
│ ├── Container.cs
│ ├── ContainerBase.cs
│ ├── Control.HitTest.cs
│ ├── Control.Rasterization.cs
│ ├── Control.cs
│ ├── ControlAppearance.cs
│ ├── ControlCollection.cs
│ ├── ControlData.cs
│ ├── Controls.cs
│ ├── Dropdown.cs
│ ├── EditableText.cs
│ ├── Gauge.cs
│ ├── HyperText.cs
│ ├── Interfaces.cs
│ ├── ItemList.cs
│ ├── ListBox.cs
│ ├── Menu.cs
│ ├── ModalDialog.cs
│ ├── ParameterEditor.cs
│ ├── Slider.cs
│ ├── StaticImage.cs
│ ├── StaticText.cs
│ ├── TabContainer.cs
│ ├── TitledContainer.cs
│ ├── Tooltip.cs
│ ├── UserResizeWidget.cs
│ └── Window.cs
├── Data.cs
├── Decorations.cs
├── DefaultDecorations.cs
├── Enums.cs
├── Events.cs
├── Extensions.cs
├── Flags.cs
├── Imperative.cs
├── Input.cs
├── NewEngine
│ ├── Data.cs
│ ├── Enumerators.cs
│ ├── Enums.cs
│ ├── LayoutAlgorithm.cs
│ ├── LayoutEngine.cs
│ ├── Pass1.cs
│ ├── Pass2.cs
│ ├── Pass3.cs
│ ├── SegmentedArray.cs
│ └── StateManagement.cs
├── PRGUI.csproj
├── Properties
│ └── AssemblyInfo.cs
├── UIContext.Accessibility.cs
├── UIContext.Data.cs
├── UIContext.Events.cs
├── UIContext.Focus.cs
├── UIContext.Rasterization.cs
├── UIContext.State.cs
├── UIContext.Traversal.cs
└── UIContext.cs
├── Render.AV1
├── AV1.cs
├── Properties
│ └── AssemblyInfo.cs
├── Squared.Render.AV1.csproj
└── dav1dfile.cs
├── Render.Basis
├── Basis.cs
├── Properties
│ └── AssemblyInfo.cs
└── Squared.Render.Basis.csproj
├── Render.Freetype
├── Data.cs
├── FTFont.cs
├── FontProvider.cs
├── GPOS.cs
├── GSUB.cs
├── Properties
│ └── AssemblyInfo.cs
└── Squared.Render.Freetype.csproj
├── Render.STB
├── Mips.cs
├── Native.cs
├── Properties
│ └── AssemblyInfo.cs
├── STBI.cs
├── STBIW.cs
├── Squared.Render.STB.csproj
└── TextureProvider.cs
├── RenderLib
├── Atlas.cs
├── AutoRenderTarget.cs
├── Batch.cs
├── BatchGroup.cs
├── BitmapBatch.cs
├── BufferGenerator.cs
├── ColorLUT.cs
├── ColorSpace.cs
├── Convenience.cs
├── DefaultMaterialSet.cs
├── DisposalQueue.cs
├── DynamicAtlas.cs
├── EffectProvider.cs
├── Evil.cs
├── Frame.cs
├── ImperativeRenderer.cs
├── JumpFlood.CPU.cs
├── JumpFlood.GPU.cs
├── ListBatch.cs
├── MaterialParameterValues.cs
├── MaterialSet.cs
├── Materials.cs
├── Mips.cs
├── MultimaterialBitmapBatch.cs
├── PolygonBuffer.cs
├── Pools.cs
├── Properties
│ └── AssemblyInfo.cs
├── RasterShapes.cs
├── RasterStroke.cs
├── RenderBitmaps.cs
├── RenderGeometry.cs
├── RenderManager.cs
├── RenderPrimitives.cs
├── RenderText.cs
├── ResourceProvider.cs
├── RichText.cs
├── Shaders
│ ├── BezierCommon.fxh
│ ├── BitmapCommon.fxh
│ ├── CompilerWorkarounds.fxh
│ ├── CompositedBitmap.fx
│ ├── DitherCommon.fxh
│ ├── FormatCommon.fxh
│ ├── GaussianBlur.fx
│ ├── GeometryCommon.fxh
│ ├── HueBitmap.fx
│ ├── HueCommon.fxh
│ ├── JumpFlood.fx
│ ├── LUTCommon.fxh
│ ├── Lightmap.fx
│ ├── PalettedBitmap.fx
│ ├── PolygonCommon.fxh
│ ├── RasterComposites.fxh
│ ├── RasterPolygonImpl.fxh
│ ├── RasterShapeConstants.fxh
│ ├── RasterShapeImpl.fxh
│ ├── RasterShapeSkeleton.fxh
│ ├── RasterShapeVariants.fx
│ ├── RasterStrokeCommon.fxh
│ ├── RasterStrokeLine.fx
│ ├── RasterStrokeLineCommonImpl.fxh
│ ├── RasterStrokePolygon.fx
│ ├── RasterStrokeRectangle.fx
│ ├── SDF2D.fxh
│ ├── SquaredBitmapShader.fx
│ ├── SquaredGeometryShader.fx
│ ├── StippledBitmap.fx
│ ├── TargetInfo.fxh
│ ├── ViewTransformCommon.fxh
│ ├── YUVDec.fx
│ └── sRGBCommon.fxh
├── Squared.Render.csproj
├── StringLayoutEngine.cs
├── StringLayoutEngine2.cs
├── TextUtils.cs
├── ThreadedRenderCoordinator.cs
├── ThreadedRenderGame.cs
├── Tracing.cs
├── UniformBinding.cs
└── UniformBindingLayout.cs
├── RenderPrecisionTest
├── PIX.PIXExp
├── RenderPrecisionTest
│ ├── Program.cs
│ ├── RenderPrecisionTest.csproj
│ └── RenderPrecisionTestGame.cs
└── RenderPrecisionTestContent
│ └── test.png
├── STBNative
├── STBNative.vcxproj
├── main.cpp
├── stb_image.h
├── stb_image_resize2.h
└── stb_image_write.h
├── Squared.Override.props
├── Squared.sln
├── SquaredGameLibraries.targets
├── TaskLib
├── AsyncAwait.cs
├── BlockingQueue.cs
├── DiskMonitor.cs
├── Http
│ ├── AsyncDataAdapterShim.cs
│ ├── EndPointList.cs
│ ├── Events.cs
│ ├── Header.cs
│ ├── HttpServer.cs
│ ├── ListenerContext.cs
│ ├── Request.cs
│ └── Response.cs
├── IO.cs
├── JobQueue.cs
├── Network.cs
├── Properties
│ └── AssemblyInfo.cs
├── SchedulableGeneratorThunk.cs
├── Sockets.cs
├── Squared.Task.csproj
├── TaskLibTests
│ ├── App.config
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── TaskLibTests.csproj
│ ├── Tests
│ │ ├── HttpTests.cs
│ │ ├── IOTests.cs
│ │ ├── QueueTests.cs
│ │ ├── SequenceTests.cs
│ │ └── TaskSchedulerTests.cs
│ ├── data
│ │ └── test.py
│ └── packages.config
├── TaskScheduler.cs
├── Util.cs
├── Web.cs
├── Win32.cs
└── WorkerThread.cs
├── Threading
├── AsyncAwait.cs
├── Future.cs
├── GroupThread.cs
├── LocallyReplicatedCache.cs
├── LowAllocConcurrentQueue.cs
├── LowAllocConcurrentQueueSegment.cs
├── MethodPrecompiler.cs
├── Properties
│ └── AssemblyInfo.cs
├── Squared.Threading.csproj
├── Superluminal.cs
├── ThreadGroup.cs
├── ThreadIdleManager.cs
└── WorkQueue.cs
├── ThreadingTests
├── FutureTests.cs
├── Properties
│ └── AssemblyInfo.cs
├── ThreadGroupTests.cs
├── ThreadingTests.csproj
└── packages.config
├── Util
├── ADSR.cs
├── Arithmetic.cs
├── Bind.cs
├── BitSet.cs
├── Buffer.cs
├── CLRSort.cs
├── CoreCLR
│ ├── BitOperations.cs
│ └── Random.Xoshiro256StarStarImpl.cs
├── Curve.cs
├── DeclarativeSort.cs
├── DenseDictionary.cs
├── DenseList.Queries.cs
├── DenseList.Util.cs
├── DenseList.cs
├── DiskMonitor.cs
├── EmbeddedDLLLoader.cs
├── EventBus.cs
├── ExpressionParser.cs
├── FaultInjector.cs
├── FloatScan.cs
├── IO.cs
├── IndexedSort.cs
├── IniReader.cs
├── IntScan.cs
├── Interpolators.cs
├── LRUCache.cs
├── NativeAllocator.cs
├── PriorityQueue.cs
├── Properties
│ └── AssemblyInfo.cs
├── Sort.cs
├── Squared.Util.csproj
├── Text.cs
├── TimeProvider.cs
├── Tuples.cs
├── Tween.cs
├── UnorderedList.cs
├── UtilTests
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Tests
│ │ ├── ArithmeticTests.cs
│ │ ├── BindTests.cs
│ │ ├── BitsetTests.cs
│ │ ├── CurveTests.cs
│ │ ├── DeclarativeSortTests.cs
│ │ ├── DenseListTests.cs
│ │ ├── EventTests.cs
│ │ ├── IOTests.cs
│ │ ├── LRUCacheTests.cs
│ │ ├── PriorityQueueTests.cs
│ │ ├── SortTests.cs
│ │ ├── TextTests.cs
│ │ ├── TimeTests.cs
│ │ ├── TupleTests.cs
│ │ ├── TweenTests.cs
│ │ └── UnorderedListTests.cs
│ ├── UtilTests.csproj
│ ├── data
│ │ ├── dirs
│ │ │ ├── dirA
│ │ │ │ ├── subdirA_A
│ │ │ │ │ └── fileA_A_A.txt
│ │ │ │ └── subdirA_B
│ │ │ │ │ └── fileA_B_A.txt
│ │ │ ├── dirB
│ │ │ │ └── fileB_A.txt
│ │ │ ├── dirC
│ │ │ │ ├── fileC_A.txt
│ │ │ │ └── fileC_B.txt
│ │ │ └── file
│ │ ├── files
│ │ │ ├── fileA.txt
│ │ │ ├── fileB.txt
│ │ │ ├── fileC.png
│ │ │ ├── fileD.png
│ │ │ ├── fileE.jpg
│ │ │ └── fileF.jpg
│ │ ├── hello.txt
│ │ └── test.dat
│ └── packages.config
└── XXHash.cs
└── XNAFramework.targets
/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "Ext/Dependencies"]
2 | path = Ext/Dependencies
3 | url = https://github.com/sq/SquaredDependencies.git
4 | [submodule "Ext/layout"]
5 | path = Ext/layout
6 | url = https://github.com/randrew/layout.git
7 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Build/NuGet/SharpFont.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | PreserveNewest
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2012-2016 Robert Rouhani
2 |
3 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of
6 | this software and associated documentation files (the "Software"), to deal in
7 | the Software without restriction, including without limitation the rights to
8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9 | of the Software, and to permit persons to whom the Software is furnished to do
10 | so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Makefile:
--------------------------------------------------------------------------------
1 | XBUILD := xbuild
2 | XBUILDFLAGS_RELEASE := /p:Configuration=Release
3 | XBUILDFLAGS_DEBUG := /p:Configuration=Debug
4 |
5 | SOLUTION := Source/SharpFont.sln
6 |
7 | release:
8 | $(XBUILD) $(XBUILDFLAGS_RELEASE) $(SOLUTION)
9 | debug:
10 | $(XBUILD) $(XBUILDFLAGS_DEBUG) $(SOLUTION)
11 | clean:
12 | $(XBUILD) $(XBUILDFLAGS_DEBUG) $(SOLUTION) /t:Clean
13 | $(XBUILD) $(XBUILDFLAGS_RELEASE) $(SOLUTION) /t:Clean
14 |
15 | .SUFFIXES:
16 | .PHONY: release debug clean
17 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/.editorconfig:
--------------------------------------------------------------------------------
1 | # EditorConfig is awesome: http://EditorConfig.org
2 |
3 | # top-most EditorConfig file
4 | root = true
5 |
6 | # Unix-style newlines with a newline ending every file
7 | [*]
8 | end_of_line = crlf
9 | indent_style = tab
10 | insert_final_newline = true
11 | tab_width = 4
12 | trim_trailing_whitespace = true
13 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont.HarfBuzz.Example/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont.HarfBuzz.Example/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | #region License
2 | /**
3 | * Copyright (c) 2014 Robert Rouhani and other contributors (see CONTRIBUTORS file).
4 | * Licensed under the MIT License - https://raw.github.com/Robmaister/SharpFont.HarfBuzz/master/LICENSE
5 | */
6 | #endregion
7 |
8 | using System.Reflection;
9 | using System.Runtime.CompilerServices;
10 | using System.Runtime.InteropServices;
11 |
12 | // General Information about an assembly is controlled through the following
13 | // set of attributes. Change these attribute values to modify the information
14 | // associated with an assembly.
15 | [assembly: AssemblyTitle("SharpFont.HarfBuzz.Example")]
16 | [assembly: AssemblyDescription("")]
17 | [assembly: AssemblyConfiguration("")]
18 | [assembly: AssemblyCompany("")]
19 | [assembly: AssemblyProduct("SharpFont.HarfBuzz.Example")]
20 | [assembly: AssemblyCopyright("Copyright © 2014")]
21 | [assembly: AssemblyTrademark("")]
22 | [assembly: AssemblyCulture("")]
23 |
24 | // Setting ComVisible to false makes the types in this assembly not visible
25 | // to COM components. If you need to access a type in this assembly from
26 | // COM, set the ComVisible attribute to true on that type.
27 | [assembly: ComVisible(false)]
28 |
29 | // The following GUID is for the ID of the typelib if this project is exposed to COM
30 | [assembly: Guid("a266ea1f-2454-469e-a303-abcf5af6795e")]
31 |
32 | // Version information for an assembly consists of the following four values:
33 | //
34 | // Major Version
35 | // Minor Version
36 | // Build Number
37 | // Revision
38 | //
39 | // You can specify all the values or you can default the Build and Revision Numbers
40 | // by using the '*' as shown below:
41 | // [assembly: AssemblyVersion("1.0.*")]
42 | [assembly: AssemblyVersion("1.0.0.0")]
43 | [assembly: AssemblyFileVersion("1.0.0.0")]
44 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont.HarfBuzz/Direction.cs:
--------------------------------------------------------------------------------
1 | //Copyright (c) 2014-2015 Robert Rouhani and other contributors (see CONTRIBUTORS file).
2 | //Licensed under the MIT License - https://raw.github.com/Robmaister/SharpFont.HarfBuzz/master/LICENSE
3 |
4 | namespace SharpFont.HarfBuzz
5 | {
6 | public enum Direction
7 | {
8 | Invalid = 0,
9 | LeftToRight = 4,
10 | RightToLeft,
11 | TopToBottom,
12 | BottomToTop
13 | }
14 |
15 | public static class DirectionExtensions
16 | {
17 | public static string ToString(this Direction dir)
18 | {
19 | return "";
20 | }
21 |
22 | public static bool IsHorizontal(this Direction dir)
23 | {
24 | return ((int)dir & ~1) == 4;
25 | }
26 |
27 | public static bool IsVertical(this Direction dir)
28 | {
29 | return ((int)dir & ~1) == 6;
30 | }
31 |
32 | public static bool IsForward(this Direction dir)
33 | {
34 | return ((int)dir & ~2) == 4;
35 | }
36 |
37 | public static bool IsBackward(this Direction dir)
38 | {
39 | return ((int)dir & ~2) == 5;
40 | }
41 |
42 | public static bool IsValid(this Direction dir)
43 | {
44 | return ((int)dir & ~3) == 4;
45 | }
46 |
47 | public static Direction Reverse(this Direction dir)
48 | {
49 | return (Direction)((int)dir ^ 1);
50 | }
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont.HarfBuzz/Font.cs:
--------------------------------------------------------------------------------
1 | //Copyright (c) 2014-2015 Robert Rouhani and other contributors (see CONTRIBUTORS file).
2 | //Licensed under the MIT License - https://raw.github.com/Robmaister/SharpFont.HarfBuzz/master/LICENSE
3 |
4 | using System;
5 |
6 | namespace SharpFont.HarfBuzz
7 | {
8 | public class Font
9 | {
10 | #region Members
11 | private IntPtr reference;
12 | #endregion
13 |
14 | #region Constructors
15 | public static Font FromFTFace(Face face)
16 | {
17 | return new Font { reference = HB.hb_ft_font_create(face.Reference, IntPtr.Zero) };
18 | }
19 | #endregion
20 |
21 | #region Properties
22 | internal IntPtr Reference { get { return reference; } }
23 | #endregion
24 |
25 | #region Methods
26 | #endregion
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont.HarfBuzz/GlyphInfo.cs:
--------------------------------------------------------------------------------
1 | //Copyright (c) 2014-2015 Robert Rouhani and other contributors (see CONTRIBUTORS file).
2 | //Licensed under the MIT License - https://raw.github.com/Robmaister/SharpFont.HarfBuzz/master/LICENSE
3 |
4 | using System.Runtime.InteropServices;
5 |
6 | namespace SharpFont.HarfBuzz
7 | {
8 | [StructLayout(LayoutKind.Sequential)]
9 | public struct GlyphInfo
10 | {
11 | public uint codepoint;
12 | public uint mask;
13 | public uint cluster;
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont.HarfBuzz/GlyphPosition.cs:
--------------------------------------------------------------------------------
1 | //Copyright (c) 2014-2015 Robert Rouhani and other contributors (see CONTRIBUTORS file).
2 | //Licensed under the MIT License - https://raw.github.com/Robmaister/SharpFont.HarfBuzz/master/LICENSE
3 |
4 | using System.Runtime.InteropServices;
5 |
6 | namespace SharpFont.HarfBuzz
7 | {
8 | [StructLayout(LayoutKind.Sequential)]
9 | public struct GlyphPosition
10 | {
11 | public int xAdvance;
12 | public int yAdvance;
13 | public int xOffset;
14 | public int yOffset;
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont.HarfBuzz/HB.cs:
--------------------------------------------------------------------------------
1 | //Copyright (c) 2014-2015 Robert Rouhani and other contributors (see CONTRIBUTORS file).
2 | //Licensed under the MIT License - https://raw.github.com/Robmaister/SharpFont.HarfBuzz/master/LICENSE
3 |
4 | using System;
5 | using System.Runtime.InteropServices;
6 |
7 | namespace SharpFont.HarfBuzz
8 | {
9 | public static partial class HB
10 | {
11 | public static string VersionString
12 | {
13 | get
14 | {
15 | return Marshal.PtrToStringAnsi(hb_version_string());
16 | }
17 | }
18 |
19 | public static Version Version
20 | {
21 | get
22 | {
23 | uint major, minor, micro;
24 | hb_version(out major, out minor, out micro);
25 | return new Version((int)major, (int)minor, (int)micro);
26 | }
27 | }
28 |
29 | public static bool VersionAtLeast(Version version)
30 | {
31 | return VersionAtLeast(version.Major, version.Minor, version.Build);
32 | }
33 |
34 | public static bool VersionAtLeast(int major, int minor, int micro)
35 | {
36 | return hb_version_atleast((uint)major, (uint)minor, (uint)micro);
37 | }
38 |
39 | public static void Shape(this Font font, Buffer buffer)
40 | {
41 | HB.hb_shape(font.Reference, buffer.Reference, IntPtr.Zero, 0);
42 | }
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont.HarfBuzz/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | #region License
2 | /**
3 | * Copyright (c) 2014-2016 Robert Rouhani and other contributors (see CONTRIBUTORS file).
4 | * Licensed under the MIT License - https://raw.github.com/Robmaister/SharpFont.HarfBuzz/master/LICENSE
5 | */
6 | #endregion
7 |
8 | using System.Reflection;
9 | using System.Runtime.CompilerServices;
10 | using System.Runtime.InteropServices;
11 |
12 | // General Information about an assembly is controlled through the following
13 | // set of attributes. Change these attribute values to modify the information
14 | // associated with an assembly.
15 | [assembly: AssemblyTitle("SharpFont.HarfBuzz")]
16 | [assembly: AssemblyDescription("")]
17 | [assembly: AssemblyConfiguration("")]
18 | [assembly: AssemblyCompany("Robmaister")]
19 | [assembly: AssemblyProduct("SharpFont.HarfBuzz")]
20 | [assembly: AssemblyCopyright("Copyright © Robert Rouhani 2014-2016")]
21 | [assembly: AssemblyTrademark("")]
22 | [assembly: AssemblyCulture("")]
23 |
24 | // Setting ComVisible to false makes the types in this assembly not visible
25 | // to COM components. If you need to access a type in this assembly from
26 | // COM, set the ComVisible attribute to true on that type.
27 | [assembly: ComVisible(false)]
28 |
29 | // The following GUID is for the ID of the typelib if this project is exposed to COM
30 | [assembly: Guid("f29fd4e5-e6b7-412f-9cfb-ae1775e0a403")]
31 |
32 | // Version information for an assembly consists of the following four values:
33 | //
34 | // Major Version
35 | // Minor Version
36 | // Build Number
37 | // Revision
38 | //
39 | // You can specify all the values or you can default the Build and Revision Numbers
40 | // by using the '*' as shown below:
41 | // [assembly: AssemblyVersion("1.0.*")]
42 | [assembly: AssemblyVersion("0.1.0.0")]
43 | [assembly: AssemblyFileVersion("1.0.0.0")]
44 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont.HarfBuzz/SharpFont.HarfBuzz.dll.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont.dll.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Ext/SharpFontFork/Source/SharpFont.snk
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Bdf/Internal/PropertyRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.Bdf.Internal
29 | {
30 | [StructLayout(LayoutKind.Explicit, Pack = 0)]
31 | internal struct PropertyRec
32 | {
33 | [FieldOffset(0)]
34 | internal PropertyType type;
35 |
36 | [FieldOffset(4)]
37 | internal IntPtr atom;
38 |
39 | [FieldOffset(4)]
40 | internal int integer;
41 |
42 | [FieldOffset(4)]
43 | internal uint cardinal;
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Bdf/PropertyType.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 |
27 | namespace SharpFont.Bdf
28 | {
29 | ///
30 | /// A list of BDF property types.
31 | ///
32 | public enum PropertyType
33 | {
34 | /// Value 0 is used to indicate a missing property.
35 | None = 0,
36 |
37 | /// Property is a string atom.
38 | Atom = 1,
39 |
40 | /// Property is a 32-bit signed integer.
41 | Integer = 2,
42 |
43 | /// Property is a 32-bit unsigned integer.
44 | Cardinal = 3
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Cache/Internal/CMapCacheRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.Cache.Internal
29 | {
30 | [StructLayout(LayoutKind.Sequential)]
31 | internal struct CMapCacheRec
32 | {
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Cache/Internal/ImageCacheRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.Cache.Internal
29 | {
30 | [StructLayout(LayoutKind.Sequential)]
31 | internal struct ImageCacheRec
32 | {
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Cache/Internal/ImageTypeRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.Cache.Internal
29 | {
30 | [StructLayout(LayoutKind.Sequential)]
31 | internal struct ImageTypeRec
32 | {
33 | internal IntPtr face_id;
34 | internal int width;
35 | internal int height;
36 | internal LoadFlags flags;
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Cache/Internal/ManagerRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.Cache.Internal
29 | {
30 | [StructLayout(LayoutKind.Sequential)]
31 | internal struct ManagerRec
32 | {
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Cache/Internal/NodeRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.Cache.Internal
29 | {
30 | [StructLayout(LayoutKind.Sequential)]
31 | internal struct NodeRec
32 | {
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Cache/Internal/SBitCacheRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.Cache.Internal
29 | {
30 | [StructLayout(LayoutKind.Sequential)]
31 | internal struct SBitCacheRec
32 | {
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Cache/Internal/SBitRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.Cache.Internal
29 | {
30 | [StructLayout(LayoutKind.Sequential)]
31 | internal struct SBitRec
32 | {
33 | internal byte width;
34 | internal byte height;
35 | internal byte left;
36 | internal byte top;
37 |
38 | internal byte format;
39 | internal byte max_grays;
40 | internal short pitch;
41 | internal byte xadvance;
42 | internal byte yadvance;
43 |
44 | internal IntPtr buffer;
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Cache/Internal/ScalerRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.Cache.Internal
29 | {
30 | [StructLayout(LayoutKind.Sequential)]
31 | internal struct ScalerRec
32 | {
33 | internal IntPtr face_id;
34 | internal uint width;
35 | internal uint height;
36 | internal int pixel;
37 | internal uint x_res;
38 | internal uint y_res;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Cff/HintingEngine.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 |
27 | namespace SharpFont.Cff
28 | {
29 | ///
30 | /// A list of constants used for the hinting-engine property to select the hinting engine for CFF fonts.
31 | ///
32 | public enum HintingEngine
33 | {
34 | /// Use the old FreeType hinting engine.
35 | FreeType = 0,
36 |
37 | /// Use the hinting engine contributed by Adobe.
38 | Adobe = 1
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/FTUnitVector.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2015 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont
29 | {
30 | ///
31 | /// A simple structure used to store a 2D vector unit vector. Uses types.
32 | ///
33 | [StructLayout(LayoutKind.Sequential, Pack = 1)]
34 | public struct FTUnitVector
35 | {
36 | ///
37 | /// Horizontal coordinate.
38 | ///
39 | public Fixed2Dot14 X;
40 |
41 | ///
42 | /// Vertical coordinate.
43 | ///
44 | public Fixed2Dot14 Y;
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/GlyphBBoxMode.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 |
27 | namespace SharpFont
28 | {
29 | ///
30 | /// The mode how the values of are returned.
31 | ///
32 | [CLSCompliant(false)]
33 | public enum GlyphBBoxMode : uint
34 | {
35 | /// Return unscaled font units.
36 | Unscaled = 0,
37 |
38 | /// Return unfitted 26.6 coordinates.
39 | Subpixels = 0,
40 |
41 | /// Return grid-fitted 26.6 coordinates.
42 | Gridfit = 1,
43 |
44 | /// Return coordinates in integer pixels.
45 | Truncate = 2,
46 |
47 | /// Return grid-fitted pixel coordinates.
48 | Pixels = 3
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Internal/BitmapGlyphRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.Internal
29 | {
30 | [StructLayout(LayoutKind.Sequential)]
31 | internal struct BitmapGlyphRec
32 | {
33 | internal GlyphRec root;
34 | internal int left;
35 | internal int top;
36 | internal BitmapRec bitmap;
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Internal/BitmapRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.Internal
29 | {
30 | ///
31 | /// Internally represents a Bitmap.
32 | ///
33 | ///
34 | /// Refer to for FreeType documentation.
35 | ///
36 | [StructLayout(LayoutKind.Sequential)]
37 | internal struct BitmapRec
38 | {
39 | internal int rows;
40 | internal int width;
41 | internal int pitch;
42 | internal IntPtr buffer;
43 | internal short num_grays;
44 | internal PixelMode pixel_mode;
45 | internal byte palette_mode;
46 | internal IntPtr palette;
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Internal/BitmapSizeRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2015 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | using FT_Long = System.IntPtr;
29 | using FT_ULong = System.UIntPtr;
30 |
31 | namespace SharpFont.Internal
32 | {
33 | ///
34 | /// Internally represents a BitmapSize.
35 | ///
36 | ///
37 | /// Refer to for FreeType documentation.
38 | ///
39 | [StructLayout(LayoutKind.Sequential)]
40 | internal struct BitmapSizeRec
41 | {
42 | internal short height;
43 | internal short width;
44 |
45 | internal FT_Long size;
46 |
47 | internal FT_Long x_ppem;
48 | internal FT_Long y_ppem;
49 |
50 | internal static int SizeInBytes { get { return Marshal.SizeOf(typeof(BitmapSizeRec)); } }
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Internal/CharMapRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | using SharpFont.TrueType;
29 |
30 | namespace SharpFont.Internal
31 | {
32 | ///
33 | /// Internally represents a CharMap.
34 | ///
35 | ///
36 | /// Refer to for FreeType documentation.
37 | ///
38 | [StructLayout(LayoutKind.Sequential)]
39 | internal struct CharMapRec
40 | {
41 | internal IntPtr face;
42 | internal Encoding encoding;
43 | internal PlatformId platform_id;
44 | internal ushort encoding_id;
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Internal/GenericRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2014 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.Internal
29 | {
30 | [StructLayout(LayoutKind.Sequential)]
31 | internal struct GenericRec
32 | {
33 | internal IntPtr data;
34 | internal IntPtr finalizer;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Internal/GlyphRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.Internal
29 | {
30 | [StructLayout(LayoutKind.Sequential)]
31 | internal struct GlyphRec
32 | {
33 | internal IntPtr library;
34 | private IntPtr clazz;
35 | internal GlyphFormat format;
36 | internal FTVector advance;
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Internal/GlyphToScriptMapPropertyRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.Internal
29 | {
30 | [StructLayout(LayoutKind.Sequential)]
31 | internal struct GlyphToScriptMapPropertyRec
32 | {
33 | internal IntPtr face;
34 | internal IntPtr map;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Internal/IncreaseXHeightPropertyRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.Internal
29 | {
30 | [StructLayout(LayoutKind.Sequential)]
31 | internal struct IncreaseXHeightPropertyRec
32 | {
33 | internal IntPtr face;
34 | internal uint limit;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Internal/ListNodeRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.Internal
29 | {
30 | [StructLayout(LayoutKind.Sequential)]
31 | internal struct ListNodeRec
32 | {
33 | internal IntPtr prev;
34 | internal IntPtr next;
35 | internal IntPtr data;
36 |
37 | internal static int SizeInBytes { get { return Marshal.SizeOf(typeof(ListNodeRec)); } }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Internal/ListRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.Internal
29 | {
30 | [StructLayout(LayoutKind.Sequential)]
31 | internal struct ListRec
32 | {
33 | internal IntPtr head;
34 | internal IntPtr tail;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Internal/MemoryRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.Internal
29 | {
30 | [StructLayout(LayoutKind.Sequential)]
31 | internal struct MemoryRec
32 | {
33 | internal IntPtr user;
34 | internal AllocFunc alloc;
35 | internal FreeFunc free;
36 | internal ReallocFunc realloc;
37 |
38 | internal static int SizeInBytes { get { return Marshal.SizeOf(typeof(MemoryRec)); } }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Internal/ModuleClassRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2015 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | using FT_Long = System.IntPtr;
29 | using FT_ULong = System.UIntPtr;
30 |
31 | namespace SharpFont.Internal
32 | {
33 | [StructLayout(LayoutKind.Sequential)]
34 | internal struct ModuleClassRec
35 | {
36 | internal uint module_flags;
37 | internal FT_Long module_size;
38 |
39 | [MarshalAs(UnmanagedType.LPStr)]
40 | internal string module_name;
41 | internal FT_Long module_version;
42 | internal FT_Long module_requires;
43 |
44 | internal IntPtr module_interface;
45 |
46 | internal ModuleConstructor module_init;
47 | internal ModuleDestructor module_done;
48 | internal ModuleRequester get_interface;
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Internal/NativeObject.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace SharpFont
4 | {
5 | ///
6 | /// Provide a consistent means for using pointers as references.
7 | ///
8 | public abstract class NativeObject
9 | {
10 | private IntPtr reference;
11 |
12 | ///
13 | /// Construct a new NativeObject and assign the reference.
14 | ///
15 | ///
16 | protected NativeObject(IntPtr reference)
17 | {
18 | this.reference = reference;
19 | }
20 |
21 | internal virtual IntPtr Reference
22 | {
23 | get
24 | {
25 | return reference;
26 | }
27 | set
28 | {
29 | reference = value;
30 | }
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Internal/OpenArgsRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2015 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | using FT_Long = System.IntPtr;
29 | using FT_ULong = System.UIntPtr;
30 |
31 | namespace SharpFont.Internal
32 | {
33 | [StructLayout(LayoutKind.Sequential)]
34 | internal struct OpenArgsRec
35 | {
36 | internal OpenFlags flags;
37 | internal IntPtr memory_base;
38 | internal FT_Long memory_size;
39 |
40 | [MarshalAs(UnmanagedType.LPStr)]
41 | internal string pathname;
42 |
43 | internal IntPtr stream;
44 | internal IntPtr driver;
45 | internal int num_params;
46 | internal IntPtr @params;
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Internal/OutlineFuncsRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2015 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | using FT_Long = System.IntPtr;
29 | using FT_ULong = System.UIntPtr;
30 |
31 | namespace SharpFont.Internal
32 | {
33 | [StructLayout(LayoutKind.Sequential)]
34 | internal struct OutlineFuncsRec
35 | {
36 | internal IntPtr moveTo;
37 | internal IntPtr lineTo;
38 | internal IntPtr conicTo;
39 | internal IntPtr cubicTo;
40 | internal int shift;
41 | internal FT_Long delta;
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Internal/OutlineGlyphRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.Internal
29 | {
30 | [StructLayout(LayoutKind.Sequential)]
31 | internal struct OutlineGlyphRec
32 | {
33 | internal GlyphRec root;
34 | internal OutlineRec outline;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Internal/OutlineRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.Internal
29 | {
30 | [StructLayout(LayoutKind.Sequential)]
31 | internal struct OutlineRec
32 | {
33 | internal short n_contours;
34 | internal short n_points;
35 |
36 | internal IntPtr points;
37 | internal IntPtr tags;
38 | internal IntPtr contours;
39 |
40 | internal OutlineFlags flags;
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Internal/ParameterRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2015 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | using FT_Long = System.IntPtr;
29 | using FT_ULong = System.UIntPtr;
30 |
31 | namespace SharpFont.Internal
32 | {
33 | [StructLayout(LayoutKind.Sequential)]
34 | internal struct ParameterRec
35 | {
36 | internal FT_ULong tag;
37 | internal IntPtr data;
38 |
39 | internal static int SizeInBytes { get { return Marshal.SizeOf(typeof(ParameterRec)); } }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Internal/RasterFuncsRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.Internal
29 | {
30 | [StructLayout(LayoutKind.Sequential)]
31 | internal struct RasterFuncsRec
32 | {
33 | internal GlyphFormat glyph_format;
34 | internal RasterNewFunc raster_new;
35 | internal RasterResetFunc raster_reset;
36 | internal RasterSetModeFunc raster_set_mode;
37 | internal RasterRenderFunc raster_render;
38 | internal RasterDoneFunc raster_done;
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Internal/RasterParamsRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013, 2016 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.Internal
29 | {
30 | [StructLayout(LayoutKind.Sequential)]
31 | internal struct RasterParamsRec
32 | {
33 | internal IntPtr target;
34 | internal IntPtr source;
35 | internal RasterFlags flags;
36 | internal RasterSpanFunc gray_spans;
37 | internal RasterSpanFunc black_spans;
38 |
39 | [Obsolete("Unused")]
40 | internal RasterBitTestFunc bit_test;
41 |
42 | [Obsolete("Unused")]
43 | internal RasterBitSetFunc bit_set;
44 |
45 | internal IntPtr user;
46 | internal BBox clip_box;
47 |
48 | internal static int SizeInBytes { get { return Marshal.SizeOf(typeof(RasterParamsRec)); } }
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Internal/RendererClassRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.Internal
29 | {
30 | [StructLayout(LayoutKind.Sequential)]
31 | internal struct RendererClassRec
32 | {
33 | internal ModuleClassRec root;
34 |
35 | internal GlyphFormat glyph_format;
36 |
37 | internal IntPtr render_glyph;
38 | internal IntPtr transform_glyph;
39 | internal IntPtr get_glyph_cbox;
40 | internal IntPtr set_mode;
41 |
42 | internal IntPtr raster_class;
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Internal/SizeMetricsRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2015 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | using FT_Long = System.IntPtr;
29 | using FT_ULong = System.UIntPtr;
30 |
31 | namespace SharpFont.Internal
32 | {
33 | [StructLayout(LayoutKind.Sequential)]
34 | internal struct SizeMetricsRec
35 | {
36 | internal ushort x_ppem;
37 | internal ushort y_ppem;
38 |
39 | internal FT_Long x_scale;
40 | internal FT_Long y_scale;
41 | internal FT_Long ascender;
42 | internal FT_Long descender;
43 | internal FT_Long height;
44 | internal FT_Long max_advance;
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Internal/SizeRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 |
29 | namespace SharpFont.Internal
30 | {
31 | [StructLayout(LayoutKind.Sequential)]
32 | internal struct SizeRec
33 | {
34 | internal IntPtr face;
35 | internal GenericRec generic;
36 | internal SizeMetricsRec metrics;
37 | private IntPtr @internal;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Internal/SizeRequestRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2015 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | using FT_Long = System.IntPtr;
29 | using FT_ULong = System.UIntPtr;
30 |
31 | namespace SharpFont.Internal
32 | {
33 | ///
34 | /// Internally represents a .
35 | ///
36 | ///
37 | /// Refer to for FreeType documentation.
38 | ///
39 | [StructLayout(LayoutKind.Sequential)]
40 | internal struct SizeRequestRec
41 | {
42 | internal SizeRequestType type;
43 | internal FT_Long width;
44 | internal FT_Long height;
45 | internal uint horiResolution;
46 | internal uint vertResolution;
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Internal/SpanRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.Internal
29 | {
30 | [StructLayout(LayoutKind.Sequential)]
31 | internal struct SpanRec
32 | {
33 | internal short x;
34 | internal ushort len;
35 | internal byte coverage;
36 |
37 | internal static int SizeInBytes { get { return Marshal.SizeOf(typeof(SpanRec)); } }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Internal/StreamDescRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2015 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | using FT_Long = System.IntPtr;
29 | using FT_ULong = System.UIntPtr;
30 |
31 | namespace SharpFont.Internal
32 | {
33 | [StructLayout(LayoutKind.Explicit)]
34 | internal struct StreamDescRec
35 | {
36 | [FieldOffset(0)]
37 | internal FT_Long value;
38 |
39 | [FieldOffset(0)]
40 | internal IntPtr pointer;
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Internal/StreamRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2015 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | using FT_Long = System.IntPtr;
29 | using FT_ULong = System.UIntPtr;
30 |
31 | namespace SharpFont.Internal
32 | {
33 | [StructLayout(LayoutKind.Sequential)]
34 | internal struct StreamRec
35 | {
36 | internal IntPtr @base;
37 | internal FT_ULong size;
38 | internal FT_ULong pos;
39 |
40 | internal StreamDescRec descriptor;
41 | internal StreamDescRec pathname;
42 | internal StreamIOFunc read;
43 | internal StreamCloseFunc close;
44 |
45 | internal IntPtr memory;
46 | internal IntPtr cursor;
47 | internal IntPtr limit;
48 |
49 | internal static int SizeInBytes { get { return Marshal.SizeOf(typeof(StreamRec)); } }
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/KerningMode.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 |
27 | namespace SharpFont
28 | {
29 | ///
30 | /// An enumeration used to specify which kerning values to return in .
31 | ///
32 | public enum KerningMode
33 | {
34 | ///
35 | /// Return scaled and grid-fitted kerning distances.
36 | ///
37 | Default = 0,
38 |
39 | ///
40 | /// Return scaled but un-grid-fitted kerning distances.
41 | ///
42 | Unfitted,
43 |
44 | ///
45 | /// Return the kerning vector in original font units.
46 | ///
47 | Unscaled
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Module.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 |
27 | namespace SharpFont
28 | {
29 | ///
30 | /// A handle to a given FreeType module object. Each module can be a font driver, a renderer, or anything else that
31 | /// provides services to the formers.
32 | ///
33 | public sealed class Module : NativeObject
34 | {
35 | #region Constructors
36 |
37 | internal Module(IntPtr reference): base(reference)
38 | {
39 | }
40 |
41 | #endregion
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/MultipleMasters/Internal/MMAxisRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2015 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | using FT_Long = System.IntPtr;
29 | using FT_ULong = System.UIntPtr;
30 |
31 | namespace SharpFont.MultipleMasters.Internal
32 | {
33 | [StructLayout(LayoutKind.Sequential)]
34 | internal struct MMAxisRec
35 | {
36 | [MarshalAs(UnmanagedType.LPStr)]
37 | internal string name;
38 |
39 | internal FT_Long minimum;
40 | internal FT_Long maximum;
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/MultipleMasters/Internal/MMVarRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.MultipleMasters.Internal
29 | {
30 | [StructLayout(LayoutKind.Sequential)]
31 | internal struct MMVarRec
32 | {
33 | internal uint num_axis;
34 | internal uint num_designs;
35 | internal uint num_namedstyles;
36 | internal IntPtr axis;
37 | internal IntPtr namedstyle;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/MultipleMasters/Internal/MultiMasterRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.MultipleMasters.Internal
29 | {
30 | [StructLayout(LayoutKind.Sequential)]
31 | internal struct MultiMasterRec
32 | {
33 | internal uint num_axis;
34 | internal uint num_designs;
35 |
36 | [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]
37 | internal MMAxisRec[] axis;
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/MultipleMasters/Internal/VarAxisRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2015 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | using FT_Long = System.IntPtr;
29 | using FT_ULong = System.UIntPtr;
30 |
31 | namespace SharpFont.MultipleMasters.Internal
32 | {
33 | [StructLayout(LayoutKind.Sequential)]
34 | internal struct VarAxisRec
35 | {
36 | [MarshalAs(UnmanagedType.LPStr)]
37 | internal string name;
38 |
39 | internal FT_Long minimum;
40 | internal FT_Long def;
41 | internal FT_Long maximum;
42 |
43 | internal FT_ULong tag;
44 | internal uint strid;
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/MultipleMasters/Internal/VarNamedStyleRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.MultipleMasters.Internal
29 | {
30 | [StructLayout(LayoutKind.Sequential)]
31 | internal struct VarNamedStyleRec
32 | {
33 | internal IntPtr coords;
34 | internal uint strid;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/PostScript/EncodingType.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 |
27 | namespace SharpFont.PostScript
28 | {
29 | ///
30 | /// An enumeration describing the ‘Encoding’ entry in a Type 1 dictionary.
31 | ///
32 | public enum EncodingType
33 | {
34 | ///
35 | /// Not encoded.
36 | ///
37 | None = 0,
38 | ///
39 | /// Array encoding.
40 | ///
41 | Array,
42 | ///
43 | /// Standard encoding.
44 | ///
45 | Standard,
46 | ///
47 | /// ISO Latin 1 encoding.
48 | ///
49 | IsoLatin1,
50 | ///
51 | /// Expert encoding.
52 | ///
53 | Expert
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/Raster.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont
29 | {
30 | ///
31 | /// A handle (pointer) to a raster object. Each object can be used independently to convert an outline into a
32 | /// bitmap or pixmap.
33 | ///
34 | public class Raster : NativeObject
35 | {
36 | #region Constructors
37 |
38 | internal Raster(IntPtr reference) : base(reference)
39 | {
40 | }
41 |
42 | #endregion
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/StrokerLineCap.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 |
27 | namespace SharpFont
28 | {
29 | ///
30 | /// These values determine how the end of opened sub-paths are rendered in a stroke.
31 | ///
32 | public enum StrokerLineCap
33 | {
34 | ///
35 | /// The end of lines is rendered as a full stop on the last point itself.
36 | ///
37 | Butt = 0,
38 |
39 | ///
40 | /// The end of lines is rendered as a half-circle around the last point.
41 | ///
42 | Round,
43 |
44 | ///
45 | /// The end of lines is rendered as a square around the last point.
46 | ///
47 | Square
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/TrueType/Internal/PostscriptRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2015 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | using FT_Long = System.IntPtr;
29 | using FT_ULong = System.UIntPtr;
30 |
31 | namespace SharpFont.TrueType.Internal
32 | {
33 | [StructLayout(LayoutKind.Sequential)]
34 | internal struct PostscriptRec
35 | {
36 | internal FT_Long FormatType;
37 | internal FT_Long italicAngle;
38 | internal short underlinePosition;
39 | internal short underlineThickness;
40 | internal FT_ULong isFixedPitch;
41 | internal FT_ULong minMemType42;
42 | internal FT_ULong maxMemType42;
43 | internal FT_ULong minMemType1;
44 | internal FT_ULong maxMemType1;
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/Ext/SharpFontFork/Source/SharpFont/TrueType/Internal/SfntNameRec.cs:
--------------------------------------------------------------------------------
1 | #region MIT License
2 | /*Copyright (c) 2012-2013 Robert Rouhani
3 |
4 | SharpFont based on Tao.FreeType, Copyright (c) 2003-2007 Tao Framework Team
5 |
6 | Permission is hereby granted, free of charge, to any person obtaining a copy of
7 | this software and associated documentation files (the "Software"), to deal in
8 | the Software without restriction, including without limitation the rights to
9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10 | of the Software, and to permit persons to whom the Software is furnished to do
11 | so, subject to the following conditions:
12 |
13 | The above copyright notice and this permission notice shall be included in all
14 | copies or substantial portions of the Software.
15 |
16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 | SOFTWARE.*/
23 | #endregion
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace SharpFont.TrueType.Internal
29 | {
30 | [StructLayout(LayoutKind.Sequential)]
31 | internal struct SfntNameRec
32 | {
33 | internal PlatformId platform_id;
34 | internal ushort encoding_id;
35 | internal ushort language_id;
36 | internal ushort name_id;
37 |
38 | internal IntPtr @string;
39 | internal uint string_len;
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/Ext/System.Data.SQLite.DLL:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Ext/System.Data.SQLite.DLL
--------------------------------------------------------------------------------
/Ext/span/System.Memory.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Ext/span/System.Memory.dll
--------------------------------------------------------------------------------
/Ext/span/System.Runtime.CompilerServices.Unsafe.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/Ext/span/System.Runtime.CompilerServices.Unsafe.dll
--------------------------------------------------------------------------------
/Ext/zstd/LICENSE:
--------------------------------------------------------------------------------
1 | BSD License
2 |
3 | For Zstandard software
4 |
5 | Copyright (c) 2016-present, Facebook, Inc. All rights reserved.
6 |
7 | Redistribution and use in source and binary forms, with or without modification,
8 | are permitted provided that the following conditions are met:
9 |
10 | * Redistributions of source code must retain the above copyright notice, this
11 | list of conditions and the following disclaimer.
12 |
13 | * Redistributions in binary form must reproduce the above copyright notice,
14 | this list of conditions and the following disclaimer in the documentation
15 | and/or other materials provided with the distribution.
16 |
17 | * Neither the name Facebook nor the names of its contributors may be used to
18 | endorse or promote products derived from this software without specific
19 | prior written permission.
20 |
21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
22 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
25 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
28 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 |
--------------------------------------------------------------------------------
/Ext/zstd/common/debug.c:
--------------------------------------------------------------------------------
1 | /* ******************************************************************
2 | * debug
3 | * Part of FSE library
4 | * Copyright (c) Yann Collet, Facebook, Inc.
5 | *
6 | * You can contact the author at :
7 | * - Source repository : https://github.com/Cyan4973/FiniteStateEntropy
8 | *
9 | * This source code is licensed under both the BSD-style license (found in the
10 | * LICENSE file in the root directory of this source tree) and the GPLv2 (found
11 | * in the COPYING file in the root directory of this source tree).
12 | * You may select, at your option, one of the above-listed licenses.
13 | ****************************************************************** */
14 |
15 |
16 | /*
17 | * This module only hosts one global variable
18 | * which can be used to dynamically influence the verbosity of traces,
19 | * such as DEBUGLOG and RAWLOG
20 | */
21 |
22 | #include "debug.h"
23 |
24 | int g_debuglevel = DEBUGLEVEL;
25 |
--------------------------------------------------------------------------------
/Ext/zstd/decompress/zstd_ddict.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) Yann Collet, Facebook, Inc.
3 | * All rights reserved.
4 | *
5 | * This source code is licensed under both the BSD-style license (found in the
6 | * LICENSE file in the root directory of this source tree) and the GPLv2 (found
7 | * in the COPYING file in the root directory of this source tree).
8 | * You may select, at your option, one of the above-listed licenses.
9 | */
10 |
11 |
12 | #ifndef ZSTD_DDICT_H
13 | #define ZSTD_DDICT_H
14 |
15 | /*-*******************************************************
16 | * Dependencies
17 | *********************************************************/
18 | #include "../common/zstd_deps.h" /* size_t */
19 | #include "../zstd.h" /* ZSTD_DDict, and several public functions */
20 |
21 |
22 | /*-*******************************************************
23 | * Interface
24 | *********************************************************/
25 |
26 | /* note: several prototypes are already published in `zstd.h` :
27 | * ZSTD_createDDict()
28 | * ZSTD_createDDict_byReference()
29 | * ZSTD_createDDict_advanced()
30 | * ZSTD_freeDDict()
31 | * ZSTD_initStaticDDict()
32 | * ZSTD_sizeof_DDict()
33 | * ZSTD_estimateDDictSize()
34 | * ZSTD_getDictID_fromDict()
35 | */
36 |
37 | const void* ZSTD_DDict_dictContent(const ZSTD_DDict* ddict);
38 | size_t ZSTD_DDict_dictSize(const ZSTD_DDict* ddict);
39 |
40 | void ZSTD_copyDDictParameters(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict);
41 |
42 |
43 |
44 | #endif /* ZSTD_DDICT_H */
45 |
--------------------------------------------------------------------------------
/Ext/zstd/libzstd.pc.in:
--------------------------------------------------------------------------------
1 | # ZSTD - standard compression algorithm
2 | # Copyright (C) 2014-2016, Yann Collet, Facebook
3 | # BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
4 |
5 | prefix=@PREFIX@
6 | exec_prefix=@EXEC_PREFIX@
7 | includedir=@INCLUDEDIR@
8 | libdir=@LIBDIR@
9 |
10 | Name: zstd
11 | Description: fast lossless compression algorithm library
12 | URL: http://www.zstd.net/
13 | Version: @VERSION@
14 | Libs: -L${libdir} -lzstd
15 | Cflags: -I${includedir}
16 |
--------------------------------------------------------------------------------
/ShaderCompiler/ShaderCompiler.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.28010.2019
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ShaderCompiler", "ShaderCompiler.csproj", "{98ACE85D-3135-430E-B238-6D864BE36A4B}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {98ACE85D-3135-430E-B238-6D864BE36A4B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {98ACE85D-3135-430E-B238-6D864BE36A4B}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {98ACE85D-3135-430E-B238-6D864BE36A4B}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {98ACE85D-3135-430E-B238-6D864BE36A4B}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {C3965A13-AAC8-478B-BD42-AB6201B48074}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/ShaderCompiler/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/ShaderCompiler/bin/ShaderCompiler.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sq/Libraries/5747f3824236093fff413d38f132a1d44d1f2d78/ShaderCompiler/bin/ShaderCompiler.exe
--------------------------------------------------------------------------------
/ShaderCompiler/bin/ShaderCompiler.exe.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/Squared/Examples/CurveTester/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Windows.Forms;
5 |
6 | namespace CurveTester {
7 | static class Program {
8 | ///
9 | /// The main entry point for the application.
10 | ///
11 | [STAThread]
12 | static void Main () {
13 | Application.EnableVisualStyles();
14 | Application.SetCompatibleTextRenderingDefault(false);
15 | Application.Run(new MainWindow());
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/Squared/Examples/CurveTester/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("CurveTester")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("CurveTester")]
13 | [assembly: AssemblyCopyright("Copyright © 2012")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("325eb716-d7dd-4f3e-a8e4-d6467ee0a454")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Squared/Examples/CurveTester/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace CurveTester.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.12.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/Squared/Examples/CurveTester/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Squared/Examples/CurveTester/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/Squared/Examples/MUDServer/MUDServerTests/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("MUDServerTests")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("MUDServerTests")]
13 | [assembly: AssemblyCopyright("Copyright © 2008")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("c2f5798b-00f3-4816-8d2c-be8ef8bf5134")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Squared/Examples/MUDServer/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using Squared.Task;
6 | using Squared.Threading;
7 |
8 | namespace MUDServer {
9 | public static class Program {
10 | public static Random RNG = new Random();
11 | public static TaskScheduler Scheduler;
12 | public static TelnetServer Server;
13 |
14 | static void Main (string[] args) {
15 | Scheduler = new TaskScheduler();
16 |
17 | World.Create();
18 | Event.Broadcast(new { Type = EventType.WorldConstructed });
19 |
20 | Server = new TelnetServer(Scheduler, System.Net.IPAddress.Any, 23);
21 | Scheduler.Start(HandleNewClients(), TaskExecutionPolicy.RunAsBackgroundTask);
22 |
23 | while (true) {
24 | Scheduler.Step();
25 | Scheduler.WaitForWorkItems();
26 | }
27 | }
28 |
29 | static IEnumerator