Hello,
Is it possible to create a FormFont from an OpenTypeFont in order to set the Forms.Button.Font member? We would like to use a custom embedded font for our form buttons if possible.
Thanks,
Pete
Embedded FormFont
Re: Embedded FormFont
Support · Jun 4, 2009Hello Pete,
If you are adding the button to the PDF document using our API, then you can set the font for the button to any desired OpenTypeFont without any problem.
Thanks,
ceTe Software Support Team
Re: Embedded FormFont
Forum member · Jun 4, 2009The Button's Font member is of type FormFont. How would I create and assign an OpenTypeFont to it.
The code below doesn't compile due to the incompatible cast from OpenTypeFont to FormFont but demonstrates our intent.
OpenTypeFont myOpenTypeFont = new OpenTypeFont("someFont.otf");
Button myButton = new Button("myButton", 0, 0, 100, 50);
myButton.Font = myOpenTypeFont;
Re: Embedded FormFont
Support · Jun 4, 2009Hello,
Sorry for the confusion. You can only use any of the Core Fonts to set the Font property of the Button. You cannot use any OpenType or Type1 fonts for setting the Font property of the Button form field.
Thanks,
ceTe Software Support Team