Applies to Product - Dynamics 365 Commerce
What’s happening?
Customers are unable to implement customized fonts or adjust font sizes and faces in receipts generated by the Point of Sale (POS) system.
Reason:
The underlying cause for this is that the functionality to customize font size and face is not exposed in the provided sample code for the POS system.
Resolution:
- For implementing a customized font, ensure that the font is in the correct format (e.g., .otf) and is properly imported into the system.
- To adjust the font size and face in receipts, create a request handler to override the GetPrinterSettingsRequestHandler. This handler should return a WindowsPrinterSettings object that sets the desired values for font type, size, and DPI settings.
- Modify the DPI value to scale the receipt data to fit within the dimensions of the receipt paper. For instance, setting the DPI value to a lower number can help shrink the printed data.
- If further customization is needed, refer to the Microsoft GitHub discussions platform for additional guidance on SDK customizations.
