'Get original source of embed .NET function
i am working to a project that will create a font dynamicly for C#
For that i use the function ConvertFromString of the Fontconverter class of the namespace System.ComponentModel.
its point is to create a font from a string
Ex:
var cvt = new FontConverter();
Label newLabel = new Label();
coolLabel.Font = cvt.ConvertFromString("Microsoft Sans Serif; 8,25; style=Bold") as Font;
But i would like to create dynamicly string with all options, its really hard to work with the original function and i would like to get the source of it.
I tried googling for the function source & on the .net repos of dotnet but could not find the sosaid function.
I also tried looking trought VS Code 2019, no result
(Just showed me a Resume, parameters, returns, exceptions as a comments
So, if anyone can help me getting the original function so i can get my work done, thanks.
To be more clear, i want to "translate" this C# function to NodeJS so i can send NodeJS generated font so C# work on it.
Note: i DID checked on StackOverflow but did not found any question like mine that could help me.
Solution 1:[1]
You could use a .NET Decompiler to have a look under the hood. I used dotPeek in the past which performed well
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Yama |
