-
Notifications
You must be signed in to change notification settings - Fork 4
Added support for UTF and for loading of TTF fonts #41
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
base: master
Are you sure you want to change the base?
Conversation
| Function HPDF_GetCurrentEncoder:Byte ptr(handler:Byte Ptr, encodingName:Byte Ptr) | ||
| Function HPDF_SetCurrentEncoder:ULongInt(handler:Byte Ptr, encodingName:Byte Ptr) | ||
| Function HPDF_LoadRawImageFromMem:Byte Ptr(handler:Byte Ptr, buf:Byte Ptr, width:UInt, height:UInt, colorSpace:EPDFColorSpace, bitsPerComponent:UInt) | ||
| Function HPDF_UseUTFEncodings(handler:Byte Ptr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should return ULongInt
| <a href="../examples/utf.bmx">Example source</a> | ||
| EndRem | ||
| Method UseUTFEncodings() | ||
| HPDF_UseUTFEncodings(docPtr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should return the result.
| about: | ||
| <a href="../examples/load_font.bmx">Example source</a> | ||
| EndRem | ||
| Method LoadTTFontFromFile:String(path:String, embedding:Int=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem with this is it doesn't support multi byte file names.
It might be better to call it LoadTTFont and accept an path:Object and have it accept a TStream or String.
And then call LoadTTFontFromStream, passing in a specially constructed HPDF_Stream using something like HPDF_CallbackReader_New, which would wrap the callback functions into the TStream.
|
Very good points, thanks. I'll update the PR when I get a chance. |
|
I lifted the reflection update out of here. Thanks :) |
|
Ah yeah, no worries - but it still needs a bit more work I think. Not sure if Seems jconv/tests/test.bmx runs but with some errors. Also, |
No description provided.