Some minor bugfixes

This commit is contained in:
Jakub Melka 2019-04-16 18:23:43 +02:00
parent 27fa4eb8aa
commit 9d982747e2
2 changed files with 2 additions and 1 deletions

View File

@ -340,6 +340,7 @@ int PDFRealizedFontImpl::outlineLineTo(const FT_Vector* to, void* user)
int PDFRealizedFontImpl::outlineConicTo(const FT_Vector* control, const FT_Vector* to, void* user)
{
// TODO: Vypocet je pravdepodobne spatne
Glyph* glyph = reinterpret_cast<Glyph*>(user);
glyph->glyph.cubicTo(control->x * FORMAT_26_6_MULTIPLIER, control->y * FORMAT_26_6_MULTIPLIER, control->x * FORMAT_26_6_MULTIPLIER, control->y * FORMAT_26_6_MULTIPLIER, to->x * FORMAT_26_6_MULTIPLIER, to->y * FORMAT_26_6_MULTIPLIER);
return 0;

View File

@ -1620,7 +1620,7 @@ void PDFPageContentProcessor::operatorTextSetMatrix(PDFReal a, PDFReal b, PDFRea
void PDFPageContentProcessor::operatorTextMoveByLeading()
{
operatorTextMoveByOffset(0.0, m_graphicState.getTextLeading());
operatorTextMoveByOffset(0.0, -m_graphicState.getTextLeading());
}
void PDFPageContentProcessor::operatorTextShowTextString(PDFOperandString text)