Rapi and fonts ?

moster67

Expert
Licensed User
Longtime User
It seems that within CF.NET the class System.IO.FileInfo supports getting and settings attributes. Maybe you can use the Door-library somehow to set the attributes although I can't say since I never used it. In addition, I don't know if a "font" is considered a file.

Here is some sample code in C# which I found:

B4X:
FileInfo fi = new FileInfo(fileLocation);
if((FileAttributes.ReadOnly) == (fi.Attributes &
FileAttributes.ReadOnly)) // bitwise comparison
{
fi.Attributes -= FileAttributes.ReadOnly; // remove the readonly attribute
}

Maybe you can write your own specific library for this purpose or maybe Erel can give you a helping hand with that.

EDIT: - It seems like Filippo's http://www.b4x.com/forum/additional-libraries/1238-fgcontrols-library.html#post6485 supports setting attributes.

Good luck.
 
Last edited:

agraham

Expert
Licensed User
Longtime User

derez

Expert
Licensed User
Longtime User
Andrew
I did use your filesEx : I save the font file to the device in a different name (instead of .TTF) and then I run a small application to rename the file to the correct name.

I think I am almost there - the process works, I get an error after the renaming application is copied but for this one I can use errorlabel :sign0060:
 

IoSonoPiero

Active Member
Licensed User
Longtime User

Good, then.

The app is now completely working?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…