comparison Applications/Samples/SingleFrameEditorApplication.h @ 1223:04fd875b91f4

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 07 Dec 2019 18:41:54 +0100
parents a34ba19d2060
children 37bc7f115f81 2d8ab34c8c91
comparison
equal deleted inserted replaced
1221:e2435a524029 1223:04fd875b91f4
514 RadiographyLayer& layer = scene_->LoadAlphaBitmap(renderedTextAlpha.release(), NULL); 514 RadiographyLayer& layer = scene_->LoadAlphaBitmap(renderedTextAlpha.release(), NULL);
515 dynamic_cast<RadiographyAlphaLayer&>(layer).SetForegroundValue(200.0f * 256.0f); 515 dynamic_cast<RadiographyAlphaLayer&>(layer).SetForegroundValue(200.0f * 256.0f);
516 } 516 }
517 517
518 { 518 {
519 RadiographyTextLayer::SetFont(Orthanc::EmbeddedResources::UBUNTU_FONT); 519 RadiographyTextLayer::RegisterFont("ubuntu", Orthanc::EmbeddedResources::UBUNTU_FONT);
520 RadiographyLayer& layer = scene_->LoadText("Hello\nworld", 20, 128, NULL); 520 RadiographyLayer& layer = scene_->LoadText("Hello\nworld", "ubuntu", 20, 128, NULL, false);
521 layer.SetResizeable(true); 521 layer.SetResizeable(true);
522 } 522 }
523 523
524 { 524 {
525 RadiographyLayer& layer = scene_->LoadTestBlock(100, 50, NULL); 525 RadiographyLayer& layer = scene_->LoadTestBlock(100, 50, NULL);