max0180's picture

OpenTK.Fonts

Hi,

I cant use "using OpenTK.Fonts". Fonts are not available.
I only have OpenTK.Graphics - Platform - Input - Math.

libraries are OPentk.dll und Opentk.utilities.dll

i use opentk 0.9.1 version..

Do Fonts work with Linux?

markus


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
puklaus's picture

Yes they work but there is no OpenTK.Fonts;

using OpenTK.Graphics;
.
.
ITextPrinter printer = new TextPrinter();
TextureFont font=new TextureFont(new Font(FontFamily.GenericSerif, 24.0f));
.
.
printer.Begin();
printer.Draw("Hello world", font);
printer.End();
.
.

max0180's picture

thanks.

but it didnt work.

printer.Draw("hello", font);
(TypeLoadException - Type OpenTK.Patform.GdiPus in Assembly OpenTK, Version..., Culture = neutral, PublicKeyToken = null could not be loaded)

Ive got no idea?

max0180's picture

ok i figured it out.

Ive forgotten to place all openTK.config files in this directory

the Fiddler's picture

Just to let you know that I'm working on a method to remove the need for dll.config files.