The user will have a MICR font they will use. We need to be able to
-
Show the MICR font in the web report designer. The font will be on the users machine. Each user may have a different MICR font.
-
Use the font selected by the user when exporting the report to pdf in the MVC applications controller method.
What steps do we have to do take to accomplish the above?
Hello Chad,Thank you for your valuable input.
I'm afraid that at the moment the ASPxReportDesigner component has only a predefined fonts list and there is no easy way to achieve this goal. At the moment, you can use the following workaround to achieve this goal:
<script type="text/javascript"> //Adding custom font to the fonts list DevExpress.Designer.fontInfoFake.filter(function (value) { return value.displayName === "Font Name"; })[0].values["Custom Font Name"] = "Custom Font Name"; </script>
In case it is also necessary to force the report controls to draw text using a custom font right within the ASPxReportDesigner, add the following style:
<style type="text/css"> @font-face { font-family: "Custom Font Name"; src: url(Fonts/Custom_Font_File.ttf); } </style>
Please note that this workaround will allow you to use custom fonts that are taken from the server side.
I believe that this feature makes sense in case it is introduced out of the box, so I've taken the liberty to convert this thread to a feature-request thread. This thread is forwarded to our R&D team for further research so that they'll consider implementing this feature in our future releases. We'll update this thread with the corresponding information as soon as we have any results.
Would you mind if I make this thread public so that our other customers will be able to track our progress with this feature?
Thank you for sharing your ideas with us and helping us improve our products,
Dmitry
sure, you can set it to public. I wish next version can more think over Asian people