I'm porting an app to android from windows mobile. This app has printing support.
In Windows mobile I used PrinterCe framework, but in the android app I have written a framework to create CPCL labels.
Everything works ok except for the font. In the windows mobile app I can set the font doing:
((PrinterCE)m_Printer).FontName = "Tahoma";
but as CPCL manual says I can choose between 7 fonts but tahoma is not in the list.
What method PrinterCE uses to allow me printing using Tahoma??
I think the framework takes care of upload the font to the printer.. but how do I use that font once uploaded??
Update:
I'm using the printer in Line Printing Mode.
I've never used PrinterCE, but I assume it writes text, images, barcodes, etc onto a canvas and then at the end of the document, sends it down to the printer as an image, which is why it would let you use any font available on the CE device. If you want to use a non-native font on a CPCL printer, you have to first download it to the printer. (See this answer here on how to make pre-scaled fonts). Then you would have to use that font in your format.
Related
I am trying to build a UI which should work on all mobile platforms. But currently the UI is getting distorted on Windows Phone. (Displays correctly on other devices like Android, IOS..). The text boxes are places one below other but are getting overlapped on each other, truncating the bottom part of each text box.
Need to know the correct way to design the UI, so that it should display properly on all mobile platforms.
The Windows Phone target is a dead end target as Microsoft has effectively abandoned the platform. We are now focusing on the Universal Windows Platform and have a developer guide section for it here.
I'm trying to design a Windows 10 Universal application which can download pdfs from online and open them natively in the application while retaining the functionality to fill them out (obviously only for pdfs that normally have such functionality). Is this possible as of now (using either microsoft's own or third party products) ?
Since Windows 8.1 there is a API for rendering PDF documents. You can find a SDK-Sample here - https://code.msdn.microsoft.com/windowsapps/PDF-viewer-sample-85a4bb30/
The problem is: The API render the PDFs to an BitmapImage. You will loose all the functionality to edit forms, it´s viewing only. For Windows 10 there is no aditional way to handle pdfs.
Here is a list of third party controls, who maybe can do the trick.
http://blogs.msdn.com/b/paulwhit/archive/2013/02/15/pdf-view-components-for-windows-store-apps-winrt-xaml-c.aspx
This stuff is created for windows 8.1, but should work for windows universal as well.
I've read the tutorials and related questions here but still no luck using a custom font.
I'm on a Windows 7 machine and I've performed the following steps:
Installed the Font (Print Clearly OT.otf)
Copied the otf file to the project directory (same directory as the main.lua)
Restarted the Corona simulator
Used this code to find the font name (Print Clearly OT) and add the build settings: http://coronalabs.com/blog/2013/01/16/faq-wednesday-custom-fonts/
Trying to use the font like:
lettertext = display.newText( "a", 40, 20, "Print Clearly OT", 24 )
Start up the simulator for ipad and I get "could not load font" message.
There was a comment on the link tutorial above, about otf files not working on windows but i assumed that was on a windows mobile device not in the ipad simulator on a windows system.
OTF fonts are not supported in Windows (like you can read at the link you provided) but you could use a ttf version of "Print Clearly OT" font, ttf fonts are supported in all systems.
The other solution is develop with a mac machine, Corona simulator will work better in this case but this solution is really expensive.
Corona SDK also uses the "Internal Font Name". The internal name could be different than the file name and the display name. It might be PrintClearly-Regular or something like that.
But likely it's the OTF's don't work on Windows.
I have a very strange behavior in an application that is targeted to Windows Phone 7.1 (and therefor will also run on Windows Phone 8).
For my icons I'm using the Segoe UI Symbol font.
When I run the application on WP 8, the icons are displayed correctly.
If I run it in WP7 though, some of the icons are displayed as rectangles.
I figured that the font on WP7 was probably an older version, so what I did was download the font from my Win8 PC and used it as an embedded font in WP7, but it still does not work.
Anyone has an idea on how to fix this?
Are you reference it as "Resource"?
Try specify full path with assembly name. Like
/Acme.Product;component/Assets/seguisym.ttf#Segoe UI Symbol
Hmm,
I managed to get it working.
What I needed to do was:
Clean the font
Rename the original file name
Rename the font using TypoGraf
Rebuild the project
I'm not a 100% sure that everything is needed but at least this way I got it working.
I have a PDF that seems to have some internal color profile attached. If I render this in iPhone simulator the colors come out as they look in Photoshop which apparently can parse this color profile. If I render the same PDF on Mac I get the same colors (less bright, muddy) as in Preview and Pixelmator.
Is there some way how I can achieve the same (correct) rendering result on Mac as I was getting in iPhone simulator?
On iOS Simulator, I used CGColorSpaceCreateDeviceRGB with a kCGImageAlphaPremultipliedFirst bitmap context. I also set rendering intent kCGRenderingIntentPerceptual, though I don't know if this makes any difference.
on Mac I tried the same settings, as well as all the different kinds of color spaces, but I'm never able to achieve the same result us in Simulator.
I also tried the two ICC based approaches mentioned here: http://developer.apple.com/library/mac/#qa/qa1396/_index.html
I'm getting desperate. What is different between iOS simulator which gets the colors right and Mac? I thought iOS doesn't do color correction, but Mac does? Right now I am drawing the individual pages with PDFKit. Is there a difference in PDFKit on Mac versus iOS related to color correction that makes it work properly on iOS Simulator, but fails on Mac?
I also took a JPG that was rendered from this PDF in iOS Simulator, put it into a new PDF in Preview and there preview and my Mac rendering yielded exactly the same colors as the input.
It looks to me like iOS Simulator has a magical ability to use a color profile embedded in this PDF which Preview or Quartz on Mac does not.
Please help!
kind regards
Oliver Drobnik
I don't know exactly how simulator works, but I can assure you that both Preview and iOS have very incorrect handling of certain features of PDF files; especially when it comes to color management, transparency, overprint, advanced compression of images etc...
Two tips:
On Mac, open the PDF file in Adobe Reader (free download from Adobe.com). The color you see in Reader should be very close to the actual truth. If your PDF file contains ICC profiles (for objects in the file or in the output intent, meaning for the whole file) it will be used correctly. On iOS, also look at Adobe Reader - it currently is the best (highest quality) display tool on that platform.
Secondly, if you want to know what the simulator or some other tool can or cannot do, have a look at the test patches from the GWG (http://gwg.org/ghentoutputsuite.phtml). These patches were designed to give very easy to interpret results on whether certain tools or printers can handle specific PDF features.
These two steps should at least tell you what works and where it works. That should make it easier to figure out what you need to correct.
Unfortunately this is a confirmed bug in CGPDF on Mac. It manifests itself if you have CMYK as a transparency color space. iOS ignores this correctly, the Mac messes up the colors.