"Minimum supported server Windows 2000 Server [desktop apps only]"
So how am I going to retrieve an embedded Font, say 'Verdana' from the GDI private font collection?
This is not working on Azure hosted Asp.Net site, on my local PC the byteCount is logical and correct (240456) but the uInt returned from code
hosted on Asp.net is out of range (322122506) for byte array.
What are you trying to do? .NET functions to get font information are not enough? Also keep in mind that server side fonts are unrelated to the fonts that are found client side. Are you using an Azure VM or an Azure web app? I woudl suspect a 32 bit vs 64
bit issue maybe. What is the return value for GetDC ??? It seems to make little sense for a web app.
I suspect you might be in a case where what you are doing seems to work on your own machine as both the server and the client are the same while it won't ever work on a real web server.
None
0 Points
1 Post
Gdi32 returns Arithmetic errors on Asp.Net
Mar 16, 2015 12:47 AM|OzBob|LINK
http://www.pinvoke.net/default.aspx/gdi32/GetFontData.html
following the guidance on https://msdn.microsoft.com/en-us/library/dd144885(v=vs.85).aspx
"Minimum supported server Windows 2000 Server [desktop apps only]"
So how am I going to retrieve an embedded Font, say 'Verdana' from the GDI private font collection?
This is not working on Azure hosted Asp.Net site, on my local PC the byteCount is logical and correct (240456) but the uInt returned from code hosted on Asp.net is out of range (322122506) for byte array.
GDI32WEBFONTS
All-Star
48300 Points
18003 Posts
Re: Gdi32 returns Arithmetic errors on Asp.Net
Feb 01, 2016 03:08 PM|PatriceSc|LINK
Hi,
What are you trying to do? .NET functions to get font information are not enough? Also keep in mind that server side fonts are unrelated to the fonts that are found client side. Are you using an Azure VM or an Azure web app? I woudl suspect a 32 bit vs 64 bit issue maybe. What is the return value for GetDC ??? It seems to make little sense for a web app.
I suspect you might be in a case where what you are doing seems to work on your own machine as both the server and the client are the same while it won't ever work on a real web server.