RDKit
Open-source cheminformatics and machine learning.
DrawTextFTSVG.h
Go to the documentation of this file.
1///
2// Copyright (C) 2020-2022 David Cosgrove and other RDKit contributors
3//
4// @@ All Rights Reserved @@
5// This file is part of the RDKit.
6// The contents are covered by the terms of the BSD license
7// which is included in the file license.txt, found at the root
8// of the RDKit source tree.
9//
10// Original author: David Cosgrove (CozChemIx).
11//
12
13#ifndef RDKIT_DRAWTEXTFTSVG_H
14#define RDKIT_DRAWTEXTFTSVG_H
15
16#include <iosfwd>
17
19
20namespace RDKit {
21
22class MolDraw2DSVG;
23
24namespace MolDraw2D_detail {
25
26// ****************************************************************************
27class DrawTextFTSVG : public DrawTextFT {
28
29 public:
30 DrawTextFTSVG(double max_fnt_sz, double min_fnt_sz,
31 const std::string &font_file, std::ostream &oss,
32 std::string &d_act_class);
33 DrawTextFTSVG(const DrawTextFTSVG &) = delete;
37
38 int MoveToFunctionImpl(const FT_Vector *to) override;
39 int LineToFunctionImpl(const FT_Vector *to) override;
40 int ConicToFunctionImpl(const FT_Vector *control,
41 const FT_Vector *to) override;
42 int CubicToFunctionImpl(const FT_Vector *controlOne,
43 const FT_Vector *controlTwo,
44 const FT_Vector *to) override;
45
46 // adds x_trans_ and y_trans_ to coords returns x advance distance
47 double extractOutline() override;
48
49 std::ostream &oss_;
50 std::string &d_active_class_;
51};
52
53} // namespace MolDraw2D_detail
54} // namespace RDKit
55
56#endif // RDKIT_DRAWTEXTFTSVG_H
int CubicToFunctionImpl(const FT_Vector *controlOne, const FT_Vector *controlTwo, const FT_Vector *to) override
int ConicToFunctionImpl(const FT_Vector *control, const FT_Vector *to) override
DrawTextFTSVG & operator=(DrawTextFTSVG &&)=delete
int LineToFunctionImpl(const FT_Vector *to) override
DrawTextFTSVG(const DrawTextFTSVG &)=delete
int MoveToFunctionImpl(const FT_Vector *to) override
DrawTextFTSVG & operator=(const DrawTextFTSVG &)=delete
DrawTextFTSVG(DrawTextFTSVG &&)=delete
DrawTextFTSVG(double max_fnt_sz, double min_fnt_sz, const std::string &font_file, std::ostream &oss, std::string &d_act_class)
Std stuff.
Definition: Abbreviations.h:18