Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set font to textBox #2

Open
sami-soft opened this issue Dec 16, 2022 · 0 comments
Open

set font to textBox #2

sami-soft opened this issue Dec 16, 2022 · 0 comments

Comments

@sami-soft
Copy link

sami-soft commented Dec 16, 2022

Hello good time
How can I assign the shx font to a textBox?

            ShxFile _shxFile = ShxFile.Load("1.shx"); ;
            var fontSize = 24.0;
            var data = _shxFile.GetGraphicData(textBox1.Text, fontSize, fontSize / 1.5, fontSize / 10, fontSize / 10).Select(ts => 
            ts.Offset(new Vector(0, (double)_shxFile.FontFile.BaseDown / _shxFile.FontFile.BaseUp * fontSize)));
             
            textBox2.Font = ............ 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant