实际上,我必须实现一个连接到BT化学打印机并在其中打印的模块.我有一个简单但功能上的例子,它适用于打印机.问题是这些文本是用纯文本打印的,我必须给它格式化,粗体,改变字体大小等等......我怎么能这样做?我不知道怎么...我用这个班:
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY …Run Code Online (Sandbox Code Playgroud)