コード例 #1
0
 protected function InitTextRenderer()
 {
     parent::InitTextRenderer();
     $this->noiseGlyphs = new LBD_RandomGlyphs();
     $this->noiseGlyphs->Fonts = $this->m_Fonts;
     $this->noiseGlyphs->Charset = $this->m_Localization->Charset;
     $this->noiseGlyphs->SourceString = LBD_StringHelper::Lowercase($this->m_Text);
     $this->noiseGlyphs->Bounds = $this->m_TextRenderer->Bounds;
     $this->noiseGlyphs->Prototype->Transform = LBD_Transform::Identity();
     $this->noiseGlyphs->Prototype->Transform->Rotation->AngleRange = new LBD_RandomRange(-30, 30);
     $this->noiseGlyphs->Prototype->Transform->Warp->WarpPercentageRange = new LBD_RandomRange(5, 20);
 }