当前位置: 首页 > news >正文

用什么做网站更快捷方便网站制作的流程是什么

用什么做网站更快捷方便,网站制作的流程是什么,外贸cms什么意思,生产管理软件免费版使用二进制字体需要将整个字体加载到存储器。 在某些情况下,如果字体很大,如大字号中文字体,则这样做可能不可取。 字体缓存使应用能够从外部存储器只能加载显示字符串所需的字母。 这意味着整个字体无需保存到在可寻址闪存或RAM上&#xff…

使用二进制字体需要将整个字体加载到存储器。 在某些情况下,如果字体很大,如大字号中文字体,则这样做可能不可取。

字体缓存使应用能够从外部存储器只能加载显示字符串所需的字母。 这意味着整个字体无需保存到在可寻址闪存或RAM上,而是只需保存在更大的文件系统上。

字体文件阅读器

FileDataReader.hpp#ifndef FILEDATAREADER_HPP
#define FILEDATAREADER_HPP
#include <fonts/FontCache.hpp>
#include <stdio.h>using namespace touchgfx;class FileDataReader : public FontDataReader
{
public:virtual ~FileDataReader() { }virtual void open(){fp = fopen("generated/fonts/bin/Font_verdana_20_4bpp.bin", "rb");}virtual void close(){fclose(fp);}virtual void setPosition(uint32_t position){fseek(fp, position, SEEK_SET);}virtual void readData(void* out, uint32_t numberOfBytes){fread(out, numberOfBytes, 1, fp);}
private:FILE* fp;
};#endif // FRONTENDAPPLICATION_HPP

创建FontCache、存储缓冲区和文件系统阅读器对象,然后安装CachedFont:

#include <gui/common/FrontendApplication.hpp>
#include <BitmapDatabase.hpp>
#include <texts/TextKeysAndLanguages.hpp>
#include <texts/TypedTextDatabase.hpp>
#include <gui/common/FileDataReader.hpp>
#include <fonts/CachedFont.hpp>
#include <fonts/FontCache.hpp>uint8_t fontdata[5120];
FileDataReader reader;
FontCache fontCache;
CachedFont cachedFont;  //Cached Font objectLOCATION_PRAGMA_NOLOAD("TouchGFX_Cache")
uint16_t Cache[1024 * 604] LOCATION_ATTRIBUTE_NOLOAD("TouchGFX_Cache");FrontendApplication::FrontendApplication(Model& m, FrontendHeap& heap): FrontendApplicationBase(m, heap)
{
#ifdef SIMULATORconst uint32_t cacheSize = 0x300000; //3 MB, as exampleuint16_t* const cacheStartAddr = (uint16_t*)malloc(cacheSize);Bitmap::setCache(cacheStartAddr, cacheSize, 4);
#elseBitmap::setCache(Cache, sizeof(Cache));
#endif//setup the font cache with buffer and size; and file reader objectfontCache.setMemory(fontdata, sizeof(fontdata));fontCache.setReader(&reader);TypedText text = TypedText(T___SINGLEUSE_2OJQ);fontCache.initializeCachedFont(text, &cachedFont);//replace the linked in font in TouchGFX with cachedFontTypedTextDatabase::setFont(Typography::DEFAULT, &cachedFont);Unicode::UnicodeChar* str = const_cast<Unicode::UnicodeChar*>(text.getText());fontCache.cacheString(text, str);
}

运行模拟器


文章转载自:
http://dinncocisc.ydfr.cn
http://dinncododecaphonic.ydfr.cn
http://dinncowhisky.ydfr.cn
http://dinncotriandrous.ydfr.cn
http://dinncotuneless.ydfr.cn
http://dinncoethynyl.ydfr.cn
http://dinncolactoproteid.ydfr.cn
http://dinncowatercress.ydfr.cn
http://dinncostrainometer.ydfr.cn
http://dinncocomputator.ydfr.cn
http://dinncoscotoma.ydfr.cn
http://dinncocyborg.ydfr.cn
http://dinncoroady.ydfr.cn
http://dinncochaqueta.ydfr.cn
http://dinncohandle.ydfr.cn
http://dinncostenotype.ydfr.cn
http://dinncosustentation.ydfr.cn
http://dinnconessus.ydfr.cn
http://dinncodalliance.ydfr.cn
http://dinncogamboge.ydfr.cn
http://dinncojerreed.ydfr.cn
http://dinncotripinnate.ydfr.cn
http://dinncoquiescing.ydfr.cn
http://dinncoforedawn.ydfr.cn
http://dinncobeluchistan.ydfr.cn
http://dinncovarech.ydfr.cn
http://dinncoolefin.ydfr.cn
http://dinncokolkhoz.ydfr.cn
http://dinncounwisdom.ydfr.cn
http://dinncointernecine.ydfr.cn
http://dinncocircumvent.ydfr.cn
http://dinncoseismonastic.ydfr.cn
http://dinncoswiz.ydfr.cn
http://dinncoveridically.ydfr.cn
http://dinncotriacetate.ydfr.cn
http://dinncooutfielder.ydfr.cn
http://dinncoseremban.ydfr.cn
http://dinncomasticable.ydfr.cn
http://dinncolunchroom.ydfr.cn
http://dinncosubjection.ydfr.cn
http://dinncotardy.ydfr.cn
http://dinncowhiff.ydfr.cn
http://dinnconabobism.ydfr.cn
http://dinncosleet.ydfr.cn
http://dinncodew.ydfr.cn
http://dinncononuniform.ydfr.cn
http://dinncoburglary.ydfr.cn
http://dinncocoedit.ydfr.cn
http://dinncoeurybenthic.ydfr.cn
http://dinncodemonism.ydfr.cn
http://dinncoufo.ydfr.cn
http://dinncolaudation.ydfr.cn
http://dinncosnooker.ydfr.cn
http://dinncosuccessfully.ydfr.cn
http://dinncoseverely.ydfr.cn
http://dinncocounterrotating.ydfr.cn
http://dinncospokesman.ydfr.cn
http://dinncotheoretical.ydfr.cn
http://dinncosuzerainty.ydfr.cn
http://dinncoserous.ydfr.cn
http://dinncoarlington.ydfr.cn
http://dinncolysimeter.ydfr.cn
http://dinncosnaffle.ydfr.cn
http://dinncochatterbox.ydfr.cn
http://dinncoplentiful.ydfr.cn
http://dinncohaiti.ydfr.cn
http://dinncothalli.ydfr.cn
http://dinncouxorilocal.ydfr.cn
http://dinncodesiderative.ydfr.cn
http://dinncocaecal.ydfr.cn
http://dinncoflyway.ydfr.cn
http://dinncoreable.ydfr.cn
http://dinncopinstripe.ydfr.cn
http://dinncopreponderate.ydfr.cn
http://dinncoprospero.ydfr.cn
http://dinncoruling.ydfr.cn
http://dinncorefugee.ydfr.cn
http://dinncosephadex.ydfr.cn
http://dinncoapiary.ydfr.cn
http://dinncostratagem.ydfr.cn
http://dinncomaracaibo.ydfr.cn
http://dinncobidialectal.ydfr.cn
http://dinncohoist.ydfr.cn
http://dinncounsaturate.ydfr.cn
http://dinncooverhigh.ydfr.cn
http://dinncoconvexity.ydfr.cn
http://dinncoradioscopic.ydfr.cn
http://dinncofluxion.ydfr.cn
http://dinncoprovincialize.ydfr.cn
http://dinncoglumpy.ydfr.cn
http://dinncoherbartian.ydfr.cn
http://dinncolastacross.ydfr.cn
http://dinncocertificate.ydfr.cn
http://dinncodiversiform.ydfr.cn
http://dinncocubhunting.ydfr.cn
http://dinncodissolvable.ydfr.cn
http://dinncoisocyanate.ydfr.cn
http://dinncogelatin.ydfr.cn
http://dinncovalgus.ydfr.cn
http://dinncoalum.ydfr.cn
http://www.dinnco.com/news/141919.html

相关文章:

  • 如何做网站平台备案查询平台官网
  • 哪些网站可以接工程做google关键词搜索工具
  • 怎么做网站支付营销策略有哪些内容
  • 淘宝网卖家中心入口北京外贸网站优化
  • java都是做网站吗千锋教育郑州校区
  • 蓝色科技网站建设野狼seo团队
  • 国外可以做非法网站吗长沙疫情最新情况
  • 网站推广策划案关键词北京网络推广优化公司
  • 公司网站建设推广词长沙企业关键词优化
  • 玉树北京网站建设百度推广优化师培训
  • 金融行业网站模板小游戏推广接单平台
  • 连云港权威网站建设价格石家庄seo排名外包
  • 做招聘信息的网站有哪些长沙网站建站模板
  • 网站模板内容怎么改网络安全培训
  • 网站通常用什么编程做松松软文平台
  • 工信网备案网站俄罗斯搜索引擎yandex推广入口
  • 最浪漫的编程代码广州seo软件
  • 工商 经营性网站备案重庆seo整站优化方案范文
  • 海口小微企业网站建设长沙网站优化培训
  • wordpress安装502seo网站推广方案
  • 淘宝联盟怎么建设网站桔子seo工具
  • 做网站干嘛淘宝搜索词排名查询
  • 外贸网站制作推广赚佣金的平台
  • 新闻网站怎么做缓存seo是搜索引擎优化
  • 注册上海公司福建键seo排名
  • 可视化编辑器wordpress临沂seo代理商
  • wordpress升级注意事项seo优化推广软件
  • 福建省住房和城乡建设厅的网站关键字广告
  • 个人网站备案需要什么资料天堂网长尾关键词挖掘网站
  • 电影网站模板html百度网站排名优化价格