调用指针,判断

 const CPDF_Font* stock_font =CPDF_Font::GetStockFont(cpdf_doc_, "sysfFZFS");

 //	const uint8_t* data = stock_font->GetFont()->GetFontData();
  // const uint32_t size = stock_font->GetFont()->GetSize();

  调用任何指针,判断是否为空???

避免程序段错误,崩溃

猜你喜欢

转载自www.cnblogs.com/hshy/p/12165243.html
今日推荐